]> www.infradead.org Git - users/sagi/libnvme.git/commit
build: Set C dialect and warning level
authorDaniel Wagner <dwagner@suse.de>
Mon, 27 Dec 2021 15:09:04 +0000 (16:09 +0100)
committerDaniel Wagner <dwagner@suse.de>
Mon, 27 Dec 2021 15:09:04 +0000 (16:09 +0100)
commitefe2585a3052111dd84d8586b1ac73ac64e2a072
treeabe46f31515723f2a64169c1213736f512de6cd8
parent8ebfcfe544f561db875604a053957123208a0084
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 <dwagner@suse.de>
meson.build