scons: Readd -Werror for the develop branch

This reverts commit 6e4c1c5db7.
This commit is contained in:
Bobby R. Bruce
2024-06-27 23:38:36 -07:00
parent b3f23830c9
commit 4a28b367d7

View File

@@ -552,6 +552,11 @@ for variant_path in variant_paths:
env.Append(CCFLAGS=['-pipe'])
env.Append(CCFLAGS=['-fno-strict-aliasing'])
# Enable -Wall and -Wextra and then disable the few warnings that
# we consistently violate
env.Append(CCFLAGS=['-Wall', '-Wundef', '-Wextra',
'-Wno-sign-compare', '-Wno-unused-parameter'])
# We always compile using C++17
env.Append(CXXFLAGS=['-std=c++17'])