[libadwaita/ebassi/allow-c99] build: Drop declaration-after-statement warning




commit df20ec0bb48b5427f0dc261a87967a93a38fbdab
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Feb 4 14:19:32 2022 +0000

    build: Drop declaration-after-statement warning
    
    We explicitly depend on C11 with GNU extensions, but we still warn when
    using C99 functionality that has been allowed in GTK and GLib for years.
    
    Having mixed declarations and statements is not controversial any more.

 meson.build | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 8028c64e..a9bf916c 100644
--- a/meson.build
+++ b/meson.build
@@ -52,7 +52,6 @@ if cc.get_id() != 'msvc'
   test_c_args += [
     '-Wcast-align',
     '-Wdate-time',
-    '-Wdeclaration-after-statement',
     ['-Werror=format-security', '-Werror=format=2'],
     '-Wendif-labels',
     '-Werror=incompatible-pointer-types',


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