From b73c27396053b514d6be37d600e8eefdaee0c173 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 4 Aug 2017 13:37:33 +0100 Subject: [PATCH] build: fix warnings in wchar test code These warnings can be safely ignored, but if you enable "-Werror", then configure fails. --- configure.ac | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 7b879c274..283b00761 100644 --- a/configure.ac +++ b/configure.ac @@ -891,10 +891,15 @@ AC_CACHE_CHECK([for wchar_t functions], mutt_cv_wc_funcs, #include #include ]], [[ -mbrtowc(0, 0, 0, 0);wctomb(0, 0); wcwidth(0); -iswprint(0); iswspace(0); towlower(0); -towupper(0); iswalnum(0)]] -)],[mutt_cv_wc_funcs=yes],[])) +mbrtowc(0, 0, 0, 0); +wctomb(0, 0); +wcwidth(0); +if (iswprint(0)){} +if (iswspace(0)){} +if (towlower(0)){} +if (towupper(0)){} +if (iswalnum(0)){} +]])],[mutt_cv_wc_funcs=yes],[])) if test $mutt_cv_wc_funcs != yes; then AC_MSG_ERROR([wchar_t functions not found]) -- 2.40.0