From cdc08a6e16e1b1723c32e65605f724964516feab Mon Sep 17 00:00:00 2001 From: Alexander van Gessel Date: Fri, 21 Nov 2014 16:40:31 +0100 Subject: [PATCH] Work around clang defining __GNUC__ --- src/xBRZ/xbrz.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xBRZ/xbrz.cpp b/src/xBRZ/xbrz.cpp index 5b84ba56d9ac..e2aac1f6429d 100644 --- a/src/xBRZ/xbrz.cpp +++ b/src/xBRZ/xbrz.cpp @@ -45,10 +45,12 @@ #include #ifdef __GNUC__ +#ifndef __clang__ #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 7 ) #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" //Suppress uninitialized variables warnings on GCC <= 4.7.x #endif #endif +#endif namespace {