[pango: 1/2] meson: do not set -Werror=redundant-decls for gcc on Windows target.



commit 39edaf261b17d5c4bea7a02750c3f5f4e1545d06
Author: Jehan <jehan girinstud io>
Date:   Sat Jan 26 14:16:46 2019 +0100

    meson: do not set -Werror=redundant-decls for gcc on Windows target.
    
    When cross-compiling with MinGW64, system headers have various redundant
    declarations. This commit makes pango cross-buildable with MinGW64 while
    not removing the warning-errors for other OSes.

 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 76df11b1..25febacb 100644
--- a/meson.build
+++ b/meson.build
@@ -83,7 +83,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
     '-Wlogical-op',
     '-Wno-uninitialized',
     '-Wno-shadow',
-    '-Werror=redundant-decls',
     '-Werror=implicit',
     '-Werror=nonnull',
     '-Werror=init-self',
@@ -104,6 +103,8 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
 
   if host_system == 'windows'
     test_cflags += [ '-mms-bitfields' ]
+  else
+    test_cflags += [ '-Werror=redundant-decls' ]
   endif
 else
   test_cflags = []


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