2011/10/22 Frédéric Delanoy <[email protected]>:
> OK thx. Should probably restructure that section as well (and add
> -Werror to my CFLAGS)
How would people feel if configure turned on -Werror
when it's safe to if building from git? Something like this:
--- a/configure.ac
+++ b/configure.ac
@@ -1715,6 +1715,16 @@ then
if test "x$enable_maintainer_mode" = "xyes"
then
WINE_TRY_CFLAGS([-Werror])
+ else
+ dnl Enable -Werror when building from git on 32 bit x86 with gcc
+ case $host_cpu in
+ *i[[3456789]]86*)
+ if test "x${GCC}" = "xyes" && test -d $srcdir/.git
+ then
+ WINE_TRY_CFLAGS([-Werror])
+ fi
+ ;;
+ esac
fi
dnl Check for ms_hook_prologue support