0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

meson: actually use -Werror=format-security

We tested for this flag, but never added -Wformat in addition to
-Werror=format-security. The latter was silently ignored and actually
did nothing.
This commit is contained in:
Dudemanguy 2023-01-30 14:40:49 -06:00
parent 9659555d45
commit 25f5333b4a

View File

@ -271,7 +271,7 @@ test_flags = ['-Werror=implicit-function-declaration',
flags += cc.get_supported_arguments(test_flags)
if cc.has_multi_arguments('-Wformat', '-Werror=format-security')
flags += '-Werror=format-security'
flags += ['-Wformat', '-Werror=format-security']
endif
if cc.get_id() == 'gcc'