changeset 9577 | aad15c2e26cd |
parent 9436 | 2eabc2c8ac08 |
child 9680 | 91e74d1291fd |
--- a/config.lib Sun Jun 22 15:41:38 2008 +0000 +++ b/config.lib Sun Jun 22 18:44:28 2008 +0000 @@ -931,6 +931,12 @@ # Make sure we mark GCC 2.95 flag for Makefile.src.in, as we # need a lovely hack there to make it compile correctly. gcc295="1" + + # Disable warnings about unused variables when + # compiling with asserts disabled + if [ $enable_assert -eq 0 ]; then + CFLAGS="$CFLAGS -Wno-unused" + fi fi if [ $cc_version -ge 30 ]; then