[glib: 1/2] meson: Don't explicitly disable mixed declarations and statements




commit aa757cd54aec0547e5ab3a612e6512ba6234e41b
Author: Nirbheek Chauhan <nirbheek centricular com>
Date:   Fri Oct 14 04:56:46 2022 +0530

    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 43bb468322..3b15c6b5ef 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',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]