mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
Build: Fix CMake to pass -Wwrite-string compiler flag if enabled
This commit is contained in:
parent
48ae2309fd
commit
64eb3a28b6
@ -74,6 +74,10 @@ if(CONFIG_COMPILER_DISABLE_GCC8_WARNINGS)
|
||||
"-Wno-int-in-bool-context")
|
||||
endif()
|
||||
|
||||
if(CONFIG_COMPILER_WARN_WRITE_STRINGS)
|
||||
list(APPEND compile_options "-Wwrite-strings")
|
||||
endif()
|
||||
|
||||
if(CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
|
||||
list(APPEND compile_definitions "-DNDEBUG")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user