From: Thomas Weißschuh Date: Mon, 12 Dec 2022 20:11:56 +0000 (+0000) Subject: build: warn about old-style definitions X-Git-Tag: v2.39-rc1~372^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9df5ac34495b347da5b99a00e6db9a58fa6212ed;p=thirdparty%2Futil-linux.git build: warn about old-style definitions --- diff --git a/configure.ac b/configure.ac index ebf1649a75..7992236881 100644 --- a/configure.ac +++ b/configure.ac @@ -144,6 +144,7 @@ UL_WARN_ADD([-Wmissing-parameter-type]) UL_WARN_ADD([-Wmissing-prototypes]) UL_WARN_ADD([-Wnested-externs]) UL_WARN_ADD([-Wno-missing-field-initializers]) +UL_WARN_ADD([-Wold-style-definition]) UL_WARN_ADD([-Wpointer-arith]) UL_WARN_ADD([-Wredundant-decls]) UL_WARN_ADD([-Wsign-compare]) diff --git a/meson.build b/meson.build index 50405e2b4c..2780a5bd96 100644 --- a/meson.build +++ b/meson.build @@ -792,6 +792,7 @@ compiler_flags = [ '-Wmissing-prototypes', '-Wnested-externs', '-Wno-missing-field-initializers', + '-Wold-style-definition', '-Wpointer-arith', '-Wredundant-decls', '-Wsign-compare',