Commit ab550c22 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Bug 578983 – set_more_warnings check of WARNING_CFLAGS doesn't work

2009-04-16  Alexander Larsson  <alexl@redhat.com>

	Bug 578983 – set_more_warnings check of WARNING_CFLAGS doesn't work
	
	* configure.in:
	Actually check the options.


svn path=/trunk/; revision=15187
parent 9870d42d
2009-04-16 Alexander Larsson <alexl@redhat.com>
Bug 578983 – set_more_warnings check of WARNING_CFLAGS doesn't work
* configure.in:
Actually check the options.
2009-04-16 Alexander Larsson <alexl@redhat.com>
* src/nautilus-places-sidebar.c (nautilus_places_sidebar_init):
......
......@@ -355,16 +355,17 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-Werror"
for option in -Wstrict-aliasing=0 -Wno-pointer-sign; do
SAVE_CFLAGS="$WARNING_CFLAGS"
WARNING_CFLAGS="$WARNING_CFLAGS $option"
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])
AC_TRY_COMPILE([], [],
has_option=yes,
has_option=no,)
if test $has_option = no; then
WARNING_CFLAGS="$SAVE_CFLAGS"
WARNING_CFLAGS="$WARNING_CFLAGS $option"
fi
AC_MSG_RESULT($has_option)
CFLAGS="$SAVE_CFLAGS"
unset has_option
unset SAVE_CFLAGS
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment