summaryrefslogtreecommitdiff
path: root/xorg-macros.m4.in
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-11-01 11:49:41 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-11-06 16:07:52 -0800
commit4a6ecc7b8e338483fb5ea6bfc9b2fb26f890807b (patch)
tree628ccb21ceee20a4698e858b6545291b4e76ce1e /xorg-macros.m4.in
parent08dd5d30c137abe43d5b1673edc39eb569881d66 (diff)
Fix the test for -Werror=attributes
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 <jeremyhu@apple.com> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'xorg-macros.m4.in')
-rw-r--r--xorg-macros.m4.in2
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 "x$GCC" = xyes ; then
AC_MSG_CHECKING([if $CC supports -Werror=attributes])
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([return 0;])],
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
[STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])])