[glib/wip/pwithnall/macos-werror] build: Disable -Wvariadic-macros
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/pwithnall/macos-werror] build: Disable -Wvariadic-macros
- Date: Thu, 18 Nov 2021 12:43:47 +0000 (UTC)
commit f87c36c7b67f6c69f516a00d89899985a6e6a66a
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Nov 18 11:58:18 2021 +0000
build: Disable -Wvariadic-macros
We explicitly require support for variadic macros; see
https://wiki.gnome.org/Projects/GLib/CompilerRequirements.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
meson.build | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/meson.build b/meson.build
index ef75306c2..60a58de47 100644
--- a/meson.build
+++ b/meson.build
@@ -442,6 +442,8 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Wno-pedantic',
# A zero-length format string shouldn't be considered an issue.
'-Wno-format-zero-length',
+ # We explicitly require variadic macros
+ '-Wno-variadic-macros',
'-Werror=declaration-after-statement',
'-Werror=format=2',
'-Werror=implicit-function-declaration',
@@ -462,6 +464,7 @@ else
endif
add_project_arguments(cc.get_supported_arguments(warning_c_args), language: 'c')
+add_project_arguments(cxx.get_supported_arguments(warning_c_args), language: 'cpp')
# FIXME: We cannot build some of the GResource tests with -z nodelete, which
# means we cannot use that flag in add_project_link_arguments(), and must add
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]