[pango: 1/2] meson: do not set -Werror=redundant-decls for gcc on Windows target.
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango: 1/2] meson: do not set -Werror=redundant-decls for gcc on Windows target.
- Date: Wed, 24 Jul 2019 15:58:21 +0000 (UTC)
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]