<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
On Thu, 2011-11-03 at 01:19 -0700, Jeremy Huddleston wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
The current test was always failing to compile because 'return 0;' was
global rather than in the body of a function.

Signed-off-by: Jeremy Huddleston &lt;<A HREF="mailto:jeremyhu@apple.com">jeremyhu@apple.com</A>&gt;
---
 xorg-macros.m4.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 0527dfe..534afba 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -1431,7 +1431,7 @@ if test &quot;x$GCC&quot; = xyes ; then
     AC_MSG_CHECKING([if $CC supports -Werror=attributes])
     save_CFLAGS=&quot;$CFLAGS&quot;
     CFLAGS=&quot;$CFLAGS $STRICT_CFLAGS -Werror=attributes&quot;
-    AC_COMPILE_IFELSE([AC_LANG_SOURCE([return 0;])],
+    AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
                       [STRICT_CFLAGS=&quot;$STRICT_CFLAGS -Werror=attributes&quot;
                        AC_MSG_RESULT([yes])],
                       [AC_MSG_RESULT([no])])
</PRE>
</BLOCKQUOTE>
Reviewed-by: Gaetan Nadon &lt;memsize@videotron.ca&gt;
</BODY>
</HTML>