build: add -Wformat=2 -Walloca

This commit is contained in:
Simon Ser 2021-02-23 16:41:26 +01:00
parent cf5b09ede2
commit 4b43aebdc7
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ add_project_arguments(cc.get_supported_arguments([
'-Wstrict-aliasing=2',
'-Woverflow',
'-Wmissing-prototypes',
'-Wformat=2',
'-Walloca',
'-Wno-missing-braces',
'-Wno-missing-field-initializers',