]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
build: Set maximum warning level
authorDaniel Wagner <dwagner@suse.de>
Mon, 27 Dec 2021 14:52:50 +0000 (15:52 +0100)
committerDaniel Wagner <dwagner@suse.de>
Fri, 7 Jan 2022 16:28:58 +0000 (17:28 +0100)
Without defining the default warning level the build system
will use the default level, which is implementation depended.
For example muon sets it to 3 which includes '-Wpendantic'.
This results in a lot of ISO-C non compliant warnings.

Let's define the warning level so that all build systems
are using the same values.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
meson.build

index 9eda18b1b93397c5db0ac3c3ecda60fc633a7ff8..6caaf2aaaa1cb6cdcc738a3e4fab079ec5055575 100644 (file)
@@ -8,6 +8,7 @@ project(
       'c_std=gnu99',
       'buildtype=release',
       'prefix=/usr',
+      'warning_level=1',
     ]
 )