From d72a0b5c618a37b70ba4d111b457deefad8f025f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 27 Dec 2012 13:37:20 +0200 Subject: Check for __GNUC__ instead of GCC in sources We still have checks for $(COM) being GCC or MSC in makefiles, of course. But there is no reason to pass -D$(COM) to compilations. Checking the built-in compiler-specific macros __GNUC__, _MSC_VER (etc) is the right thing to do. Change-Id: Ia961a29ba74e2c4977e5300a92318f38104c6592 --- sal/inc/sal/detail/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal/inc') diff --git a/sal/inc/sal/detail/log.h b/sal/inc/sal/detail/log.h index 849c0b78f73c..b7e5006658f2 100644 --- a/sal/inc/sal/detail/log.h +++ b/sal/inc/sal/detail/log.h @@ -80,7 +80,7 @@ SAL_DLLPUBLIC void SAL_CALL sal_detail_logFormat( enum sal_detail_LogLevel level, char const * area, char const * where, char const * format, ...) /* TODO: enabling this will produce a huge amount of -Werror=format errors: */ -#if defined GCC && 0 +#if defined __GNUC__ && 0 __attribute__((format(printf, 4, 5))) #endif ; -- cgit