[libgweather/ebassi/parallel-tests: 15/15] build: Update the compiler warnings
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/parallel-tests: 15/15] build: Update the compiler warnings
- Date: Fri, 19 Nov 2021 18:25:45 +0000 (UTC)
commit 59ec90cf7734fad6684fd21094330fa53938bfa0
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 c061bd79..95c03fa8 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]