From 55f5f73d80e4b9b9ca0c0c2cece210afc2052bce Mon Sep 17 00:00:00 2001 From: Mathnerd314 Date: Thu, 16 Jun 2016 13:59:06 -0600 Subject: [PATCH] configure: Turn on -Wempty-body I spent half an hour debugging an extra semicolon, and this C "feature" is not used at all in ostree Closes: #359 Approved by: cgwalters --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d28c410a..d88f24e5 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ AC_PROG_YACC changequote(,)dnl if test "x$GCC" = "xyes"; then - WARN_CFLAGS="-Wall -Wstrict-prototypes -Werror=missing-prototypes \ + WARN_CFLAGS="-Wall -Wempty-body -Wstrict-prototypes -Werror=missing-prototypes \ -Werror=implicit-function-declaration \ -Werror=pointer-arith -Werror=init-self -Werror=format=2 \ -Werror=format-security \