meson: build with -pedantic

This commit is contained in:
Daniel Eklöf 2020-08-23 09:49:15 +02:00
parent 74cf8e0206
commit a5e9ea7c28
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -18,7 +18,8 @@ add_project_arguments(
? ['-D_DEBUG'] ? ['-D_DEBUG']
: [cc.get_supported_arguments('-fno-asynchronous-unwind-tables')]) + : [cc.get_supported_arguments('-fno-asynchronous-unwind-tables')]) +
cc.get_supported_arguments( cc.get_supported_arguments(
['-fstrict-aliasing', ['-pedantic',
'-fstrict-aliasing',
'-Wstrict-aliasing']), '-Wstrict-aliasing']),
language: 'c', language: 'c',
) )