meson: add -Wmissing-prototypes to the build

Meson's warning level maps to -Wall, -Wextra and -Wpedantic.
-Wmissing-prototypes is added by neither of those flag. Consequently,
it is manually added to the build command line arguments.

Signed-off-by: Guillaume Champagne <champagne.guillaume.c@gmail.com>
This commit is contained in:
Guillaume Champagne 2020-01-26 18:24:44 -05:00 committed by Pekka Paalanen
parent f1e8fc9dbf
commit 556afd1482

View file

@ -58,6 +58,7 @@ cc = meson.get_compiler('c')
global_args = []
global_args_maybe = [
'-Wmissing-prototypes',
'-Wno-unused-parameter',
'-Wno-shift-negative-value', # required due to Pixman
'-Wno-missing-field-initializers',