Skip to content

Commit

Permalink
Work around clang defining __GNUC__
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Nov 21, 2014
1 parent fdc1499 commit cdc08a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xBRZ/xbrz.cpp
Expand Up @@ -45,10 +45,12 @@
#include <boost/function.hpp>

#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
{
Expand Down

0 comments on commit cdc08a6

Please sign in to comment.