From 18e69acc15ccdd5b63e76c0bc4c2e2d4397861c3 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Tue, 29 Jan 2013 21:48:26 -0600 Subject: [PATCH] Re-enable a few more warnings. --- CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e72468854b..647a84cb6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,14 +138,7 @@ if(NOT MSVC) endif(NOT MSVC) # gcc uses some optimizations which might break stuff without this flag -add_definitions(-fno-strict-aliasing -fno-exceptions -Wno-psabi) - -# We call fread numerous times without checking return values. Hide the -# corresponding compiler warnings if the compiler supports doing so. -CHECK_CXX_COMPILER_FLAG(-Wunused-result NO_UNUSED_RESULT) -if(NO_UNUSED_RESULT) - add_definitions(-Wno-unused-result) -endif(NO_UNUSED_RESULT) +add_definitions(-fno-strict-aliasing -fno-exceptions) check_and_add_flag(VISIBILITY_INLINES_HIDDEN -fvisibility-inlines-hidden)