[libgweather/ebassi/gtk4: 7/10] build: Tweak the default warnings
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/gtk4: 7/10] build: Tweak the default warnings
- Date: Sun, 10 Oct 2021 16:50:24 +0000 (UTC)
commit f463b8a98748ad29a0d0a35ad00c2e21cd245d01
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]