forked from bblanchon/ArduinoJson
Warnings level were not correct with Clang
This commit is contained in:
@@ -1,14 +1,19 @@
|
|||||||
file(GLOB_RECURSE INC_FILES ../include/*.hpp)
|
file(GLOB_RECURSE INC_FILES ../include/*.hpp)
|
||||||
file(GLOB_RECURSE SRC_FILES *.cpp)
|
file(GLOB_RECURSE SRC_FILES *.cpp)
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
message("> ${CMAKE_CXX_COMPILER}")
|
||||||
|
message("> ${CMAKE_CXX_COMPILER_ID}")
|
||||||
|
|
||||||
|
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-Wall
|
-Wall
|
||||||
-Wcast-align
|
-Wcast-align
|
||||||
-Wcast-qual
|
-Wcast-qual
|
||||||
-Wctor-dtor-privacy
|
-Wctor-dtor-privacy
|
||||||
-Wdisabled-optimization
|
-Wdisabled-optimization
|
||||||
|
-Werrors
|
||||||
-Wextra
|
-Wextra
|
||||||
|
-Wfatal-errors
|
||||||
-Wformat=2
|
-Wformat=2
|
||||||
-Winit-self
|
-Winit-self
|
||||||
-Wlogical-op
|
-Wlogical-op
|
||||||
|
Reference in New Issue
Block a user