From 7d579b5248709ffe183e69517c34b5ce9a39a395 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 13 Aug 2012 11:49:06 -0300 Subject: [PATCH] [xmp] Disable unused-result warning in configure Signed-off-by: Claudio Matsuoka --- configure.ac | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 3c38f0d..609558a 100644 --- a/configure.ac +++ b/configure.ac @@ -180,13 +180,11 @@ define(XMP_TRY_COMPILE,[ true; $6 fi]) -if test "${GCC-no}" = yes; then - XMP_TRY_COMPILE(whether compiler understands -Wmultichar, - ac_cv_c_flag_w_multichar, - -Wmultichar,[ - int main(){}], - CFLAGS="${CFLAGS} -Wno-multichar") -fi +XMP_TRY_COMPILE(whether compiler understands -Wunused-result, + ac_cv_c_flag_w_unused_result, + -Wunused-result,[ + int main(){}], + CFLAGS="${CFLAGS} -Wno-unused-result") AC_CHECK_FUNCS(kill getopt_long) AC_PROG_INSTALL