From aff2ea6350439c49938c404f18233bc7504e8a36 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 13 Oct 2011 16:35:25 -0400 Subject: [PATCH] Don't warn about multichar characters on BeOS/Haiku. The system headers use them generously. (transplanted from 825e1072eac6c950ca4f6e879a91ea199a282b2c) --- configure.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/configure.in b/configure.in index 8c0c3d967..22799b9b9 100644 --- a/configure.in +++ b/configure.in @@ -958,6 +958,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 }