Avoid visibility related compiler warnings on Windows.

This commit is contained in:
Lasse Collin 2009-07-01 12:21:24 +03:00
parent 7653d1cf48
commit 5cc99db5ba
1 changed files with 9 additions and 11 deletions

View File

@ -554,21 +554,19 @@ lc_CPUCORES
# If using GCC, set some additional AM_CFLAGS: # If using GCC, set some additional AM_CFLAGS:
############################################################################### ###############################################################################
if test "x$GCC" = xyes ; then if test "$GCC" = yes ; then
echo echo
echo "GCC extensions:" echo "GCC extensions:"
fi
# Avoid checking for visibility support on Windows, because the test # Always do the visibility check but don't set AM_CFLAGS on Windows.
# may succeed even though visibility isn't supported. Windows has # This way things get set properly even on Windows.
# a different way to export only the required symbols from the gl_VISIBILITY
# libraries. if test -n "$CFLAG_VISIBILITY" && test "$is_w32" = no; then
if test "$is_w32" = no; then
gl_VISIBILITY
if test -n "$CFLAG_VISIBILITY" ; then
AM_CFLAGS="$AM_CFLAGS $CFLAG_VISIBILITY" AM_CFLAGS="$AM_CFLAGS $CFLAG_VISIBILITY"
fi fi
fi
if test "$GCC" = yes ; then
# Enable as much warnings as possible. These commented warnings won't # Enable as much warnings as possible. These commented warnings won't
# work for this package though: # work for this package though:
# * -Wunreachable-code breaks several assert(0) cases, which are # * -Wunreachable-code breaks several assert(0) cases, which are