meson: use -Werror=strict-flex-arrays

This commit is contained in:
Frantisek Sumsal 2023-05-30 10:30:15 +02:00
parent 13bb569b75
commit 6405afdaf5

View file

@ -376,6 +376,7 @@ possible_common_cc_flags = [
'-Werror=return-type', '-Werror=return-type',
'-Werror=shift-count-overflow', '-Werror=shift-count-overflow',
'-Werror=shift-overflow=2', '-Werror=shift-overflow=2',
'-Werror=strict-flex-arrays',
'-Werror=undef', '-Werror=undef',
'-Wfloat-equal', '-Wfloat-equal',
# gperf prevents us from enabling this because it does not emit fallthrough # gperf prevents us from enabling this because it does not emit fallthrough