diff options
Diffstat (limited to 'config.lib')
-rw-r--r-- | config.lib | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config.lib b/config.lib index 741c399f5..81a80fce9 100644 --- a/config.lib +++ b/config.lib @@ -936,6 +936,10 @@ make_cflags_and_ldflags() { if [ $cc_version -ge 30 ]; then CFLAGS="$CFLAGS -W -Wno-unused-parameter -Wformat=2" CFLAGS="$CFLAGS -Wredundant-decls" + # Do not warn about unused variables when building without asserts + if [ $enable_assert -eq 0 ]; then + CFLAGS="$CFLAGS -Wno-unused-variable" + fi fi if [ $cc_version -ge 34 ]; then |