mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
build: error out on -Wimplicit
These warnings are easy to miss during development: ../edid.c: In function ‘_di_edid_parse’: ../edid.c:254:25: warning: implicit declaration of function ‘di_edid_destroy’? [-Wimplicit-function-declaration] 254 | di_edid_destroy(edid); | ^~~~~~~~~~~~~~~ And when missed, the code still compiles. Which means one needs to clean-build to show them again. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
7a31791343
commit
c9d9bf4dd5
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ add_project_arguments(cc.get_supported_arguments([
|
|||
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-missing-field-initializers',
|
||||
|
||||
'-Werror=implicit',
|
||||
]), language: 'c')
|
||||
|
||||
di_lib = library(
|
||||
|
|
Loading…
Reference in a new issue