forked from bblanchon/ArduinoJson
Updated warning flags
This commit is contained in:
@ -9,29 +9,36 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
|
|||||||
-Wall
|
-Wall
|
||||||
-Wcast-align
|
-Wcast-align
|
||||||
-Wcast-qual
|
-Wcast-qual
|
||||||
|
-Wconversion
|
||||||
-Wctor-dtor-privacy
|
-Wctor-dtor-privacy
|
||||||
-Wdisabled-optimization
|
-Wdisabled-optimization
|
||||||
-Werrors
|
-Werror
|
||||||
-Wextra
|
-Wextra
|
||||||
-Wfatal-errors
|
|
||||||
-Wformat=2
|
-Wformat=2
|
||||||
-Winit-self
|
-Winit-self
|
||||||
-Wlogical-op
|
|
||||||
-Wmissing-include-dirs
|
-Wmissing-include-dirs
|
||||||
-Wno-parentheses
|
-Wno-parentheses
|
||||||
|
-Wno-sign-conversion
|
||||||
-Wno-unused
|
-Wno-unused
|
||||||
-Wno-variadic-macros
|
-Wno-variadic-macros
|
||||||
-Wnoexcept
|
|
||||||
-Wold-style-cast
|
-Wold-style-cast
|
||||||
-Woverloaded-virtual
|
-Woverloaded-virtual
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
-Wredundant-decls
|
-Wredundant-decls
|
||||||
-Wshadow
|
-Wshadow
|
||||||
-Wsign-promo
|
-Wsign-promo
|
||||||
-Wstrict-null-sentinel
|
|
||||||
-Wstrict-overflow=5
|
-Wstrict-overflow=5
|
||||||
-Wundef
|
-Wundef
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU)")
|
||||||
|
add_definitions(
|
||||||
|
-Wlogical-op
|
||||||
|
-Wnoexcept
|
||||||
|
-Wstrict-null-sentinel
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
add_library(ArduinoJson ${SRC_FILES} ${INC_FILES})
|
add_library(ArduinoJson ${SRC_FILES} ${INC_FILES})
|
Reference in New Issue
Block a user