[gjs: 1/3] build: Add -Wno-typedef-redefinition to C compiler arguments



commit 06d1d4d1597a6d6b8a0da6b6f4d03362edec143c
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Jan 4 23:21:03 2020 -0500

    build: Add -Wno-typedef-redefinition to C compiler arguments
    
    Typedef redefinition is a requirement for building GLib (currently
    temporarily suspended for the benefit of OpenBSD, according to
    https://wiki.gnome.org/Projects/GLib/CompilerRequirements). So ensure
    that the warning is not given in C code, since it is technically not
    correct C99. (I believe it is, however, correct C++.)
    
    Pushing to fix build on master.

 meson.build | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/meson.build b/meson.build
index e6966219..58166d47 100644
--- a/meson.build
+++ b/meson.build
@@ -50,6 +50,9 @@ else
         '-Wno-variadic-macros',  # GLib uses these in header files
         '-Wno-missing-field-initializers',  # SpiderMonkey JSClass, among others
     ]), language: 'cpp')
+    add_project_arguments(cc.get_supported_arguments([
+        '-Wno-typedef-redefinition',  # GLib does this in header files
+    ]), language: 'c')
 
     if get_option('bsymbolic_functions')
         if not cxx.has_link_argument('-Bsymbolic-functions')


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