meson.build: promote two warnings to errors

Promote the following warnings to errors:
  * implicit-function-declaration
  * int-conversion
because the code very likely will not work
correctly if any of these two trigger.
This commit is contained in:
Barnabás Pőcze 2023-02-16 20:27:26 +01:00
parent d77ef4b05e
commit aca5755c91

View file

@ -91,6 +91,8 @@ cc_flags = common_flags + [
'-D_GNU_SOURCE', '-D_GNU_SOURCE',
'-DFASTPATH', '-DFASTPATH',
# '-DSPA_DEBUG_MEMCPY', # '-DSPA_DEBUG_MEMCPY',
'-Werror=implicit-function-declaration',
'-Werror=int-conversion',
] ]
add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c') add_project_arguments(cc.get_supported_arguments(cc_flags), language: 'c')