From e9f82125604d4093d437e4ae393f06182a0972a4 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 21 Sep 2009 09:57:29 +0530 Subject: Suppress gcc warnings about variadic macros --- src/log.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/log.h b/src/log.h index a31f5e3..29b3704 100644 --- a/src/log.h +++ b/src/log.h @@ -89,6 +89,11 @@ #define LOG_CONN 8 /* extra to log connections without the INFO stuff */ +/* Suppress warnings when GCC is in -pedantic mode and not -std=c99 */ +#if (__GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)) +#pragma GCC system_header +#endif + /* * Use this for debugging. The format is specific: * DEBUG1("There was a major problem"); -- cgit v1.2.3