Commit efe2585
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments