lwip: Ignore some compiler warnings when debugging is on

This commit is contained in:
Angus Gratton 2015-07-29 16:41:01 +10:00
parent efc454035c
commit 3797cf5357
2 changed files with 7 additions and 3 deletions

View file

@ -87,8 +87,12 @@ typedef int sys_prot_t;
/* Plaform specific diagnostic output */ /* Plaform specific diagnostic output */
#ifdef LWIP_DEBUG #ifdef LWIP_DEBUG
#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0) #define LWIP_PLATFORM_DIAG(x) do { \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wformat\"") \
printf x; \
_Pragma("GCC diagnostic pop") \
} while(0)
#define LWIP_PLATFORM_ASSERT(x) do { printf("Assertion \"%s\" failed at line %d in %s\n", \ #define LWIP_PLATFORM_ASSERT(x) do { printf("Assertion \"%s\" failed at line %d in %s\n", \
x, __LINE__, __FILE__); while(1) {} } while(0) x, __LINE__, __FILE__); while(1) {} } while(0)

@ -1 +1 @@
Subproject commit f041c2e4c4c57445cdd8ec7d674dede1be020f02 Subproject commit c4765dccec5c01faeb87e5ed65db1c99ff5c9a05