[libgweather/ebassi/gtk4: 20/56] build: Tweak the default warnings
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/gtk4: 20/56] build: Tweak the default warnings
- Date: Wed, 13 Oct 2021 12:02:14 +0000 (UTC)
commit 45263b766303a47bcd7193eba3c8e51e4f7555db
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Oct 10 17:25:09 2021 +0100
build: Tweak the default warnings
We want the default warnings from Meson for warning_level=2, but we also
want to inject our own compiler arguments.
libgweather/meson.build | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/libgweather/meson.build b/libgweather/meson.build
index f6504432..c1e8b04b 100644
--- a/libgweather/meson.build
+++ b/libgweather/meson.build
@@ -7,6 +7,22 @@ add_project_arguments([
c_compiler = meson.get_compiler('c')
+add_project_arguments(c_compiler.get_supported_arguments([
+ # Warnings we care about
+ '-Wimplicit-fallthrough',
+ '-Wmisleading-indentation',
+ '-Wstrict-prototypes',
+ '-Wunused',
+
+ # We have legacy code and callbacks
+ '-Wno-unused-parameter',
+
+ '-Werror=format=2',
+ '-Werror=implicit-function-declaration',
+ '-Werror=init-self',
+ '-Werror=missing-include-dirs',
+]), language: 'c')
+
header_subdir = 'libgweather-3.0/libgweather'
libgweather_map = meson.current_source_dir() / 'libgweather.map'
link_depends = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]