Windows: Clean up all compiler warnings and link warnings

- Fixed the suppression of the auto-fixup for linking against MS built libs
- Fixed all the formatting warnings by shifting to inttypes.h specifiers
- shifted to %lu for DWORD printf
This commit is contained in:
Alex Lian
2013-03-04 01:26:23 -05:00
committed by Philippe Teuwen
parent bd961222a3
commit 7b917f9a8b
13 changed files with 28 additions and 22 deletions

View File

@@ -37,6 +37,7 @@
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@ -119,7 +120,7 @@ main(int argc, char *argv[])
size_t szFound = nfc_list_devices(context, connstrings, MAX_DEVICE_COUNT);
if (szFound < 2) {
ERR("%zd device found but two opened devices are needed to relay NFC.", szFound);
ERR("%" PRIdPTR " device found but two opened devices are needed to relay NFC.", szFound);
nfc_exit(context);
exit(EXIT_FAILURE);
}