From: Florian Krohm Date: Fri, 5 Jun 2015 16:26:14 +0000 (+0000) Subject: Add -Wempty-body to the list of compile flags. X-Git-Tag: svn/VALGRIND_3_11_0~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2de98199b020d6ecdcd9c7a7ae10fb620727ced0;p=thirdparty%2Fvalgrind.git Add -Wempty-body to the list of compile flags. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15319 --- diff --git a/Makefile.all.am b/Makefile.all.am index a04cb4afb1..41f476f176 100644 --- a/Makefile.all.am +++ b/Makefile.all.am @@ -108,6 +108,7 @@ AM_CFLAGS_BASE = \ -Wmissing-declarations \ @FLAG_W_CAST_QUAL@ \ @FLAG_W_WRITE_STRINGS@ \ + @FLAG_W_EMPTY_BODY@ \ @FLAG_W_FORMAT@ \ @FLAG_W_FORMAT_SECURITY@ \ @FLAG_W_IGNORED_QUALIFIERS@ \ diff --git a/configure.ac b/configure.ac index 3830f39898..a43803dc38 100644 --- a/configure.ac +++ b/configure.ac @@ -1756,6 +1756,7 @@ AC_GCC_WARNING_SUBST_NO([uninitialized], [FLAG_W_NO_UNINITIALIZED]) AC_GCC_WARNING_SUBST_NO([unused-function], [FLAG_W_NO_UNUSED_FUNCTION]) AC_GCC_WARNING_SUBST_NO([static-local-in-inline], [FLAG_W_NO_STATIC_LOCAL_IN_INLINE]) AC_GCC_WARNING_SUBST([write-strings], [FLAG_W_WRITE_STRINGS]) +AC_GCC_WARNING_SUBST([empty-body], [FLAG_W_EMPTY_BODY]) AC_GCC_WARNING_SUBST([format], [FLAG_W_FORMAT]) AC_GCC_WARNING_SUBST([format-security], [FLAG_W_FORMAT_SECURITY]) AC_GCC_WARNING_SUBST([cast-qual], [FLAG_W_CAST_QUAL]) diff --git a/coregrind/m_stacks.c b/coregrind/m_stacks.c index 3a2e3d00f9..9a2319f54f 100644 --- a/coregrind/m_stacks.c +++ b/coregrind/m_stacks.c @@ -411,8 +411,9 @@ static void complaints_stack_switch (Addr old_SP, Addr new_SP) (void *) current_stack->end, \ current_stack->id); \ return; \ - } else \ + } else { \ EDEBUG("new current_stack not found\n"); \ + } \ } #define IF_BIG_DELTA_complaints_AND_RETURN \