]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build: warn about old-style definitions
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 12 Dec 2022 20:11:56 +0000 (20:11 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 12 Dec 2022 20:33:59 +0000 (20:33 +0000)
configure.ac
meson.build

index ebf1649a75bca370a2f2df61eba42aaf09ad1786..7992236881072e84e6565c8301bd6e18bbd2cad7 100644 (file)
@@ -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])
index 50405e2b4c5af33d353bd99294999e67f646abf5..2780a5bd963c15aeaf622cc9773a7baf85417fb4 100644 (file)
@@ -792,6 +792,7 @@ compiler_flags = [
   '-Wmissing-prototypes',
   '-Wnested-externs',
   '-Wno-missing-field-initializers',
+  '-Wold-style-definition',
   '-Wpointer-arith',
   '-Wredundant-decls',
   '-Wsign-compare',