Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-enable a few more warnings.
  • Loading branch information
glennricster committed Jan 30, 2013
1 parent 7676c4d commit 18e69ac
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions CMakeLists.txt
Expand Up @@ -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)

Expand Down

0 comments on commit 18e69ac

Please sign in to comment.