[tracker/sam/no-pedantic] build: Disable GCC pedantic warnings




commit 1c219faf30974803ac1dc06b5a0f6aeaebef9f80
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 pointers 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]