Wine: Use the -Wempty-body compiler option if present.

Gerald Pfeifer gerald at pfeifer.com
Sat May 7 19:53:23 CDT 2011


My fix for the sole instance this warning caught was applied a month
or two ago, but I forgot to submit this in the following.

Here we go, this can catch some really nasty typos.

Gerald
---
 configure.ac |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 057035f..eff1550 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1728,6 +1728,7 @@ then
   WINE_TRY_CFLAGS([-fno-builtin],[AC_SUBST(BUILTINFLAG,"-fno-builtin")])
   WINE_TRY_CFLAGS([-fno-strict-aliasing])
   WINE_TRY_CFLAGS([-Wdeclaration-after-statement])
+  WINE_TRY_CFLAGS([-Wempty-body])
   WINE_TRY_CFLAGS([-Wstrict-prototypes])
   WINE_TRY_CFLAGS([-Wtype-limits])
   WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
-- 
1.7.4.1



More information about the wine-patches mailing list