[gobject-introspection/ebassi/c99: 2/2] Require C99




commit f02d7740b7ee40f83708c1d79d40e43deb55952b
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Aug 31 00:06:36 2022 +0100

    Require C99
    
    GLib has been requiring a C99 toolchain for a while, now. It makes no
    sense to have gobject-introspection depend on C89.

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 4885cf3fc..2bc874ee4 100644
--- a/meson.build
+++ b/meson.build
@@ -2,6 +2,7 @@ project('gobject-introspection', 'c',
   version: '1.73.1',
   meson_version: '>= 0.60.0',
   default_options: [
+    'c_std=gnu99',
     'warning_level=2',
     'buildtype=debugoptimized',
   ],
@@ -31,7 +32,6 @@ if cc.get_id() != 'msvc'
     project_c_args += [
       '-Warray-bounds',
       '-Wcast-align',
-      '-Wdeclaration-after-statement',
       '-Wduplicated-branches',
       '-Wformat=2',
       '-Wformat-nonliteral',


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