summaryrefslogtreecommitdiffstats
path: root/contrib/meson
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2018-12-02 15:19:48 (GMT)
committerLzu Tao <taolzu@gmail.com>2018-12-03 12:19:02 (GMT)
commit4fc4b735869bf2cab0e777867a860363d6db5632 (patch)
treec23e777f5a3dd80bcd32094f59bf67f5be7dde6d /contrib/meson
parent5699432d386062b9088fda27bb0c597062efa666 (diff)
downloadlz4-4fc4b735869bf2cab0e777867a860363d6db5632.zip
lz4-4fc4b735869bf2cab0e777867a860363d6db5632.tar.gz
lz4-4fc4b735869bf2cab0e777867a860363d6db5632.tar.bz2
meson: Use --werror build option instead of passing -Werror [skip ci]
Diffstat (limited to 'contrib/meson')
-rw-r--r--contrib/meson/meson.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/meson/meson.build b/contrib/meson/meson.build
index f1ca503..3c39034 100644
--- a/contrib/meson/meson.build
+++ b/contrib/meson/meson.build
@@ -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'