Skip to content

Commit

Permalink
Add missing switch case
Browse files Browse the repository at this point in the history
Fix build issue:

```
/tmp/libfreefare/libfreefare/freefare.c:172:13: error: enumeration value 'NMT_BARCODE' not handled in switch
      [-Werror,-Wswitch]
    switch (tag->info.nm.nmt) {
            ^
1 error generated.
```
  • Loading branch information
smortex committed Jan 26, 2019
1 parent ba63f18 commit 3d1e58b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libfreefare/freefare.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ freefare_get_tag_uid(FreefareTag tag)
case NMT_ISO14443B:
case NMT_ISO14443BI:
case NMT_JEWEL:
case NMT_BARCODE:
res = strdup("UNKNOWN");
}
return res;
Expand Down

0 comments on commit 3d1e58b

Please sign in to comment.