[glib: 1/2] build: Add -Wno-pedantic flag to compiler arguments
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] build: Add -Wno-pedantic flag to compiler arguments
- Date: Wed, 23 Jan 2019 14:15:36 +0000 (UTC)
commit 5c05af9acae9d5b2d5fec8544f974d866335c2a6
Author: Philip Withnall <withnall endlessm com>
Date: Wed Jan 23 13:38:40 2019 +0000
build: Add -Wno-pedantic flag to compiler arguments
We do not support building with -Wpedantic due pervasively casting
function pointers through (void*) — see
https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
Signed-off-by: Philip Withnall <withnall endlessm com>
Helps https://gitlab.gnome.org/GNOME/glib/issues/1662
meson.build | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/meson.build b/meson.build
index 04ca8c2b0..e8a5ae792 100644
--- a/meson.build
+++ b/meson.build
@@ -355,6 +355,9 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
# Due to pervasive use of things like GPOINTER_TO_UINT(), we do not support
# building with -Wbad-function-cast.
'-Wno-bad-function-cast',
+ # Due to function casts through (void*) we cannot support -Wpedantic:
+ # https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
+ '-Wno-pedantic',
'-Werror=declaration-after-statement',
'-Werror=format=2',
'-Werror=implicit-function-declaration',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]