[libgweather/ebassi/parallel-tests] build: Update the compiler warnings



commit 1b4b93ee6c2bb6906bed9d038cf331e5c5b2a6b5
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Nov 19 18:10:20 2021 +0000

    build: Update the compiler warnings
    
    Specify that we accept typedef redeclarations, and document the warnings
    we use.

 libgweather/meson.build | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/libgweather/meson.build b/libgweather/meson.build
index b9371b8e..5eef612f 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -7,15 +7,22 @@ add_project_arguments([
 c_compiler = meson.get_compiler('c')
 
 add_project_arguments(c_compiler.get_supported_arguments([
+  # We use G_DECLARE_* macros
+  '-Wno-typedef-redefinition',
+
+  # We have legacy code and callbacks
+  '-Wno-unused-parameter',
+
+  # We are using GObject
+  '-fno-strict-aliasing',
+
   # Warnings we care about
   '-Wimplicit-fallthrough',
   '-Wmisleading-indentation',
   '-Wstrict-prototypes',
   '-Wunused',
 
-  # We have legacy code and callbacks
-  '-Wno-unused-parameter',
-
+  # We guarantee that our code base does not fail these
   '-Werror=format=2',
   '-Werror=implicit-function-declaration',
   '-Werror=init-self',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]