From aa757cd54aec0547e5ab3a612e6512ba6234e41b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 14 Oct 2022 04:56:46 +0530 Subject: [PATCH] meson: Don't explicitly disable mixed declarations and statements We require C99 now, and this warning was added for strict adherence to C89 because GCC allowed mixed declarations in gnu89 as a GCC extension. Let's get rid of this. --- meson.build | 1 - 1 file changed, 1 deletion(-) diff --git a/meson.build b/meson.build index 43bb46832..3b15c6b5e 100644 --- a/meson.build +++ b/meson.build @@ -510,7 +510,6 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang' # Due to pervasive use of things like GPOINTER_TO_UINT(), we do not support # building with -Wbad-function-cast. '-Wno-bad-function-cast', - '-Werror=declaration-after-statement', '-Werror=implicit-function-declaration', '-Werror=missing-prototypes', '-Werror=pointer-sign',