Enable -Wwrite-strings when compiling IDF's own C files

This commit is contained in:
Roland Dobai
2018-04-06 16:04:13 +02:00
parent f7b7b4ef59
commit 33480d1a2c
3 changed files with 19 additions and 0 deletions

View File

@@ -267,6 +267,10 @@ COMMON_WARNING_FLAGS = -Wall -Werror=all \
-Wextra \
-Wno-unused-parameter -Wno-sign-compare
ifdef CONFIG_WARN_WRITE_STRINGS
COMMON_WARNING_FLAGS += -Wwrite-strings
endif #CONFIG_WARN_WRITE_STRINGS
# Flags which control code generation and dependency generation, both for C and C++
COMMON_FLAGS = \
-ffunction-sections -fdata-sections \