Hi,
Missing "#include <wctype.h>" in curs_lib.c causes a build error:
gcc -DPKGDATADIR=\"/usr/share/mutt\" -DSYSCONFDIR=\"/etc\"
-DBINDIR=\"/usr/bin\" -DMUTTLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H=1
-I. -I. -I. -I./imap -Wall -pedantic -Wno-long-long -O2 -flto=auto
-ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall
-Wno-complain-wrong-lang -Werror=format-security
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -O1 -MT curs_lib.o -MD -MP -MF .deps/curs_lib.Tpo
-c -o curs_lib.o curs_lib.c
curs_lib.c: In function 'mutt_format_string':
curs_lib.c:1384:11: error: implicit declaration of function 'iswblank'
[-Wimplicit-function-declaration]
1384 | if (iswblank (wc))
| ^~~~~~~~
curs_lib.c:49:1: note: include '<wctype.h>' or provide a declaration of
'iswblank'
48 | #include <langinfo.h>
+++ |+#include <wctype.h>
49 | #endif
curs_lib.c:1384:21: warning: 'iswblank' argument 1 promotes to 'wchar_t' {aka
'int'} where 'unsigned int' is expected in a call to built-in function declared
without prototype [-Wbuiltin-declaration-mismatch]
1384 | if (iswblank (wc))
| ^~
<built-in>: note: built-in 'iswblank' declared here
make[2]: *** [Makefile:915: curs_lib.o] Error 1
make[2]: Leaving directory
'/mnt/hdd/tmp/rpmbuild/BUILD/mutt-2.3.0-build/mutt-2.3.0'
make[1]: *** [Makefile:935: all-recursive] Error 1
make[1]: Leaving directory
'/mnt/hdd/tmp/rpmbuild/BUILD/mutt-2.3.0-build/mutt-2.3.0'
make: *** [Makefile:620: all] Error 2
--
Vsevolod Volkov
mailto:[email protected]
http://mutt.vvv.kiev.ua/download