aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-02-27 19:13:13 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2023-02-27 19:18:35 +1100
commite3cde0613bfdd59d525770bc0e15c54e58b08412 (patch)
treeba9aa3c6e5cde783d861d85ad14e73804e5d8eaa /meson.build
parent41821821101ad8a9f83746b96b163e5bcbdbe804 (diff)
downloaddtc-e3cde0613bfdd59d525770bc0e15c54e58b08412.zip
dtc-e3cde0613bfdd59d525770bc0e15c54e58b08412.tar.gz
dtc-e3cde0613bfdd59d525770bc0e15c54e58b08412.tar.bz2
Add -Wsuggest-attribute=format warning, correct warnings thus generated
Add this new warning to the default build flags. It suggests adding a ((format)) attribute to xavsprintf_append(), so do that. Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 78251eb..f50cf1e 100644
--- a/meson.build
+++ b/meson.build
@@ -14,7 +14,8 @@ add_project_arguments(
'-Wstrict-prototypes',
'-Wmissing-prototypes',
'-Wredundant-decls',
- '-Wshadow'
+ '-Wshadow',
+ '-Wsuggest-attribute=format',
]),
language: 'c'
)