Skip to content

Commit efe2585

Browse files
committed
build: Set C dialect and warning level
Currently, the Makefile is not setting the C dialect but the code was carved out from the nvme-cli code base which relies on gnu99. Let's define the C dialect to avoid any confusion and make the build more consistent. 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 <[email protected]>
1 parent 8ebfcfe commit efe2585

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ project(
1111
version: '1.0',
1212
license: 'LGPLv2+',
1313
default_options: [
14+
'c_std=gnu99',
15+
'warning_level=1',
1416
'buildtype=release',
1517
'prefix=/usr',
1618
]

0 commit comments

Comments
 (0)