--- SConstruct.orig 2010-11-22 18:08:54.000000000 -0200 +++ SConstruct.orig 2010-11-22 18:09:04.000000000 -0200 @@ -88,7 +88,7 @@ if env['CCVERSION'] < '4.2.0': env['CCFLAGS'] += ['-Wno-pragmas'] if env['CCVERSION'] >= '4.3.0': - env['CCFLAGS'] += ['-Wno-array-bounds', '-Wno-unused-result'] + env['CCFLAGS'] += ['-Wno-array-bounds'] env['CPPDEFINES'] = [] if env['flavor'] == 'debug': --- CMakeLists.txt.orig 2010-11-22 18:47:23.000000000 -0200 +++ CMakeLists.txt.orig 2010-11-22 18:47:54.000000000 -0200 @@ -44,7 +44,7 @@ # corresponding compiler warnings if the compiler supports doing so. CHECK_CXX_COMPILER_FLAG(-Wno-unused-result NO_UNUSED_RESULT) if(NO_UNUSED_RESULT) - add_definitions(-Wno-unused-result) +# add_definitions(-Wno-unused-result) endif(NO_UNUSED_RESULT) CHECK_CXX_COMPILER_FLAG(-fvisibility-inlines-hidden VISIBILITY_INLINES_HIDDEN)