From 7f9f907bc2102e4f415730dcc934e92cfe4cdb56 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Sat, 24 Jul 2010 18:54:50 +0000 Subject: [PATCH] Silent down compiler. --- examples/nfc-mfultralight.c | 2 +- examples/nfc-sam.c | 2 ++ libnfc/drivers.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/nfc-mfultralight.c b/examples/nfc-mfultralight.c index f98e008..05b52b7 100644 --- a/examples/nfc-mfultralight.c +++ b/examples/nfc-mfultralight.c @@ -110,7 +110,7 @@ write_card (void) page = 0x4; } - for (page; page <= 0xF; page++) { + for (; page <= 0xF; page++) { // Show if the readout went well if (bFailure) { // When a failure occured we need to redo the anti-collision diff --git a/examples/nfc-sam.c b/examples/nfc-sam.c index 3e7758f..a94f003 100644 --- a/examples/nfc-sam.c +++ b/examples/nfc-sam.c @@ -81,6 +81,8 @@ int main(int argc, const char* argv[]) { nfc_device_t* pnd; + (void)(argc, argv); + // Display libnfc version const char* acLibnfcVersion = nfc_version(); printf("%s use libnfc %s\n", argv[0], acLibnfcVersion); diff --git a/libnfc/drivers.h b/libnfc/drivers.h index affcd11..b79228d 100644 --- a/libnfc/drivers.h +++ b/libnfc/drivers.h @@ -82,7 +82,7 @@ static const struct driver_callbacks drivers_callbacks_list[] = { # define PRINT_HEX(pcTag, pbtData, szBytes) do { \ size_t __szPos; \ printf(" %s: ", pcTag); \ - for (__szPos=0; __szPos < szBytes; __szPos++) { \ + for (__szPos=0; __szPos < (size_t)(szBytes); __szPos++) { \ printf("%02x ",pbtData[__szPos]); \ } \ printf("\n"); \