mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
build-sys: add -Wwrite-strings
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
083ab26da8
commit
72fc810c30
2 changed files with 2 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -23,7 +23,7 @@ ASSUME_MASK ?= 0
|
|||
CPPFLAGS = -I libfdt -I . -DFDT_ASSUME_MASK=$(ASSUME_MASK)
|
||||
WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs -Wsign-compare \
|
||||
-Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow \
|
||||
-Wsuggest-attribute=format
|
||||
-Wsuggest-attribute=format -Wwrite-strings
|
||||
CFLAGS = -g -Os $(SHAREDLIB_CFLAGS) -Werror $(WARNINGS) $(EXTRA_CFLAGS)
|
||||
|
||||
BISON = bison
|
||||
|
|
|
@ -16,6 +16,7 @@ add_project_arguments(
|
|||
'-Wredundant-decls',
|
||||
'-Wshadow',
|
||||
'-Wsuggest-attribute=format',
|
||||
'-Wwrite-strings',
|
||||
]),
|
||||
language: 'c'
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue