[Libguestfs] [nbdkit PATCH 10/10] maint: Enable -Wshadow during compilation

Eric Blake eblake at redhat.com
Sun Sep 1 02:29:47 UTC 2019


Now that previous patches have cleaned up shadowing warnings, it's
worth preventing any further relapses.

Signed-off-by: Eric Blake <eblake at redhat.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 4c92e2b1..5842c6f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,7 +90,7 @@ AC_ARG_ENABLE([gcc-warnings],
       [gcc_warnings=no]
 )
 if test "x$gcc_warnings" = "xyes"; then
-    WARNINGS_CFLAGS="-Wall -Werror"
+    WARNINGS_CFLAGS="-Wall -Wshadow -Werror"
     AC_SUBST([WARNINGS_CFLAGS])
 fi

-- 
2.21.0




More information about the Libguestfs mailing list