1
0

Enabled loads of clang warnings

This commit is contained in:
Tycho 2014-03-09 04:58:08 -07:00
parent ebdbac9b38
commit 59d42ec5b2

View File

@ -190,6 +190,8 @@ macro(set_exe_flags)
# clang does not provide the __extern_always_inline macro and a part of libm depends on this when using fast-math
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_flags_cxx("-D__extern_always_inline=inline")
add_flags_cxx("-Weverything -Wno-c++98-compat-pedantic -Wno-string-conversion")
add_flags_cxx("-Wno-extra-semi -Wno-error=switch-enum -Wno-documentation")
endif()
endif()