From 12a8a916dda9bbf32f9cae6b99ecff2ff7d2f6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 3 Jul 2023 04:16:37 +0200 Subject: [PATCH] meson.build: make old stype defs/decls errors --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8b6a0a781..40a707956 100644 --- a/meson.build +++ b/meson.build @@ -82,7 +82,6 @@ common_flags = [ '-Wno-missing-field-initializers', '-Wno-unused-parameter', '-Wno-pedantic', - '-Wold-style-declaration', '-Wdeprecated-declarations', '-Wunused-result', ] @@ -93,6 +92,8 @@ cc_flags = common_flags + [ # '-DSPA_DEBUG_MEMCPY', '-Werror=implicit-function-declaration', '-Werror=int-conversion', + '-Werror=old-style-declaration', + '-Werror=old-style-definition', ] add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c')