Fix a brunch of -Wextra warnings:
- 'static' is not at beginning of declaration; - unused parameter; - comparison between signed and unsigned.
This commit is contained in:
parent
3a0d05d15a
commit
5473befa13
8 changed files with 22 additions and 4 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -54,6 +55,10 @@ int main(int argc, const char* argv[])
|
|||
nfc_target_info_t nti;
|
||||
nfc_device_desc_t *pnddDevices;
|
||||
|
||||
if (argc > 1) {
|
||||
errx (1, "usage: %s", argv[0]);
|
||||
}
|
||||
|
||||
// Display libnfc version
|
||||
const char* acLibnfcVersion = nfc_version();
|
||||
printf("%s use libnfc %s\n", argv[0], acLibnfcVersion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue