Replaced -Wpedantic by -pedantic

This commit is contained in:
Benoit Blanchon
2014-11-15 14:57:39 +01:00
parent a2cbb68a40
commit a66299a936

View File

@ -4,6 +4,7 @@ file(GLOB_RECURSE SRC_FILES *.cpp)
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
add_definitions( add_definitions(
-fno-exceptions -fno-exceptions
-pedantic
-Wall -Wall
-Wcast-align -Wcast-align
-Wcast-qual -Wcast-qual
@ -21,7 +22,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
-Wno-variadic-macros -Wno-variadic-macros
-Wold-style-cast -Wold-style-cast
-Woverloaded-virtual -Woverloaded-virtual
-Wpedantic
-Wredundant-decls -Wredundant-decls
-Wshadow -Wshadow
-Wsign-promo -Wsign-promo