meson: Use --werror build option instead of passing -Werror [skip ci]
This commit is contained in:
parent
5699432d38
commit
4fc4b73586
@ -112,9 +112,8 @@ add_project_arguments(['-DXXH_NAMESPACE=LZ4_'], language: 'c')
|
||||
|
||||
if [compiler_gcc, compiler_clang].contains(cc_id)
|
||||
common_warning_flags = []
|
||||
if buildtype == 'release'
|
||||
common_warning_flags = ['-Werror']
|
||||
endif
|
||||
# Should use Meson's own --werror build option
|
||||
#common_warning_flags += ['-Werror']
|
||||
if c_std == 'c89' or c_std == 'gnu89'
|
||||
common_warning_flags += ['-pedantic', '-Wno-long-long', '-Wno-variadic-macros']
|
||||
elif c_std == 'c99' or c_std == 'gnu99'
|
||||
|
Loading…
Reference in New Issue
Block a user