Skip to content
Permalink
Browse files

Don't warn about multichar characters on BeOS/Haiku.

The system headers use them generously.
  • Loading branch information
icculus committed Oct 13, 2011
1 parent eddbc01 commit 8564908e1c45e0ae753074671a0b427111162e45
Showing with 13 additions and 0 deletions.
  1. +13 −0 configure.in
@@ -894,6 +894,19 @@ CheckWarnAll()

if test x$have_gcc_Wall = xyes; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"

dnl Haiku headers use multicharacter constants all over the place. Ignore these warnings when using -Wall.
AC_MSG_CHECKING(for necessary GCC -Wno-multichar option)
need_gcc_Wno_multichar=no
case "$host" in
*-*-beos* | *-*-haiku*)
need_gcc_Wno_multichar=yes
;;
esac
AC_MSG_RESULT($need_gcc_Wno_multichar)
if test x$need_gcc_Wno_multichar = xyes; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
fi
fi
}

0 comments on commit 8564908

Please sign in to comment.