[tracker/sam/no-pedantic: 11/11] build: Disable GCC pedantic warnings
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/no-pedantic: 11/11] build: Disable GCC pedantic warnings
- Date: Wed, 26 May 2021 15:40:14 +0000 (UTC)
commit 364d0df76cd615a417e0b2a70656ac1fb7e114a4
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Wed May 26 17:30:02 2021 +0200
build: Disable GCC pedantic warnings
This flag has detected some bugs and resulted in a number of good code
cleanups
However, some of these warnings cannot neatly be fixed, as GLib depends on
converting function points to (void *) and back again.
meson.build | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index 44e8fbbfc..e1bda801e 100644
--- a/meson.build
+++ b/meson.build
@@ -91,6 +91,8 @@ cc_warning_flags = [
# Too many unused parameters in tests. Disabling this warning only
# for the tests executables could be a better solution.
'-Wno-unused-parameter',
+ # Incompatible with GLib, see https://wiki.gnome.org/Projects/GLib/CompilerRequirements
+ '-Wno-pedantic',
]
add_project_arguments(cc.get_supported_arguments(cc_warning_flags), language: 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]