diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-02-28 11:04:23 +0400 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2023-03-01 18:43:15 +1100 |
commit | 72fc810c3025f07de718f5f32a290a6cd5d1f4ee (patch) | |
tree | 6691f0899094b3ee2e2a845533c49f08d8503aa1 | |
parent | 083ab26da83bf5d14df5733e3b9954a0881f9ecc (diff) | |
download | device-tree-compiler-72fc810c3025f07de718f5f32a290a6cd5d1f4ee.tar.gz |
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>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | meson.build | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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 diff --git a/meson.build b/meson.build index b2c53b9..cef113f 100644 --- a/meson.build +++ b/meson.build @@ -16,6 +16,7 @@ add_project_arguments( '-Wredundant-decls', '-Wshadow', '-Wsuggest-attribute=format', + '-Wwrite-strings', ]), language: 'c' ) |