meson.build: fix builds with --buildtype=plain

When building with --buildtype=plain, the build fails with the following
error:

    cc1: error: ‘-Wformat-security’ ignored without ‘-Wformat’ [-Werror=format-security]

-Werror=format-security was recently added in 43def1b3a5 by #745
This commit is contained in:
Eric Culp
2019-07-26 11:46:17 -07:00
committed by Peter Hutterer
parent 05d7e9b324
commit c2315323f4

View File

@@ -27,6 +27,7 @@ cc = meson.get_compiler('c')
cflags = ['-Wno-unused-parameter',
'-fvisibility=hidden',
'-Wmissing-prototypes',
'-Wformat', # required by format-security
'-Werror=format-security',
'-Wstrict-prototypes']
add_project_arguments(cflags, language: 'c')