Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/uw-imap.spec'], chrootPath='/var/lib/mock/f33-build-296632-55737/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/uw-imap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595980800 Wrote: /builddir/build/SRPMS/uw-imap-2007f-26.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/uw-imap.spec'], chrootPath='/var/lib/mock/f33-build-296632-55737/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/uw-imap.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595980800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vrzlLP + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf imap-2007f + /usr/bin/gzip -dc /builddir/build/SOURCES/imap-2007f.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd imap-2007f + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (imap-2007-paths.patch):' Patch #1 (imap-2007-paths.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .paths --fuzz=0 patching file src/osdep/unix/Makefile + echo 'Patch #2 (imap-2004a-doc.patch):' Patch #2 (imap-2004a-doc.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .doc --fuzz=0 patching file src/imapd/imapd.8 Hunk #1 succeeded at 16 (offset 13 lines). patching file src/ipopd/ipopd.8 Hunk #1 succeeded at 16 (offset 13 lines). Patch #5 (imap-2007e-overflow.patch): + echo 'Patch #5 (imap-2007e-overflow.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .overflow --fuzz=0 patching file src/c-client/rfc822.c + echo 'Patch #9 (imap-2007e-shared.patch):' Patch #9 (imap-2007e-shared.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .shared --fuzz=0 patching file src/osdep/unix/Makefile Hunk #2 succeeded at 857 (offset 8 lines). Hunk #3 succeeded at 913 (offset 8 lines). Hunk #4 succeeded at 927 (offset 8 lines). Patch #10 (imap-2007e-authmd5.patch): + echo 'Patch #10 (imap-2007e-authmd5.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .authmd5 --fuzz=0 patching file src/c-client/auth_md5.c + install -p -m644 /builddir/build/SOURCES/imap-password.pam imap.pam Patch #12 (imap-2007f-format-security.patch): + echo 'Patch #12 (imap-2007f-format-security.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fmt-sec --fuzz=0 patching file src/osdep/unix/flocklnx.c Patch #13 (imap-2007e-poll.patch): + echo 'Patch #13 (imap-2007e-poll.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .poll --fuzz=0 patching file src/osdep/unix/os_lnx.c patching file src/osdep/unix/os_slx.c patching file src/osdep/unix/tcp_unix.c Patch #14 (1006_openssl1.1_autoverify.patch): + echo 'Patch #14 (1006_openssl1.1_autoverify.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .openssl11 --fuzz=0 patching file src/osdep/unix/ssl_unix.c Patch #15 (imap-2007f-ldflags.patch): + echo 'Patch #15 (imap-2007f-ldflags.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ldflags --fuzz=0 patching file src/osdep/unix/Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.kdd5mM + umask 022 + cd /builddir/build/BUILD + cd imap-2007f + test -f /etc/profile.d/krb5-devel.sh + test -f /etc/profile.d/krb5.sh ++ krb5-config --prefix + GSSDIR=/usr ++ pkg-config --cflags openssl + export 'EXTRACFLAGS= ' + EXTRACFLAGS=' ' + export 'EXTRACFLAGS= -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + EXTRACFLAGS=' -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export 'EXTRACFLAGS= -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing' + EXTRACFLAGS=' -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing' + export 'EXTRACFLAGS= -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign' + EXTRACFLAGS=' -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign' + echo -e 'y\ny' ++ pwd + make -j4 lnp IP=6 'EXTRACFLAGS= -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign' 'EXTRALDFLAGS= -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' EXTRAAUTHENTICATORS=gss 'SPECIALS=GSSDIR=/usr LOCKPGM=/usr/sbin/mlock SSLCERTS=/etc/pki/tls/certs SSLDIR=/etc/pki/tls SSLINCLUDE=/usr/include/openssl SSLKEYS=/etc/pki/tls/private SSLLIB=/usr/lib64' SSLTYPE=unix CCLIENTLIB=/builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 SHLIBBASE=c-client SHLIBNAME=libc-client.so.2007 make[1]: Entering directory '/builddir/build/BUILD/imap-2007f' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building in PARTIAL compliance with RFC 3501 security + requirements: + Compliant: ++ TLS/SSL encryption is supported + Non-compliant: ++ Unencrypted plaintext passwords are permitted + + In order to rectify this problem, you MUST build with: ++ SSLTYPE=unix.nopwd +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Do you want to continue this build anyway? Type y or n please: make[1]: Leaving directory '/builddir/build/BUILD/imap-2007f' Applying an process to sources... tools/an "ln -s" src/c-client c-client tools/an "ln -s" src/ansilib c-client tools/an "ln -s" src/charset c-client tools/an "ln -s" src/osdep/unix c-client tools/an "ln -s" src/mtest mtest tools/an "ln -s" src/ipopd ipopd tools/an "ln -s" src/imapd imapd tools/an "ln -s" src/mailutil mailutil tools/an "ln -s" src/mlock mlock tools/an "ln -s" src/dmail dmail tools/an "ln -s" src/tmail tmail ln -s tools/an . make build EXTRACFLAGS='-fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign' EXTRALDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=std SSLTYPE=unix IP=6 EXTRASPECIALS='' BUILDTYPE=lnp make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[1]: Entering directory '/builddir/build/BUILD/imap-2007f' make[2]: Entering directory '/builddir/build/BUILD/imap-2007f' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building with IPv6 support + + NOTE: Some versions of glibc have a bug in the getaddrinfo + call which does DNS name resolution. This bug causes host + names to be canonicalized incorrectly, as well as doing an + unnecessary and performance-sapping reverse DNS call. This + problem does not affect the IPv4 gethostbyname call. + + getaddrinfo works properly on Mac OS X and Windows. However, + the problem has been observed on some Linux systems. + + If you answer n to the following question the build will be + cancelled and you must rebuild. If you did not specify IPv6 + yourself, try adding IP6=4 to the make command line. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Do you want to build with IPv6 anyway? Type y or n please: OK, I will remember that you really want to build with IPv6. You will not see this message again. make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f' Building c-client for lnp... echo `cat SPECIALS` > c-client/SPECIALS cd c-client;make lnp EXTRACFLAGS='-fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign'\ EXTRALDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'\ EXTRADRIVERS='mbox'\ EXTRAAUTHENTICATORS='gss'\ PASSWDTYPE=std SSLTYPE=unix IP=6\ GSSDIR=/usr LOCKPGM=/usr/sbin/mlock SSLCERTS=/etc/pki/tls/certs SSLDIR=/etc/pki/tls SSLINCLUDE=/usr/include/openssl SSLKEYS=/etc/pki/tls/private SSLLIB=/usr/lib64 make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/c-client' Makefile:874: warning: ignoring prerequisites on suffix rule definition make build EXTRACFLAGS='-fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign' EXTRALDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=std SSLTYPE=unix IP=6 `cat SPECIALS` OS=slx \ SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \ SPOOLDIR=/var/spool \ ACTIVEFILE=/var/lib/news/active \ RSHPATH=/usr/bin/rsh \ BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" \ BASELDFLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lpam -ldl" make[3]: Entering directory '/builddir/build/BUILD/imap-2007f/c-client' Makefile:874: warning: ignoring prerequisites on suffix rule definition sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true' Once-only environment setup... echo cc > CCTYPE echo -g -O2 -pipe -fno-omit-frame-pointer '-fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -Wno-pointer-sign' -DCHUNKSIZE=65536 > CFLAGS echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \ -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/spool/mail\" \ -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \ -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \ -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/sbin/mlock\" \ -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \ -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS echo -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lpam -ldl -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld > LDFLAGS echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a" > ARCHIVE echo slx > OSTYPE ./drivers mbox imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy ./mkauths gss ext md5 pla log make[4]: Entering directory '/builddir/build/BUILD/imap-2007f/c-client' echo -I/usr/include -DGSS_C_NT_HOSTBASED_SERVICE=gss_nt_service_name -DKRB5_DEPRECATED=1 >> OSCFLAGS sh -c '(test -f /usr/lib/libk5crypto.a) && echo -L/usr/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err || echo -L/usr/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err' >> LDFLAGS echo "#include \"kerb_mit.c\"" >> auths.c make[4]: Leaving directory '/builddir/build/BUILD/imap-2007f/c-client' echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c ln -s os_slx.h osdep.h ln -s os_slx.c osdepbas.c ln -s log_std.c osdeplog.c ln -s sig_psx.c siglocal.c ln -s crx_nfs.c crexcl.c ln -s ip6_unix.c ip_unix.c sh -c '(test slx = sc5 -o slx = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS' Standard password authentication ln -s ckp_pam.c osdepckp.c Building with SSL ln -s ssl_unix.c osdepssl.c echo -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/etc/pki/tls/certs\" -DSSL_KEY_DIRECTORY=\"/etc/pki/tls/private\" >> OSCFLAGS echo " ssl_onceonlyinit ();" >> linkage.c echo -L/usr/lib64 -lssl -lcrypto -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld >> LDFLAGS cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c cc -fPIC -DPIC -D_REENTRANT `cat CFLAGS` `cat OSCFLAGS` -c osdep.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from osdep.h:43, from osdep.c:31: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from auths.c:2, from env_unix.c:260, from osdep.c:51: auth_gss.c: In function 'auth_gssapi_client': auth_gss.c:100:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 100 | if (chal.value = (*challenger) (stream,(unsigned long *) &chal.length)) { | ^~~~ auth_gss.c: In function 'auth_gssapi_server': auth_gss.c:339:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 339 | if (resp.value = (*responder) ("",0,(unsigned long *) &resp.length)) { | ^~~~ auth_gss.c:399:14: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] 399 | SERVER_LOG ("Failed to acquire credentials for %s",buf.value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ | | | void * auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' 55 | #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) | ^ auth_gss.c:399:50: note: format string is defined here 399 | SERVER_LOG ("Failed to acquire credentials for %s",buf.value); | ~^ | | | char * | %p auth_gss.c:406:16: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] 406 | SERVER_LOG ("Unknown GSSAPI failure: %s",resp.value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ | | | void * auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' 55 | #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) | ^ auth_gss.c:406:42: note: format string is defined here 406 | SERVER_LOG ("Unknown GSSAPI failure: %s",resp.value); | ~^ | | | char * | %p auth_gss.c:414:14: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] 414 | SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ | | | void * auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' 55 | #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) | ^ auth_gss.c:414:41: note: format string is defined here 414 | SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); | ~^ | | | char * | %p In file included from auths.c:3, from env_unix.c:260, from osdep.c:51: auth_ext.c: In function 'auth_external_client': auth_ext.c:62:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 62 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_ext.c:66:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 66 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ In file included from auths.c:4, from env_unix.c:260, from osdep.c:51: auth_md5.c: In function 'auth_md5_client': auth_md5.c:105:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 105 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_md5.c:120:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 120 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ auth_md5.c: In function 'auth_md5_server': auth_md5.c:155:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 155 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { | ^~~~ auth_md5.c:157:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 157 | if (hash = strrchr (user,' ')) { | ^~~~ auth_md5.c:160:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 160 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; | ^~~~~~~~ auth_md5.c:162:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 162 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { | ^ auth_md5.c: In function 'apop_login': auth_md5.c:238:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 238 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; | ^~~~~~~~ auth_md5.c:240:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 240 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { | ^ In file included from auths.c:5, from env_unix.c:260, from osdep.c:51: auth_pla.c: In function 'auth_plain_client': auth_pla.c:66:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 66 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_pla.c:94:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 94 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ auth_pla.c: In function 'auth_plain_server': auth_pla.c:123:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 123 | if (aid = (*responder) ("",0,&len)) { | ^~~ In file included from auths.c:6, from env_unix.c:260, from osdep.c:51: auth_log.c: In function 'auth_login_client': auth_log.c:66:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 66 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_log.c:81:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 81 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ auth_log.c: In function 'auth_login_server': auth_log.c:107:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { | ^~~~ auth_log.c:108:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { | ^~~~ auth_log.c:110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; | ^~~~~~~~ In file included from osdep.c:51: env_unix.c: In function 'do_date': env_unix.c:514:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 514 | if (julian = t->tm_yday -julian) | ^~~~~~ env_unix.c: In function 'valpwd': env_unix.c:669:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 669 | if (s = auth_md5_pwd (user)) { | ^ env_unix.c:676:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 676 | else if (pw = pwuser (user)) {/* can get user? */ | ^~ env_unix.c: In function 'dotlock_lock': env_unix.c:1251:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1251 | if (s = strrchr (base->lock,'/')) { | ^ In file included from osdep.c:31: env_unix.c: In function 'lock_work': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ env_unix.c:1374:27: note: in expansion of macro 'flock' 1374 | if (op & LOCK_NB) i = flock (fd,op); | ^~~~~ In file included from osdep.c:51: env_unix.c: In function 'dorc': env_unix.c:1582:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1582 | if (d = mail_valid (NIL,"INBOX",NIL)) { | ^ env_unix.c:1595:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1595 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) | ^ In file included from osdep.c:54: tcp_unix.c: In function 'tcp_open': tcp_unix.c:175:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 175 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { | ^~~ tcp_unix.c:215:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 215 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; | ^~~~~~ tcp_unix.c: In function 'tcp_aopen': tcp_unix.c:350:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 350 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); | ^~~ tcp_unix.c: In function 'tcp_getbuffer': tcp_unix.c:526:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 526 | if (n = min (size,stream->ictr)) { | ^ tcp_unix.c: In function 'tcp_clienthost': tcp_unix.c:832:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 832 | if (v = strchr (s,' ')) *v = '\0'; | ^ tcp_unix.c: In function 'tcp_name': tcp_unix.c:959:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 959 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) { | ^ tcp_unix.c: In function 'tcp_isclienthost': tcp_unix.c:1000:17: warning: unused variable 'sadrlen' [-Wunused-variable] 1000 | size_t adrlen,sadrlen,len; | ^~~~~~~ osdep.c: In function 'checkpw': osdep.c:164:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 164 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), | ^~ osdep.c: In function 'ssl_start_work': osdep.c:460:12: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] 460 | TLSv1_client_method () : | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bio.h:13, from /usr/include/openssl/x509v3.h:13, from osdep.c:267: /usr/include/openssl/ssl.h:1884:45: note: declared here 1884 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) | ^~~~~~~~~~~~~~~~~~~ osdep.c:479:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 479 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) | ^ osdep.c:483:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 483 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { | ^~~~ osdep.c:492:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 492 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), | ^~~ osdep.c:451:25: warning: unused variable 'scq' [-Wunused-variable] 451 | sslcertificatequery_t scq = | ^~~ osdep.c:450:19: warning: unused variable 'tmp' [-Wunused-variable] 450 | char *s,*t,*err,tmp[MAILTMPLEN]; | ^~~ osdep.c:450:15: warning: unused variable 'err' [-Wunused-variable] 450 | char *s,*t,*err,tmp[MAILTMPLEN]; | ^~~ osdep.c: In function 'ssl_server_init': osdep.c:955:12: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations] 955 | TLSv1_server_method () : | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bio.h:13, from /usr/include/openssl/x509v3.h:13, from osdep.c:267: /usr/include/openssl/ssl.h:1883:45: note: declared here 1883 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) | ^~~~~~~~~~~~~~~~~~~ osdep.c:1007:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | while (i = ERR_get_error ()) /* SSL failure */ | ^ osdep.c: In function 'ssl_genkey': osdep.c:1026:5: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] 1026 | if (!(key = RSA_generate_key (export ? keylength : 1024,RSA_F4,NIL,NIL))) { | ^~ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bio.h:13, from /usr/include/openssl/x509v3.h:13, from osdep.c:267: /usr/include/openssl/rsa.h:235:1: note: declared here 235 | DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void | ^~~~~~~~~~~~~~~~~~ osdep.c:1029:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1029 | while (i = ERR_get_error ()) | ^ osdep.c: At top level: osdep.c:299:14: warning: 'ssl_validate_cert' declared 'static' but never defined [-Wunused-function] 299 | static char *ssl_validate_cert (X509 *cert,char *host); | ^~~~~~~~~~~~~~~~~ In file included from auths.c:4, from env_unix.c:260, from osdep.c:51: auth_md5.c: In function 'auth_md5_pwd': auth_md5.c:195:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 195 | read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:51: env_unix.c: In function 'pw_login': env_unix.c:785:37: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 785 | (ret = env_init (user,home))) chdir (myhomedir ()); | ^~~~~~~~~~~~~~~~~~~~ At top level: osdep.c:601:13: warning: 'ssl_compare_hostnames' defined but not used [-Wunused-function] 601 | static long ssl_compare_hostnames (unsigned char *s,unsigned char *pat) | ^~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:54: tcp_unix.c: In function 'tcp_name': tcp_unix.c:953:44: warning: '%s' directive writing up to 1023 bytes into a region of size 1001 [-Wformat-overflow=] 953 | sprintf (tmp,"Reverse DNS resolution %s",adr); | ^~ ~~~ In file included from /usr/include/stdio.h:866, from osdep.c:32: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output between 24 and 1047 bytes into a destination of size 1024 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:54: tcp_unix.c:961:42: warning: '__sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 961 | if (flag) sprintf (ret = tmp,"%s %s",t,adr); | ^ In file included from /usr/include/stdio.h:866, from osdep.c:32: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ======================================================================== Building OS-dependent module If you get No such file error messages for files x509.h, ssl.h, pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL is not installed on your system. Either install OpenSSL first or build with command: make slx SSLTYPE=none ======================================================================== cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mail.c mail.c: In function 'mm_cache': mail.c:212:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 212 | if (stream->cache[i] = stream->cache[msgno]) | ^~~~~~ mail.c: In function 'mail_parameters': mail.c:385:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 385 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; | ^~~ mail.c:390:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 390 | if (ret = (void *) d) d->flags |= DR_DISABLE; | ^~~ mail.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 395 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; | ^~~ mail.c:400:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 400 | if (ret = (void *) a) a->flags |= AU_DISABLE; | ^~~ mail.c:405:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 405 | if (ret = (void *) a) a->flags &= ~AU_HIDE; | ^~~ mail.c:410:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 410 | if (ret = (void *) a) a->flags |= AU_HIDE; | ^~~ mail.c:644:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 644 | if (r = smtp_parameters (function,value)) ret = r; | ^ mail.c:645:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 645 | if (r = env_parameters (function,value)) ret = r; | ^ mail.c:646:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 646 | if (r = tcp_parameters (function,value)) ret = r; | ^ mail.c:648:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 648 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; | ^ mail.c:652:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 652 | if (r = (d->parameters) (function,value)) ret = r; | ^ mail.c: In function 'mail_valid_net_parse_work': mail.c:766:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 766 | if (t = strpbrk (s = t,"/:=")) { | ^ mail.c:784:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 784 | if (t = strpbrk (v = t,"/:")) { | ^ mail.c: In function 'mail_list': mail.c:919:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 919 | while (d = d->next); /* until at the end */ | ^ mail.c: In function 'mail_lsub': mail.c:952:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 952 | while (d = d->next); /* until at the end */ | ^ mail.c: In function 'mail_create': mail.c:996:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 996 | if (s = strpbrk (mailbox,"\015\012")) { | ^ mail.c:1012:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1012 | if (s = mail_utf7_valid (mailbox)) { | ^ mail.c: In function 'mail_rename': mail.c:1092:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1092 | if (s = mail_utf7_valid (newname)) { | ^ mail.c: In function 'mail_open': mail.c:1199:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | if (stream = mail_open (stream,s+1,options)) { | ^~~~~~ mail.c:1216:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1216 | if (stream = mail_open (stream,mb.mailbox,options)) { | ^~~~~~ mail.c:1243:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1243 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; | ^ mail.c: In function 'mail_fetch_structure': mail.c:1543:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1543 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_message': mail.c:1655:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1655 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_header': mail.c:1725:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1725 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c:1778:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1778 | if (rt.data = (unsigned char *) | ^~ mail.c: In function 'mail_fetch_text': mail.c:1816:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1816 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_mime': mail.c:1871:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1871 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_body': mail.c:1954:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1954 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_partial_text': mail.c:2012:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2012 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_partial_body': mail.c:2082:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2082 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_msgno': mail.c:2232:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2232 | if (delta = ((last - first) / 2)) { | ^~~~~ mail.c: In function 'mail_search_default': mail.c:2386:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2386 | if (msg = utf8_badcharset (charset)) { | ^~~ mail.c: In function 'mail_append_multiple': mail.c:2612:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2612 | else if (d = mail_valid (stream,mailbox,NIL)) | ^ mail.c: In function 'mail_gc': mail.c:2650:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2650 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) | ^~~ mail.c: In function 'mail_body': mail.c:2725:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2725 | if (pt = b->nested.part) while (--i && (pt = pt->next)); | ^~ mail.c: In function 'mail_parse_date': mail.c:3085:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3085 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ | ^ mail.c: In function 'mail_uid_sequence': mail.c:3306:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3306 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; | ^ mail.c: In function 'mail_match_lines': mail.c:3339:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3339 | while (lines = lines->next); | ^~~~~ mail.c: In function 'mail_filter': mail.c:3371:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3371 | if (i = t - tmp) /* see if found in header */ | ^ mail.c: In function 'mail_search_header_text': mail.c:3621:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3621 | if (h.data = (unsigned char *) s) { | ^ mail.c: In function 'mail_search_text': mail.c:3672:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3672 | if (st = st->next) s = s->next = mail_newstringlist (); | ^~ mail.c: In function 'mail_search_body': mail.c:3754:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3754 | if (body = body->nested.msg->body) | ^~~~ mail.c:3771:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3771 | if (st.data = (unsigned char *) | ^~ mail.c:3778:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3778 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { | ^~ mail.c: In function 'mail_search_string': mail.c:3806:16: warning: unused variable 'sc' [-Wunused-variable] 3806 | STRINGLIST **sc = st; | ^~ mail.c: In function 'mail_search_keyword': mail.c:3859:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3859 | } while (st = st->next); | ^~ mail.c: In function 'mail_search_addr': mail.c:3888:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3888 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); | ^~~~ mail.c:3889:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3889 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); | ^~~~ mail.c:3890:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3890 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); | ^~~~ mail.c: In function 'mail_criteria_string': mail.c:4125:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4125 | if (d = strtok_r (c,end,r)) n = strlen (d); | ^ mail.c: In function 'mail_sort_loadcache': mail.c:4336:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4336 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4372:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4372 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4380:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4380 | if (v = strchr (v,':')) { | ^ mail.c:4387:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4387 | if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { | ^~~ mail.c:4405:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4405 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4413:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4413 | if (v = strchr (v,':')) { | ^ mail.c:4420:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4420 | if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { | ^~~ mail.c:4438:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4438 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4446:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4446 | if (v = strchr (v,':')) { | ^ mail.c:4453:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4453 | if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { | ^~~ mail.c:4472:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4472 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c: In function 'mail_strip_subject': mail.c:4506:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4506 | if (src.size = strlen (t)) { /* have non-empty subject? */ | ^~~ mail.c: In function 'mail_sort_compare': mail.c:4662:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4662 | while (pgm = i ? NIL : pgm->next); | ^~~ mail.c: In function 'mail_thread_orderedsubject': mail.c:4789:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4789 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ | ^~~ mail.c: In function 'mail_thread_references': mail.c:4903:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4903 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { | ^~~ mail.c:4951:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4951 | THREADLINKS); st = st->next; con = nxc) { | ^~ mail.c: In function 'mail_thread_parse_references': mail.c:5183:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5183 | if (t = mail_thread_parse_msgid (s,&s)) { | ^ mail.c:5187:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5187 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { | ^ mail.c: In function 'mail_thread_c2node': mail.c:5289:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5289 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); | ^~~ mail.c: In function 'mail_parse_flags': mail.c:5440:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5440 | if (n = strchr (t,' ')) *n++ = '\0'; | ^ mail.c: In function 'net_open_work': mail.c:6201:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 6201 | if (tstream = (*dv->open) (host,service,port | flags)) { | ^~~~~~~ mail.c: In function 'net_aopen': mail.c:6223:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 6223 | if (tstream = (*dv->aopen) (mb,service,user)) { | ^~~~~~~ mail.c: In function 'mail_parse_set': mail.c:4149:26: warning: 'cur' may be used uninitialized in this function [-Wmaybe-uninitialized] 4149 | else cur = cur->next = mail_newsearchset (); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` misc.c misc.c: In function 'hash_reset': misc.c:318:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 318 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) | ^~~ misc.c: In function 'hash_index': misc.c:335:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 335 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; | ^ misc.c: In function 'compare_cstring': misc.c:452:37: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 452 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; | ^ misc.c: In function 'compare_csizedtext': misc.c:472:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 472 | if (i = (compare_uchar (*s1,*s))) return i; | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` newsrc.c newsrc.c: In function 'newsrc_newmessages': newsrc.c:126:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 126 | if (k = elt->private.uid - 1) { | ^ newsrc.c: In function 'newsrc_write': newsrc.c:343:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ | ^ newsrc.c:368:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; | ^ newsrc.c:384:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 384 | if (f = newsrc_create (stream,T)) bf = NIL; | ^ newsrc.c: In function 'newsrc_state': newsrc.c:468:2: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 468 | fread (s,(size_t) 1,size,f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` smanager.c smanager.c: In function 'sm_subscribe': smanager.c:46:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 46 | if (f = fopen (db,"r")) { /* make sure not already there */ | ^ smanager.c:48:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 48 | if (s = strchr (tmp,'\n')) *s = '\0'; | ^ smanager.c: In function 'sm_unsubscribe': smanager.c:88:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 88 | if (s = strchr (tmp,'\n')) *s = '\0'; | ^ smanager.c: In function 'sm_read': smanager.c:119:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 119 | if (f = fopen (sbname,"r")) *sdb = (void *) f; | ^ smanager.c:123:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 123 | if (s = strchr (sbname,'\n')) *s = '\0'; | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` utf8.c utf8.c:114:39: warning: missing braces around initializer [-Wmissing-braces] 114 | static const CHARSET utf8_csvalid[] = { | ^ utf8.c:347:38: warning: missing braces around initializer [-Wmissing-braces] 347 | static const SCRIPT utf8_scvalid[] = { | ^ utf8.c: In function 'utf8_rmap_cs': utf8.c:662:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 662 | else if (ret = utf8_rmap_gen (cs,currmap)) { | ^~~ utf8.c: In function 'utf8_rmaptext': utf8.c:794:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 794 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { | ^ utf8.c: In function 'utf8_csvalidmap': utf8.c:1293:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1293 | if (cs = utf8_charset (s)) { | ^~ utf8.c: In function 'ucs4_decompose': utf8.c:2395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2395 | if (m = (struct decomposemore *) *more) switch (m->type) { | ^ utf8.c:2418:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2418 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { | ^ utf8.c:2448:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2448 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { | ^ utf8.c: In function 'ucs4_decompose_recursive': utf8.c:2513:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2513 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { | ^~ utf8.c:2533:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2533 | if (mr = mn) { /* did this value recurse on us? */ | ^~ utf8.c: In function 'ucs4_decompose': utf8.c:2497:10: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] 2497 | return ret; | ^~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` utf8aux.c utf8aux.c: In function 'utf8_stringlist': utf8aux.c:47:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 47 | } while (st = st->next); | ^~ utf8aux.c: In function 'utf8_mime2text': utf8aux.c:136:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; | ^~ utf8aux.c: In function 'mime2_decode': utf8aux.c:241:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) | ^~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` siglocal.c cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` dummy.c dummy.c: In function 'dummy_scan': dummy.c:162:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 162 | if (s = strchr (test,'/')) *++s = '\0'; | ^ dummy.c:170:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 170 | if (s = strpbrk (test,"%*")) { | ^ dummy.c:176:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 176 | if (s = strrchr (file,'/')){/* find directory name */ | ^ dummy.c: In function 'dummy_lsub': dummy.c:233:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 233 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ dummy.c: In function 'dummy_list_work': dummy.c:282:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 282 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ | ^~ dummy.c:294:62: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 294 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) | ^ dummy.c: In function 'dummy_create_path': dummy.c:485:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 485 | if (s = strrchr (path,'/')) { /* found superior to this name? */ | ^ dummy.c: In function 'dummy_append': dummy.c:728:23: warning: operation on 'ts' may be undefined [-Wsequence-point] 728 | if (!ts && !(*(ts = default_proto (NIL))->dtb->create) (ts,"INBOX")) | ~~~~^~~~~~~~~~~~~~~~~~~~~~ dummy.c: In function 'dummy_canonicalize': dummy.c:803:28: warning: value computed is not used [-Wunused-value] 803 | for (i = 0, s = tmp; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; | ^~~~ dummy.c: In function 'dummy_scan_contents': dummy.c:383:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 383 | read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from dummy.c:30: In function 'sprintf', inlined from 'dummy_delete' at dummy.c:523:5: /usr/include/bits/stdio2.h:38:10: warning: '%.80s' directive argument is null [-Wformat-overflow=] 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` pseudo.c cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` netmsg.c netmsg.c: In function 'netmsg_slurp': netmsg.c:64:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); | ^ netmsg.c:73:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 73 | while (s = net_getline (stream)) { | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` flstring.c cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` fdstring.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from osdep.h:43, from fdstring.c:30: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ fdstring.c: In function 'fd_string_setpos': fdstring.c:94:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ fdstring.c:97:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 97 | read ((long) s->data,s->curpos,(size_t) s->cursize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdstring.c: In function 'fd_string_init': fdstring.c:67:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | read (d->fd,s->chunk,(size_t) s->cursize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` rfc822.c rfc822.c: In function 'rfc822_parse_msg_full': rfc822.c:155:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 155 | if (t = d = strchr (tmp,':')) { | ^ rfc822.c:204:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 204 | while (c = *d++) if (c != ' ') *t++ = c; | ^ rfc822.c:218:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 218 | if (t = rfc822_parse_phrase (d)) *t = '\0'; | ^ rfc822.c:229:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 229 | while (c = *d++) if (c != ' ') *t++ = c; | ^ rfc822.c: In function 'rfc822_parse_content': rfc822.c:381:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 381 | if (m = GETPOS (bs)) m--; /* get position in front of character */ | ^ rfc822.c:394:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 394 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); | ^ rfc822.c:449:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 449 | if (i = part->body.mime.text.size) { | ^ rfc822.c: In function 'rfc822_parse_content_header': rfc822.c:550:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 550 | if (t = strchr (name,' ')) *t = '\0'; | ^ rfc822.c: In function 'rfc822_parse_adrlist': rfc822.c:740:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 740 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { | ^~~ rfc822.c: In function 'rfc822_parse_address': rfc822.c:794:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 794 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; | ^~~ rfc822.c:796:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { | ^~~ rfc822.c: In function 'rfc822_parse_group': rfc822.c:842:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 842 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { | ^~~ rfc822.c: In function 'rfc822_parse_mailbox': rfc822.c:901:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 901 | else if (end = rfc822_parse_phrase (s)) { | ^~~ rfc822.c: In function 'rfc822_parse_addrspec': rfc822.c:1030:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1030 | if (t = rfc822_parse_word (string,wspecials)) { | ^ rfc822.c: In function 'rfc822_parse_domain': rfc822.c:1098:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1098 | else if (t = rfc822_parse_word (string,wspecials)) { | ^ rfc822.c:1108:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1108 | if (string = rfc822_parse_domain (string,&t)) { | ^~~~~~ rfc822.c: In function 'rfc822_parse_word': rfc822.c:1175:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1175 | while (st = strchr (st,I2C_ESC)) | ^~ rfc822.c: In function 'rfc822_output_data': rfc822.c:1374:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1374 | if (i = min (len,buf->end - buf->cur)) { | ^ rfc822.c: In function 'rfc822_output_cat': rfc822.c:1622:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1622 | for (; s = strpbrk (src,"\\\""); src = s + 1) { | ^ rfc822.c: In function 'rfc822_encode_body_7bit': rfc822.c:1740:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1740 | while (part = part->next); /* until done */ | ^~~~ rfc822.c: In function 'rfc822_encode_body_8bit': rfc822.c:1808:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1808 | while (part = part->next); /* until done */ | ^~~~ rfc822.c: In function 'rfc822_base64': rfc822.c:1964:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1964 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; | ^ rfc822.c: In function 'rfc822_output': rfc822.c:2345:10: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] 2345 | char tmp[SENDBUFLEN+1]; /* client to give us a big enough one */ | ^~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` nntp.c nntp.c: In function 'nntp_list': nntp.c:353:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 353 | while (s = net_getline (LOCAL->nntpstream->netstream)) { | ^ nntp.c:358:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 358 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ | ^ nntp.c: In function 'nntp_lsub': nntp.c:397:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 397 | if (s = sm_read (&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) | ^ nntp.c:399:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 399 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ nntp.c: In function 'nntp_canonicalize': nntp.c:430:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 430 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); | ^ nntp.c: In function 'nntp_status': nntp.c:556:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 556 | else if (state = newsrc_state (stream,name)) { | ^~~~~ nntp.c: In function 'nntp_overview': nntp.c:929:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 929 | for (t = v = s; c = *v++;) | ^ nntp.c: In function 'nntp_parse_overview': nntp.c:1039:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1039 | if (t = strchr (ov->subject,'\t')) { | ^ nntp.c:1042:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1042 | if (ov->date = strchr (t,'\t')) { | ^~ nntp.c:1049:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1049 | if (ov->message_id = strchr (ov->date,'\t')) { | ^~ nntp.c:1053:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1053 | if (ov->references = strchr (ov->message_id,'\t')) { | ^~ nntp.c:1057:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1057 | if (t = strchr (ov->references,'\t')) { | ^ nntp.c:1062:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1062 | if (t = strchr (t,'\t')) { | ^ nntp.c:1066:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1066 | if (ov->optional.xref = strchr (t,'\t')) | ^~ nntp.c: In function 'nntp_header': nntp.c:1099:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1099 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { | ^ nntp.c: In function 'nntp_text': nntp.c:89:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 89 | #define LOCAL ((NNTPLOCAL *) stream->local) | ^ nntp.c:1151:11: note: in expansion of macro 'LOCAL' 1151 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, | ^~~~~ nntp.c: In function 'nntp_search': nntp.c:1216:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1216 | if (msg = utf8_badcharset (charset)) { | ^~~ nntp.c: In function 'nntp_search_msg': nntp.c:1269:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1269 | if (set = pgm->msgno) { /* must be inside this sequence */ | ^~~ nntp.c:1277:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1277 | if (set = pgm->uid) { /* must be inside this sequence */ | ^~~ nntp.c: In function 'nntp_sort_loadcache': nntp.c:1513:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1513 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; | ^ nntp.c:1522:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1522 | if (t = strchr (v,'\t')) { | ^ nntp.c:1524:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1524 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { | ^~~ nntp.c:1529:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1529 | if (v = strchr (t,'\t')) { | ^ nntp.c: In function 'nntp_open_full': nntp.c:1679:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1679 | if (netstream = /* try to open ordinary connection */ | ^~~~~~~~~ nntp.c:1720:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1720 | if (stream->netstream->stream = | ^~~~~~ nntp.c: In function 'nntp_extensions': nntp.c:1817:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1817 | if (args = strchr (t,' ')) *args++ = '\0'; | ^~~~ nntp.c: In function 'nntp_mail': nntp.c:1916:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1916 | if (s = strstr (env->date," (")) *s = NIL; | ^ nntp.c:1887:8: warning: unused variable 'retry' [-Wunused-variable] 1887 | long retry = NIL; | ^~~~~ nntp.c:1886:8: warning: unused variable 'error' [-Wunused-variable] 1886 | long error = NIL; | ^~~~~ nntp.c: In function 'nntp_soutr': nntp.c:2214:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2214 | while (t = strstr (s,"\015\012.")) { | ^ nntp.c: In function 'nntp_mopen': nntp.c:764:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 764 | fread (LOCAL->over_fmt = (char *) fs_get ((size_t) k + 3), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 765 | (size_t) 1,(size_t) k,f); | ~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c: In function 'nntp_header': nntp.c:1100:2: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1100 | fread (elt->private.msg.header.text.data = | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1101 | (unsigned char *) fs_get ((size_t) *size + 3), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1102 | (size_t) 1,(size_t) *size,f); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` smtp.c smtp.c: In function 'smtp_open_full': smtp.c:172:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 172 | if (netstream = /* try to open ordinary connection */ | ^~~~~~~~~ smtp.c: In function 'smtp_soutr': smtp.c:783:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 783 | while (t = strstr (s,"\015\012.")) { | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` imap4r1.c imap4r1.c: In function 'imap_lsub': imap4r1.c:505:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 505 | if (s = sm_read (&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) | ^ imap4r1.c:507:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 507 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ imap4r1.c: In function 'imap_manage': imap4r1.c:681:52: warning: the address of 'imapdriver' will always evaluate as 'true' [-Waddress] 681 | if (mail_valid_net (mailbox,&imapdriver,NIL,mbx) && | ^~ imap4r1.c: In function 'imap_open': imap4r1.c:849:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 849 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); | ^~~~~ imap4r1.c: In function 'imap_close': imap4r1.c:1317:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1317 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^~~ imap4r1.c:1317:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1317 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^ imap4r1.c: In function 'imap_structure': imap4r1.c:1499:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1499 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : | ^ imap4r1.c:1522:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1522 | if (k = (k > i) ? k - i : 0) | ^ imap4r1.c: In function 'imap_msgdata': imap4r1.c:1700:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1700 | else if (t = strstr (section,".HEADER")) { | ^ imap4r1.c: In function 'imap_uid': imap4r1.c:1884:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1884 | if (k = imap_uidlookahead) {/* build UID list */ | ^ imap4r1.c: In function 'imap_search': imap4r1.c:2048:48: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2048 | for (set = ss; set; set = set->next) if (i = set->first) { | ^ imap4r1.c: In function 'imap_gc': imap4r1.c:2650:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2650 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) | ^~~ imap4r1.c: In function 'imap_capability': imap4r1.c:2705:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2705 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^~~ imap4r1.c:2705:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2705 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^ imap4r1.c: In function 'imap_send': imap4r1.c:2927:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2927 | if (arglst = args) while (arg = *arglst++) { | ^~~~~~ imap4r1.c:2927:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2927 | if (arglst = args) while (arg = *arglst++) { | ^~~ imap4r1.c:2947:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2947 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) | ^~~~~ imap4r1.c:2951:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2951 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; | ^~~~~ imap4r1.c:2959:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2959 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, | ^~~~~ imap4r1.c:2963:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2963 | while (list = list->next); | ^~~~ imap4r1.c:2967:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2967 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, | ^~~~~ imap4r1.c:3053:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3053 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) | ^~~~~ imap4r1.c:3075:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3075 | if (t = map->flags) { /* flags given? */ | ^ imap4r1.c:3087:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3087 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, | ^~~~~ imap4r1.c:3091:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3091 | if (reply = imap_send_literal (stream,tag,&s,map->message)) | ^~~~~ imap4r1.c:3121:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3121 | while (list = list->next); | ^~~~ imap4r1.c: In function 'imap_send_spgm': imap4r1.c:3355:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3355 | if (hdr = pgm->header) do { | ^~~ imap4r1.c:3357:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3357 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) | ^~~~~ imap4r1.c:3360:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3360 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) | ^~~~~ imap4r1.c:3362:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3362 | } while (hdr = hdr->next); | ^~~ imap4r1.c:3365:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3365 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) | ^~~~~ imap4r1.c:3368:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3368 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) | ^~~~~ imap4r1.c:3374:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3374 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) | ^~~~~ imap4r1.c: In function 'imap_send_sset': imap4r1.c:3452:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3452 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; | ^~~~~ imap4r1.c:3454:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3454 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) | ^~~~~ imap4r1.c: In function 'imap_reply': imap4r1.c:3555:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3555 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { | ^~~~~ imap4r1.c: In function 'imap_parse_unsolicited': imap4r1.c:3733:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3733 | while (prop = (strtok_r (t," )",&r))) { | ^~~~ imap4r1.c:3808:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3808 | else if (t = strchr (s = t,' ')) *t++ = '\0'; | ^ imap4r1.c:3907:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3907 | while (s = strtok_r (NIL," )",&r)); | ^ imap4r1.c:3911:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3911 | if (i = strtoul (t,NIL,10)) { | ^ imap4r1.c:3920:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3920 | } while (t = strtok_r (NIL," ",&r)); | ^ imap4r1.c:3944:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3944 | if (s = reply->text) { | ^ imap4r1.c:4008:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4008 | if (t = strtok_r (reply->text+1," ",&r)) do { | ^ imap4r1.c:4017:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4017 | while (t = strtok_r (NIL," ",&r)); | ^ imap4r1.c:4028:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4028 | if (t = imap_parse_astring (stream,&s,reply,&j)) { | ^ imap4r1.c:4046:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4046 | if (s = reply->text) { /* parse namespace results */ | ^ imap4r1.c:4166:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4166 | else if (t = strchr (s,' ')) t = s; | ^ imap4r1.c:4169:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4169 | else if (t = strpbrk (s," )")) t = s; | ^ imap4r1.c: In function 'imap_parse_response': imap4r1.c:4266:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4266 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; | ^ imap4r1.c:4275:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4275 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) | ^~~ imap4r1.c:4286:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4286 | if (s = strtok_r (s+1," ",&r)) do { | ^ imap4r1.c:4300:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4300 | while (s = strtok_r (NIL," ",&r)); | ^ imap4r1.c: In function 'imap_parse_astring': imap4r1.c:4845:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4845 | if (i = *txtptr - s) { /* atom ends at atom_special */ | ^ imap4r1.c: In function 'imap_parse_string': imap4r1.c:4958:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4958 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { | ^ imap4r1.c:4966:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4966 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); | ^~ imap4r1.c: In function 'imap_parse_body_structure': imap4r1.c:5115:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5115 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) | ^~~~ imap4r1.c:5155:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5155 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { | ^ imap4r1.c:5165:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5165 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) | ^~~~ imap4r1.c:5176:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5176 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { | ^ imap4r1.c: In function 'imap_parse_language': imap4r1.c:5373:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5373 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { | ^ imap4r1.c: In function 'imap_parse_extension': imap4r1.c:5441:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5441 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do | ^ imap4r1.c: In function 'imap_parse_capabilities': imap4r1.c:5477:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5477 | if (thr = LOCAL->cap.threader) while (th = thr) { | ^~~ imap4r1.c:5477:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5477 | if (thr = LOCAL->cap.threader) while (th = thr) { | ^~ imap4r1.c:5520:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5520 | else if (s = strchr (t,'=')) { | ^ imap4r1.c: In function 'imap_reform_sequence': imap4r1.c:5609:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5609 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` pop3.c pop3.c: In function 'pop3_lsub': pop3.c:279:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 279 | if (s = sm_read (&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) | ^ pop3.c:281:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 281 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ pop3.c: In function 'pop3_open': pop3.c:77:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 77 | #define LOCAL ((POP3LOCAL *) stream->local) | ^ pop3.c:429:11: note: in expansion of macro 'LOCAL' 429 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); | ^~~~~ pop3.c: In function 'pop3_capa': pop3.c:499:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 499 | if (args = strchr (t,' ')) *args++ = '\0'; | ^~~~ pop3.c:510:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 510 | if (s = strchr(args,' ')){/* separate time from possible USER */ | ^ pop3.c:521:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 521 | if (s = strchr(args,' ')){/* separate time from possible USER */ | ^ pop3.c: In function 'pop3_header': pop3.c:843:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 843 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) | ^~~ pop3.c: In function 'pop3_expunge': pop3.c:947:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 947 | if (ret = sequence ? ((options & EX_UID) ? | ^~~ pop3.c: In function 'pop3_header': pop3.c:848:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 848 | fread (elt->private.msg.header.text.data = (unsigned char *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 849 | fs_get ((size_t) elt->private.msg.header.text.size + 1), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 850 | (size_t) 1,(size_t) elt->private.msg.header.text.size,f); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` unix.c unix.c: In function 'unix_valid': unix.c:231:2: warning: implicit declaration of function 'utime'; did you mean 'ctime'? [-Wimplicit-function-declaration] 231 | utime (file,tp); /* set the times */ | ^~~~~ | ctime unix.c: In function 'unix_rename': unix.c:418:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 418 | if (s = strrchr (s,'/')) { | ^ In file included from unix.c:46: unix.c: In function 'unix_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ unix.c:530:5: note: in expansion of macro 'flock' 530 | flock (LOCAL->ld,LOCK_UN); /* release the lock */ | ^~~~~ unix.c: In function 'unix_expunge': unix.c:845:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 845 | if (ret = (sequence ? ((options & EX_UID) ? | ^~~ unix.c:852:21: warning: unused variable 'elt' [-Wunused-variable] 852 | MESSAGECACHE *elt = mail_elt (stream,i); | ^~~ unix.c: In function 'unix_append': unix.c:1037:17: warning: unused variable 'uidlocation' [-Wunused-variable] 1037 | unsigned long uidlocation = 0; | ^~~~~~~~~~~ unix.c: In function 'unix_append_msgs': unix.c:1257:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); | ^ unix.c: In function 'unix_parse': unix.c:1483:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { | ^ unix.c:1770:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; | ^ unix.c: In function 'unix_xstatus': unix.c:2015:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) | ^ unix.c:2037:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2037 | if (n = elt->user_flags) do { | ^ unix.c: In function 'unix_rewrite': unix.c:2101:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2101 | if (ret = unix_extend (stream,size)) { | ^~~ unix.c: In function 'unix_write': unix.c:2311:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { | ^ unix.c:2327:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2327 | if (j = min (i,f->protect - f->filepos)) { | ^ unix.c: In function 'unix_open': unix.c:519:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 519 | ftruncate (fd,i); /* make sure tied off */ | ^~~~~~~~~~~~~~~~ unix.c: In function 'unix_header': unix.c:630:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 630 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:640:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 640 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 641 | elt->private.msg.header.text.size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_text_work': unix.c:707:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 707 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_copy': unix.c:956:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 956 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:982:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 982 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_append': unix.c:1152:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1152 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_rewrite': unix.c:2139:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2139 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2239:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2239 | ftruncate (LOCAL->fd,LOCAL->filesize = size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_extend': unix.c:2285:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2285 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'mbox_ping': unix.c:2611:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2611 | read (sfd,s = (char *) fs_get (size + 1),size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2621:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2621 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2629:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2629 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2640:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2640 | ftruncate (sfd,0); /* truncate sysinbox to zero bytes */ | ^~~~~~~~~~~~~~~~~ unix.c: In function 'unix_parse': unix.c:1749:34: warning: '%s' directive writing up to 1023 bytes into a region of size 1007 [-Wformat-overflow=] 1749 | sprintf (err,"Discarding bogus %s header in message %lu", | ^~ 1750 | (char *) tmp,elt->msgno); | ~~~ In file included from /usr/include/stdio.h:866, from unix.c:40: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output between 38 and 1080 bytes into a destination of size 1024 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mbx.c In file included from mbx.c:42: mbx.c: In function 'mbx_isvalid': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mbx.c:233:12: note: in expansion of macro 'flock' 233 | if (flock (fd,LOCK_SH) || | ^~~~~ mbx.c:303:7: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 303 | utime (tmp,tp); /* set the times */ | ^~~~~ | utimes mbx.c: In function 'mbx_rename': mbx.c:480:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 480 | if (s = strrchr (tmp,'/')) { | ^ mbx.c: In function 'mbx_ping': mbx.c:825:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 825 | else if (ret = mbx_parse (stream)) { | ^~~ mbx.c:829:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { | ^~~ mbx.c: In function 'mbx_expunge': mbx.c:888:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 888 | if (ret = sequence ? ((options & EX_UID) ? | ^~~ mbx.c:895:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { | ^~~~ mbx.c: In function 'mbx_snarf': mbx.c:938:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 938 | if (j = hdrlen + txtlen) { | ^ mbx.c: In function 'mbx_copy': mbx.c:1035:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) | ^ mbx.c:1044:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { | ^~~ mbx.c: In function 'mbx_hdrpos': mbx.c:1644:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1644 | if (*size = elt->private.msg.header.text.size) return ret; | ^ mbx.c: In function 'mbx_rewrite': mbx.c:1736:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { | ^ mbx.c:1776:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { | ^ mbx.c:1795:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1795 | if (elt = mbx_elt (stream,i,T)) { | ^~~ mbx.c: In function 'mbx_header': mbx.c:709:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 709 | read (LOCAL->fd,s = LOCAL->buf,*length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_snarf': mbx.c:965:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 965 | ftruncate (LOCAL->fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_copy': mbx.c:1046:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1046 | read (LOCAL->fd,LOCAL->buf,j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1060:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1060 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_append': mbx.c:1195:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1195 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_parse': mbx.c:1269:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1269 | read (LOCAL->fd,LOCAL->buf,HDRSIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_rewrite': mbx.c:1757:6: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1757 | read (LOCAL->fd,LOCAL->buf,m); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1781:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1781 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mmdf.c mmdf.c: In function 'mmdf_isvalid': mmdf.c:382:2: warning: implicit declaration of function 'utime'; did you mean 'ctime'? [-Wimplicit-function-declaration] 382 | utime (file,tp); /* set the times */ | ^~~~~ | ctime mmdf.c: In function 'mmdf_rename': mmdf.c:557:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 557 | if (s = strrchr (s,'/')) { | ^ In file included from mmdf.c:34: mmdf.c: In function 'mmdf_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mmdf.c:669:5: note: in expansion of macro 'flock' 669 | flock (LOCAL->ld,LOCK_UN); /* release the lock */ | ^~~~~ mmdf.c: In function 'mmdf_expunge': mmdf.c:984:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 984 | if (ret = (sequence ? ((options & EX_UID) ? | ^~~ mmdf.c:991:21: warning: unused variable 'elt' [-Wunused-variable] 991 | MESSAGECACHE *elt = mail_elt (stream,i); | ^~~ mmdf.c: In function 'mmdf_append': mmdf.c:1173:17: warning: unused variable 'uidlocation' [-Wunused-variable] 1173 | unsigned long uidlocation = 0; | ^~~~~~~~~~~ mmdf.c: In function 'mmdf_append_msgs': mmdf.c:1394:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); | ^ mmdf.c: In function 'mmdf_parse': mmdf.c:1612:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { | ^ mmdf.c:1934:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; | ^ mmdf.c: In function 'mmdf_xstatus': mmdf.c:2178:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) | ^ mmdf.c:2200:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2200 | if (n = elt->user_flags) do { | ^ mmdf.c: In function 'mmdf_rewrite': mmdf.c:2264:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2264 | if (ret = mmdf_extend (stream,size)) { | ^~~ mmdf.c: In function 'mmdf_write': mmdf.c:2457:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { | ^ mmdf.c:2473:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2473 | if (j = min (i,f->protect - f->filepos)) { | ^ mmdf.c: In function 'mmdf_open': mmdf.c:658:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 658 | ftruncate (fd,i); /* make sure tied off */ | ^~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_header': mmdf.c:769:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 769 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:779:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 779 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 780 | elt->private.msg.header.text.size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_text_work': mmdf.c:846:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 846 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_copy': mmdf.c:1091:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1091 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1118:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1118 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_append': mmdf.c:1288:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1288 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_rewrite': mmdf.c:2302:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2302 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2385:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2385 | ftruncate (LOCAL->fd,LOCAL->filesize = size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_extend': mmdf.c:2431:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2431 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` tenex.c tenex.c: In function 'tenex_isvalid': tenex.c:206:2: warning: implicit declaration of function 'utime'; did you mean 'ctime'? [-Wimplicit-function-declaration] 206 | utime (file,tp); /* set the times */ | ^~~~~ | ctime In file included from tenex.c:47: tenex.c: In function 'tenex_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ tenex.c:315:7: note: in expansion of macro 'flock' 315 | if (flock (fd,LOCK_EX|LOCK_NB)) { | ^~~~~ tenex.c:324:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ | ^ tenex.c: In function 'tenex_snarf': tenex.c:772:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 772 | if (j = hdrlen + txtlen) { | ^ tenex.c: In function 'tenex_fast': tenex.c:516:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 516 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.full.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_header': tenex.c:567:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 567 | read (LOCAL->fd,LOCAL->buf,*length = i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:572:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 572 | read (LOCAL->fd,s,i); /* slurp the data */ | ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_text': tenex.c:614:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 614 | read (LOCAL->fd,LOCAL->buf,i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:629:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 629 | read (LOCAL->fd,s,i); /* slurp the data */ | ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_snarf': tenex.c:799:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 799 | ftruncate (LOCAL->fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_expunge': tenex.c:890:6: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 890 | read (LOCAL->fd,LOCAL->buf,m); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:917:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 917 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_copy': tenex.c:1008:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1008 | read (LOCAL->fd,LOCAL->buf,j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1016:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1016 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_append': tenex.c:1150:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1150 | ftruncate (fd,sbuf.st_size);/* revert file */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_hdrpos': tenex.c:1456:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1456 | read (LOCAL->fd,s = LOCAL->buf,i = min (msiz-siz,(long) MAILTMPLEN)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mtx.c mtx.c: In function 'mtx_isvalid': mtx.c:199:2: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 199 | utime (file,tp); /* set the times */ | ^~~~~ | utimes In file included from mtx.c:42: mtx.c: In function 'mtx_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mtx.c:308:7: note: in expansion of macro 'flock' 308 | if (flock (fd,LOCK_EX|LOCK_NB)) { | ^~~~~ mtx.c:317:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ | ^ mtx.c: In function 'mtx_snarf': mtx.c:683:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 683 | if (j = hdrlen + txtlen) { | ^ mtx.c: In function 'mtx_header': mtx.c:515:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 515 | read (LOCAL->fd,LOCAL->buf,*length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_snarf': mtx.c:710:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 710 | ftruncate (LOCAL->fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_expunge': mtx.c:801:6: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 801 | read (LOCAL->fd,LOCAL->buf,m); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:827:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 827 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_copy': mtx.c:918:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 918 | read (LOCAL->fd,LOCAL->buf,j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:926:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 926 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_append': mtx.c:1053:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1053 | ftruncate (fd,sbuf.st_size);/* revert file */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` news.c news.c: In function 'news_list': news.c:218:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; | ^ news.c:234:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { | ^ news.c:234:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { | ^ news.c:243:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 243 | } while (t = strtok_r (NIL,"\n",&r)); | ^ news.c: In function 'news_canonicalize': news.c:286:34: warning: value computed is not used [-Wunused-value] 286 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; | ^~~~ news.c: In function 'news_open': news.c:368:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 368 | while (s = strchr (s,'.')) *s = '/'; | ^ news.c:370:36: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 370 | if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { | ^~~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from news.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ news.c:370:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 370 | if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { | ^~~~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from news.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ news.c: In function 'news_select': news.c:409:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 409 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ news.c: In function 'news_valid': news.c:161:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 161 | read (fd,t = s = (char *) fs_get (sbuf.st_size+1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ news.c: In function 'news_list': news.c:228:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 228 | read (fd,s = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` phile.c phile.c: In function 'phile_open': phile.c:292:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; | ^ phile.c:309:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); | ^~ phile.c:321:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 321 | if (i = phile_type (buf->data,buf->size,&j)) { | ^ phile.c:317:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 317 | read (fd,buf->data = (unsigned char *) fs_get (buf->size + 1),buf->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mh.c mh.c: In function 'mh_path': mh.c:257:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 257 | if (v = strpbrk (s," \t")) { | ^ mh.c: In function 'mh_dirfmttest': mh.c:330:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 330 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ mh.c: In function 'mh_scan': mh.c:349:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 349 | if (s = strchr (test,'/')) *++s = '\0'; | ^ mh.c:362:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 362 | if (s = strpbrk (test,"%*")) { | ^ mh.c:369:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 369 | if (s = strrchr (file,'/')) { | ^ mh.c: In function 'mh_lsub': mh.c:407:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 407 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ mh.c: In function 'mh_list_work': mh.c:431:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 431 | if (dp = opendir (curdir)) { /* open directory */ | ^~ mh.c:432:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 432 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ | ^ mh.c: In function 'mh_delete': mh.c:516:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 516 | if (dirp = opendir (tmp)) { /* open directory */ | ^~~~ mh.c:519:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 519 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { | ^ mh.c: In function 'mh_rename': mh.c:556:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 556 | if (s = strrchr (mh_file (tmp1,newname),'/')) { | ^ mh.c: In function 'mh_ping': mh.c:865:46: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 865 | long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:865:56: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 865 | long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mh.c:889:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 889 | if (s = (void *) names) fs_give ((void **) &s); | ^ mh.c:939:17: warning: too many arguments for format [-Wformat-extra-args] 939 | sprintf (tmp,"Message copy to MH mailbox failed: %.80s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c: In function 'mh_expunge': mh.c:983:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 983 | if (ret = sequence ? ((options & EX_UID) ? | ^~~ mh.c: In function 'mh_append': mh.c:1131:37: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1131 | if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:1131:47: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1131 | if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mh.c:1138:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1138 | if (s = (void *) names) fs_give ((void **) &s); | ^ mh.c:1102:10: warning: variable 'size' set but not used [-Wunused-but-set-variable] 1102 | long i,size,last,nfiles; | ^~~~ mh.c: In function 'mh_select': mh.c:1201:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1201 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ mh.c: In function 'mh_canonicalize': mh.c:1264:34: warning: value computed is not used [-Wunused-value] 1264 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; | ^~~~ mh.c: In function 'mh_setdate': mh.c:1282:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 1282 | utime (file,tp); /* set the times */ | ^~~~~ | utimes mh.c: In function 'mh_path': mh.c:251:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 251 | read (fd,(t = (char *) fs_get (sbuf.st_size + 1)),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mx.c mx.c: In function 'mx_dirfmttest': mx.c:242:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 242 | while (c = *name++) if (!isdigit (c)) return NIL; | ^ mx.c: In function 'mx_scan_contents': mx.c:277:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 277 | if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:277:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 277 | if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mx.c:289:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 289 | if (a = (void *) names) fs_give ((void **) &a); | ^ mx.c: In function 'mx_create': mx.c:348:7: warning: unused variable 'fd' [-Wunused-variable] 348 | int fd; | ^~ mx.c: In function 'mx_delete': mx.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 395 | if (dirp = opendir (tmp)) { /* open directory */ | ^~~~ mx.c:398:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 398 | while (d = readdir (dirp)) if (mx_select (d)) { | ^ mx.c: In function 'mx_rename': mx.c:441:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { | ^ mx.c:462:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 462 | for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:462:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 462 | for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mx.c:469:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 469 | if (a = (void *) names) fs_give ((void **) &a); | ^ mx.c: In function 'mx_ping': mx.c:731:51: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 731 | long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:731:61: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 731 | long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mx.c:752:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 752 | if (s = (void *) names) fs_give ((void **) &s); | ^ mx.c:803:17: warning: too many arguments for format [-Wformat-extra-args] 803 | sprintf (tmp,"Message copy to MX mailbox failed: %.80s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_expunge': mx.c:847:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 847 | if (ret = (sequence ? ((options & EX_UID) ? | ^~~ mx.c: In function 'mx_copy': mx.c:939:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) | ^~~ mx.c:949:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 949 | if (j = elt->user_flags) do | ^ mx.c:950:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) | ^ mx.c:960:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { | ^~~ mx.c:904:21: warning: variable 'uid' set but not used [-Wunused-but-set-variable] 904 | unsigned long i,j,uid,uidv; | ^~~ mx.c: In function 'mx_select': mx.c:1117:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ In file included from mx.c:35: mx.c: In function 'mx_lockindex': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mx.c:1173:5: note: in expansion of macro 'flock' 1173 | flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ | ^~~~~ mx.c:1189:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1189 | if (s = strchr (t = ++s,'\n')) { | ^ mx.c: In function 'mx_setdate': mx.c:1286:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 1286 | utime (file,tp); /* set the times */ | ^~~~~ | utimes mx.c: In function 'mx_header': mx.c:636:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 636 | read (fd,LOCAL->buf,elt->rfc822_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_lockindex': mx.c:1177:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1177 | read (LOCAL->fd,s = idx = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_unlockindex': mx.c:1269:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1269 | ftruncate (LOCAL->fd,size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mix.c mix.c: In function 'mix_scan_contents': mix.c:324:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 324 | if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) | ^~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:324:49: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 324 | if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) | ^~~~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mix.c:336:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 336 | if (a = (void *) names) fs_give ((void **) &a); | ^ mix.c: In function 'mix_create': mix.c:63:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 63 | #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:63:16: note: in definition of macro 'MTAFMT' 63 | #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:63:36: note: format string is defined here 63 | #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" | ~~~~^ | | | long unsigned int | %08x In file included from mix.c:33: mix.c: In function 'mix_delete': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mix.c:471:50: note: in expansion of macro 'flock' 471 | else if (((fd = open (tmp,O_RDWR,NIL)) < 0) || flock (fd,LOCK_EX|LOCK_NB)) | ^~~~~ mix.c:480:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 480 | if (dirp = opendir (tmp)) { /* open directory */ | ^~~~ mix.c:483:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 483 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { | ^ mix.c: In function 'mix_rename': mix.c:531:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 531 | if (s = strrchr (tmp1,'/')) { | ^ mix.c:556:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 556 | for (i = lasterror = 0,n = scandir (tmp,&names,mix_rselect,alphasort); | ^~~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:569:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 569 | if (a = (void *) names) fs_give ((void **) &a); | ^ mix.c: In function 'mix_open': mix.c:636:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 636 | if (silent = stream->silent) LOCAL->internal = T; | ^~~~~~ mix.c: In function 'mix_header': mix.c:754:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 754 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; | ^ mix.c:711:7: warning: unused variable 'fd' [-Wunused-variable] 711 | int fd; | ^~ mix.c: In function 'mix_text': mix.c:774:17: warning: unused variable 'i' [-Wunused-variable] 774 | unsigned long i; | ^ mix.c: In function 'mix_ping': mix.c:965:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 965 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { | ^~~~~~~ mix.c:990:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 990 | if (statf = mix_parse (stream,&idxf,LONGT, | ^~~~~ mix.c:929:15: warning: unused variable 'sfd' [-Wunused-variable] 929 | int mfd,ifd,sfd; | ^~~ mix.c:929:11: warning: unused variable 'ifd' [-Wunused-variable] 929 | int mfd,ifd,sfd; | ^~~ mix.c:929:7: warning: unused variable 'mfd' [-Wunused-variable] 929 | int mfd,ifd,sfd; | ^~~ mix.c: In function 'mix_expunge': mix.c:1038:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1038 | else if (statf = mix_parse (stream,&idxf,LONGT, | ^~~~~ mix.c:1054:53: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1054 | long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); | ^~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1054:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1054 | long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); | ^~~~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1110 | if (a = (void *) names) fs_give ((void **) &a); | ^ mix.c:1026:11: warning: unused variable 'sfd' [-Wunused-variable] 1026 | int ifd,sfd; | ^~~ mix.c:1026:7: warning: unused variable 'ifd' [-Wunused-variable] 1026 | int ifd,sfd; | ^~~ mix.c: In function 'mix_burp': mix.c:1236:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1236 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) | ^~~ mix.c:1219:9: warning: variable 's' set but not used [-Wunused-but-set-variable] 1219 | void *s; | ^ mix.c: In function 'mix_burp_check': mix.c:1340:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1340 | } while (set = set->next); | ^~~ mix.c: In function 'mix_copy': mix.c:1378:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1378 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && | ^~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:23: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:64: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:1403:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1403 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { | ^~~~ mix.c:1432:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1432 | if (j = elt->user_flags) do | ^ mix.c:1455:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1455 | if (ret = (mix_meta_update (astream) && | ^~~ mix.c:1405:23: warning: variable 'uid' set but not used [-Wunused-but-set-variable] 1405 | unsigned long j,uid,uidv; | ^~~ mix.c: In function 'mix_append': mix.c:1519:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1519 | if (ret = compare_cstring (mailbox,"INBOX") ? | ^~~ mix.c:1536:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1536 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && | ^~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:23: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:64: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:1555:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1555 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { | ^~~~ mix.c: In function 'mix_append_msg': mix.c:1632:26: warning: unused variable 'hoff' [-Wunused-variable] 1632 | unsigned long i,j,k,uf,hoff; | ^~~~ mix.c:1632:17: warning: unused variable 'i' [-Wunused-variable] 1632 | unsigned long i,j,k,uf,hoff; | ^ mix.c: In function 'mix_parse': mix.c:1743:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1743 | else if (s = mix_meta_slurp (stream,&i)) { | ^ mix.c:1750:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1750 | if (s = strstr (t = s,"\015\012")) { | ^ mix.c:1779:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1779 | if (t = strchr (k = t,' ')) *t++ = '\0'; | ^ mix.c: In function 'mix_index_update': mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:22: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:63: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:69: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:75: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:81: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:87: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c: In function 'mix_status_update': mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: note: in definition of macro 'STRFMT' 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:22: note: format string is defined here 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: note: in definition of macro 'STRFMT' 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:28: note: format string is defined here 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: note: in definition of macro 'STRFMT' 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:39: note: format string is defined here 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c: In function 'mix_data_open': mix.c:2425:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2425 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); | ^~~~ mix.c: In function 'mix_sortcache_open': mix.c:2489:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2489 | if (i = mail_msgno (stream,uid)) { | ^ mix.c: In function 'mix_sortcache_update': mix.c:2668:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2668 | if (sl = s->references) /* count length of references */ | ^~ mix.c: In function 'mix_read_record': mix.c:2723:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2723 | if (s = strchr (buf,'\012')) { | ^ mix.c: In function 'mix_copy': mix.c:1477:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1477 | ftruncate (fd,size); /* revert file */ | ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_append': mix.c:1594:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1594 | ftruncate (fd,size); /* revert all writes to file*/ | ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_meta_update': mix.c:2209:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2209 | ftruncate (LOCAL->mfd,i); /* and tie off at that point */ | ^~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_index_update': mix.c:2255:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2255 | ftruncate (fileno (idxf),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2288:16: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2288 | if (ret) ftruncate (fileno (idxf),ftell (idxf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_status_update': mix.c:2335:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2335 | ftruncate (fileno (statf),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2369:16: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2369 | if (ret) ftruncate (fileno (statf),ftell (statf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_sortcache_update': mix.c:2697:16: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2697 | if (ret) ftruncate (fileno (f),ftell (f)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_sortcache_open': mix.c:2640:8: warning: 'fd' may be used uninitialized in this function [-Wmaybe-uninitialized] 2640 | else fchmod (fd,sbuf.st_mode); | ^~~~~~~~~~~~~~~~~~~~~~~~ sh -c 'rm -rf c-client.a || true' ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o;ranlib c-client.a cc -fPIC -DPIC -D_REENTRANT `cat CFLAGS` `cat OSCFLAGS` -c osdep.c -o osdep.so In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from osdep.h:43, from osdep.c:31: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from auths.c:2, from env_unix.c:260, from osdep.c:51: auth_gss.c: In function 'auth_gssapi_client': auth_gss.c:100:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 100 | if (chal.value = (*challenger) (stream,(unsigned long *) &chal.length)) { | ^~~~ auth_gss.c: In function 'auth_gssapi_server': auth_gss.c:339:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 339 | if (resp.value = (*responder) ("",0,(unsigned long *) &resp.length)) { | ^~~~ auth_gss.c:399:14: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] 399 | SERVER_LOG ("Failed to acquire credentials for %s",buf.value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ | | | void * auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' 55 | #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) | ^ auth_gss.c:399:50: note: format string is defined here 399 | SERVER_LOG ("Failed to acquire credentials for %s",buf.value); | ~^ | | | char * | %p auth_gss.c:406:16: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] 406 | SERVER_LOG ("Unknown GSSAPI failure: %s",resp.value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ | | | void * auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' 55 | #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) | ^ auth_gss.c:406:42: note: format string is defined here 406 | SERVER_LOG ("Unknown GSSAPI failure: %s",resp.value); | ~^ | | | char * | %p auth_gss.c:414:14: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] 414 | SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ | | | void * auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' 55 | #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) | ^ auth_gss.c:414:41: note: format string is defined here 414 | SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); | ~^ | | | char * | %p In file included from auths.c:3, from env_unix.c:260, from osdep.c:51: auth_ext.c: In function 'auth_external_client': auth_ext.c:62:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 62 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_ext.c:66:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 66 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ In file included from auths.c:4, from env_unix.c:260, from osdep.c:51: auth_md5.c: In function 'auth_md5_client': auth_md5.c:105:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 105 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_md5.c:120:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 120 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ auth_md5.c: In function 'auth_md5_server': auth_md5.c:155:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 155 | if (user = (*responder) (chal,cl = strlen (chal),NIL)) { | ^~~~ auth_md5.c:157:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 157 | if (hash = strrchr (user,' ')) { | ^~~~ auth_md5.c:160:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 160 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; | ^~~~~~~~ auth_md5.c:162:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 162 | if (p = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { | ^ auth_md5.c: In function 'apop_login': auth_md5.c:238:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 238 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; | ^~~~~~~~ auth_md5.c:240:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 240 | if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { | ^ In file included from auths.c:5, from env_unix.c:260, from osdep.c:51: auth_pla.c: In function 'auth_plain_client': auth_pla.c:66:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 66 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_pla.c:94:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 94 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ auth_pla.c: In function 'auth_plain_server': auth_pla.c:123:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 123 | if (aid = (*responder) ("",0,&len)) { | ^~~ In file included from auths.c:6, from env_unix.c:260, from osdep.c:51: auth_log.c: In function 'auth_login_client': auth_log.c:66:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 66 | if (challenge = (*challenger) (stream,&clen)) { | ^~~~~~~~~ auth_log.c:81:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 81 | if (challenge = (*challenger) (stream,&clen)) | ^~~~~~~~~ auth_log.c: In function 'auth_login_server': auth_log.c:107:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 107 | if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { | ^~~~ auth_log.c:108:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 108 | if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { | ^~~~ auth_log.c:110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 110 | if (authuser = strchr (user,'*')) *authuser++ = '\0'; | ^~~~~~~~ In file included from osdep.c:51: env_unix.c: In function 'do_date': env_unix.c:514:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 514 | if (julian = t->tm_yday -julian) | ^~~~~~ env_unix.c: In function 'valpwd': env_unix.c:669:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 669 | if (s = auth_md5_pwd (user)) { | ^ env_unix.c:676:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 676 | else if (pw = pwuser (user)) {/* can get user? */ | ^~ env_unix.c: In function 'dotlock_lock': env_unix.c:1251:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1251 | if (s = strrchr (base->lock,'/')) { | ^ In file included from osdep.c:31: env_unix.c: In function 'lock_work': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ env_unix.c:1374:27: note: in expansion of macro 'flock' 1374 | if (op & LOCK_NB) i = flock (fd,op); | ^~~~~ In file included from osdep.c:51: env_unix.c: In function 'dorc': env_unix.c:1582:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1582 | if (d = mail_valid (NIL,"INBOX",NIL)) { | ^ env_unix.c:1595:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1595 | if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) | ^ In file included from osdep.c:54: tcp_unix.c: In function 'tcp_open': tcp_unix.c:175:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 175 | if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { | ^~~ tcp_unix.c:215:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 215 | if (stream->ictr = ctr) *(stream->iptr = stream->ibuf) = tmp[0]; | ^~~~~~ tcp_unix.c: In function 'tcp_aopen': tcp_unix.c:350:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 350 | if (adr = ip_stringtoaddr (host,&len,&i)) fs_give ((void **) &adr); | ^~~ tcp_unix.c: In function 'tcp_getbuffer': tcp_unix.c:526:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 526 | if (n = min (size,stream->ictr)) { | ^ tcp_unix.c: In function 'tcp_clienthost': tcp_unix.c:832:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 832 | if (v = strchr (s,' ')) *v = '\0'; | ^ tcp_unix.c: In function 'tcp_name': tcp_unix.c:959:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 959 | if (t = tcp_name_valid (ip_sockaddrtoname (sadr))) { | ^ tcp_unix.c: In function 'tcp_isclienthost': tcp_unix.c:1000:17: warning: unused variable 'sadrlen' [-Wunused-variable] 1000 | size_t adrlen,sadrlen,len; | ^~~~~~~ osdep.c: In function 'checkpw': osdep.c:164:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 164 | if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), | ^~ osdep.c: In function 'ssl_start_work': osdep.c:460:12: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] 460 | TLSv1_client_method () : | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bio.h:13, from /usr/include/openssl/x509v3.h:13, from osdep.c:267: /usr/include/openssl/ssl.h:1884:45: note: declared here 1884 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) | ^~~~~~~~~~~~~~~~~~~ osdep.c:479:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 479 | if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) | ^ osdep.c:483:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 483 | if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { | ^~~~ osdep.c:492:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 492 | if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), | ^~~ osdep.c:451:25: warning: unused variable 'scq' [-Wunused-variable] 451 | sslcertificatequery_t scq = | ^~~ osdep.c:450:19: warning: unused variable 'tmp' [-Wunused-variable] 450 | char *s,*t,*err,tmp[MAILTMPLEN]; | ^~~ osdep.c:450:15: warning: unused variable 'err' [-Wunused-variable] 450 | char *s,*t,*err,tmp[MAILTMPLEN]; | ^~~ osdep.c: In function 'ssl_server_init': osdep.c:955:12: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations] 955 | TLSv1_server_method () : | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bio.h:13, from /usr/include/openssl/x509v3.h:13, from osdep.c:267: /usr/include/openssl/ssl.h:1883:45: note: declared here 1883 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) | ^~~~~~~~~~~~~~~~~~~ osdep.c:1007:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | while (i = ERR_get_error ()) /* SSL failure */ | ^ osdep.c: In function 'ssl_genkey': osdep.c:1026:5: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] 1026 | if (!(key = RSA_generate_key (export ? keylength : 1024,RSA_F4,NIL,NIL))) { | ^~ In file included from /usr/include/openssl/e_os2.h:13, from /usr/include/openssl/bio.h:13, from /usr/include/openssl/x509v3.h:13, from osdep.c:267: /usr/include/openssl/rsa.h:235:1: note: declared here 235 | DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void | ^~~~~~~~~~~~~~~~~~ osdep.c:1029:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1029 | while (i = ERR_get_error ()) | ^ osdep.c: At top level: osdep.c:299:14: warning: 'ssl_validate_cert' declared 'static' but never defined [-Wunused-function] 299 | static char *ssl_validate_cert (X509 *cert,char *host); | ^~~~~~~~~~~~~~~~~ In file included from auths.c:4, from env_unix.c:260, from osdep.c:51: auth_md5.c: In function 'auth_md5_pwd': auth_md5.c:195:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 195 | read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:51: env_unix.c: In function 'pw_login': env_unix.c:785:37: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 785 | (ret = env_init (user,home))) chdir (myhomedir ()); | ^~~~~~~~~~~~~~~~~~~~ At top level: osdep.c:601:13: warning: 'ssl_compare_hostnames' defined but not used [-Wunused-function] 601 | static long ssl_compare_hostnames (unsigned char *s,unsigned char *pat) | ^~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:54: tcp_unix.c: In function 'tcp_name': tcp_unix.c:953:44: warning: '%s' directive writing up to 1023 bytes into a region of size 1001 [-Wformat-overflow=] 953 | sprintf (tmp,"Reverse DNS resolution %s",adr); | ^~ ~~~ In file included from /usr/include/stdio.h:866, from osdep.c:32: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output between 24 and 1047 bytes into a destination of size 1024 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:54: tcp_unix.c:961:42: warning: '__sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 961 | if (flag) sprintf (ret = tmp,"%s %s",t,adr); | ^ In file included from /usr/include/stdio.h:866, from osdep.c:32: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mail.c -o mail.so mail.c: In function 'mm_cache': mail.c:212:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 212 | if (stream->cache[i] = stream->cache[msgno]) | ^~~~~~ mail.c: In function 'mail_parameters': mail.c:385:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 385 | if (ret = (void *) d) d->flags &= ~DR_DISABLE; | ^~~ mail.c:390:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 390 | if (ret = (void *) d) d->flags |= DR_DISABLE; | ^~~ mail.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 395 | if (ret = (void *) a) a->flags &= ~AU_DISABLE; | ^~~ mail.c:400:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 400 | if (ret = (void *) a) a->flags |= AU_DISABLE; | ^~~ mail.c:405:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 405 | if (ret = (void *) a) a->flags &= ~AU_HIDE; | ^~~ mail.c:410:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 410 | if (ret = (void *) a) a->flags |= AU_HIDE; | ^~~ mail.c:644:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 644 | if (r = smtp_parameters (function,value)) ret = r; | ^ mail.c:645:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 645 | if (r = env_parameters (function,value)) ret = r; | ^ mail.c:646:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 646 | if (r = tcp_parameters (function,value)) ret = r; | ^ mail.c:648:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 648 | if (r = (*stream->dtb->parameters) (function,value)) ret = r; | ^ mail.c:652:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 652 | if (r = (d->parameters) (function,value)) ret = r; | ^ mail.c: In function 'mail_valid_net_parse_work': mail.c:766:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 766 | if (t = strpbrk (s = t,"/:=")) { | ^ mail.c:784:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 784 | if (t = strpbrk (v = t,"/:")) { | ^ mail.c: In function 'mail_list': mail.c:919:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 919 | while (d = d->next); /* until at the end */ | ^ mail.c: In function 'mail_lsub': mail.c:952:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 952 | while (d = d->next); /* until at the end */ | ^ mail.c: In function 'mail_create': mail.c:996:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 996 | if (s = strpbrk (mailbox,"\015\012")) { | ^ mail.c:1012:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1012 | if (s = mail_utf7_valid (mailbox)) { | ^ mail.c: In function 'mail_rename': mail.c:1092:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1092 | if (s = mail_utf7_valid (newname)) { | ^ mail.c: In function 'mail_open': mail.c:1199:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | if (stream = mail_open (stream,s+1,options)) { | ^~~~~~ mail.c:1216:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1216 | if (stream = mail_open (stream,mb.mailbox,options)) { | ^~~~~~ mail.c:1243:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1243 | if (s = strpbrk (tmp,"/\\:")) *s++ = '\0'; | ^ mail.c: In function 'mail_fetch_structure': mail.c:1543:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1543 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_message': mail.c:1655:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1655 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_header': mail.c:1725:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1725 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c:1778:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1778 | if (rt.data = (unsigned char *) | ^~ mail.c: In function 'mail_fetch_text': mail.c:1816:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1816 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_mime': mail.c:1871:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1871 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_fetch_body': mail.c:1954:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1954 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_partial_text': mail.c:2012:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2012 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_partial_body': mail.c:2082:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2082 | if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; | ^~~~~ mail.c: In function 'mail_msgno': mail.c:2232:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2232 | if (delta = ((last - first) / 2)) { | ^~~~~ mail.c: In function 'mail_search_default': mail.c:2386:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2386 | if (msg = utf8_badcharset (charset)) { | ^~~ mail.c: In function 'mail_append_multiple': mail.c:2612:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2612 | else if (d = mail_valid (stream,mailbox,NIL)) | ^ mail.c: In function 'mail_gc': mail.c:2650:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2650 | if (elt = (MESSAGECACHE *) (*mailcache) (stream,i,CH_ELT)) | ^~~ mail.c: In function 'mail_body': mail.c:2725:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2725 | if (pt = b->nested.part) while (--i && (pt = pt->next)); | ^~ mail.c: In function 'mail_parse_date': mail.c:3085:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3085 | if (t = gmtime (&tn)) { /* minus UTC minutes since midnight */ | ^ mail.c: In function 'mail_uid_sequence': mail.c:3306:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3306 | if (x = mail_msgno (stream,i)) mail_elt (stream,x)->sequence = T; | ^ mail.c: In function 'mail_match_lines': mail.c:3339:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3339 | while (lines = lines->next); | ^~~~~ mail.c: In function 'mail_filter': mail.c:3371:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3371 | if (i = t - tmp) /* see if found in header */ | ^ mail.c: In function 'mail_search_header_text': mail.c:3621:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3621 | if (h.data = (unsigned char *) s) { | ^ mail.c: In function 'mail_search_text': mail.c:3672:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3672 | if (st = st->next) s = s->next = mail_newstringlist (); | ^~ mail.c: In function 'mail_search_body': mail.c:3754:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3754 | if (body = body->nested.msg->body) | ^~~~ mail.c:3771:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3771 | if (st.data = (unsigned char *) | ^~ mail.c:3778:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3778 | if (st.data = rfc822_qprint ((unsigned char *) s,i,&st.size)) { | ^~ mail.c: In function 'mail_search_string': mail.c:3806:16: warning: unused variable 'sc' [-Wunused-variable] 3806 | STRINGLIST **sc = st; | ^~ mail.c: In function 'mail_search_keyword': mail.c:3859:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3859 | } while (st = st->next); | ^~ mail.c: In function 'mail_search_addr': mail.c:3888:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3888 | if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); | ^~~~ mail.c:3889:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3889 | if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); | ^~~~ mail.c:3890:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3890 | if (tadr.host = a->host) k += 3 + 2*strlen (a->host); | ^~~~ mail.c: In function 'mail_criteria_string': mail.c:4125:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4125 | if (d = strtok_r (c,end,r)) n = strlen (d); | ^ mail.c: In function 'mail_sort_loadcache': mail.c:4336:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4336 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4372:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4372 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4380:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4380 | if (v = strchr (v,':')) { | ^ mail.c:4387:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4387 | if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { | ^~~ mail.c:4405:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4405 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4413:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4413 | if (v = strchr (v,':')) { | ^ mail.c:4420:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4420 | if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { | ^~~ mail.c:4438:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4438 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c:4446:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4446 | if (v = strchr (v,':')) { | ^ mail.c:4453:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4453 | if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { | ^~~ mail.c:4472:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4472 | for (x = ++t; x = strpbrk (x,"\012\015"); x++) | ^ mail.c: In function 'mail_strip_subject': mail.c:4506:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4506 | if (src.size = strlen (t)) { /* have non-empty subject? */ | ^~~ mail.c: In function 'mail_sort_compare': mail.c:4662:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4662 | while (pgm = i ? NIL : pgm->next); | ^~~ mail.c: In function 'mail_thread_orderedsubject': mail.c:4789:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4789 | if (lst = (*sorter) (stream,charset,spg,&pgm,flags & ~(SE_FREE | SE_UID))){ | ^~~ mail.c: In function 'mail_thread_references': mail.c:4903:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4903 | if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { | ^~~ mail.c:4951:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4951 | THREADLINKS); st = st->next; con = nxc) { | ^~ mail.c: In function 'mail_thread_parse_references': mail.c:5183:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5183 | if (t = mail_thread_parse_msgid (s,&s)) { | ^ mail.c:5187:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5187 | for (cur = ret; t = mail_thread_parse_msgid (s,&s); cur = cur->next) { | ^ mail.c: In function 'mail_thread_c2node': mail.c:5289:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5289 | if (nxt = CHILD (con)) cur->next = mail_thread_c2node (stream,nxt,flags); | ^~~ mail.c: In function 'mail_parse_flags': mail.c:5440:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5440 | if (n = strchr (t,' ')) *n++ = '\0'; | ^ mail.c: In function 'net_open_work': mail.c:6201:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 6201 | if (tstream = (*dv->open) (host,service,port | flags)) { | ^~~~~~~ mail.c: In function 'net_aopen': mail.c:6223:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 6223 | if (tstream = (*dv->aopen) (mb,service,user)) { | ^~~~~~~ mail.c: In function 'mail_parse_set': mail.c:4149:26: warning: 'cur' may be used uninitialized in this function [-Wmaybe-uninitialized] 4149 | else cur = cur->next = mail_newsearchset (); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` misc.c -o misc.so misc.c: In function 'hash_reset': misc.c:318:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 318 | for (i = 0; i < hashtab->size; i++) if (ent = hashtab->table[i]) | ^~~ misc.c: In function 'hash_index': misc.c:335:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 335 | for (ret = 0; i = (unsigned int) *key++; ret += i) ret *= HASHMULT; | ^ misc.c: In function 'compare_cstring': misc.c:452:37: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 452 | for (; *s1 && *s2; s1++,s2++) if (i = (compare_uchar (*s1,*s2))) return i; | ^ misc.c: In function 'compare_csizedtext': misc.c:472:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 472 | if (i = (compare_uchar (*s1,*s))) return i; | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` newsrc.c -o newsrc.so newsrc.c: In function 'newsrc_newmessages': newsrc.c:126:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 126 | if (k = elt->private.uid - 1) { | ^ newsrc.c: In function 'newsrc_write': newsrc.c:343:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 343 | if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ | ^ newsrc.c:368:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 368 | if (f = newsrc_create (stream,NIL)) bf = NIL; | ^ newsrc.c:384:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 384 | if (f = newsrc_create (stream,T)) bf = NIL; | ^ newsrc.c: In function 'newsrc_state': newsrc.c:468:2: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 468 | fread (s,(size_t) 1,size,f); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` smanager.c -o smanager.so smanager.c: In function 'sm_subscribe': smanager.c:46:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 46 | if (f = fopen (db,"r")) { /* make sure not already there */ | ^ smanager.c:48:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 48 | if (s = strchr (tmp,'\n')) *s = '\0'; | ^ smanager.c: In function 'sm_unsubscribe': smanager.c:88:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 88 | if (s = strchr (tmp,'\n')) *s = '\0'; | ^ smanager.c: In function 'sm_read': smanager.c:119:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 119 | if (f = fopen (sbname,"r")) *sdb = (void *) f; | ^ smanager.c:123:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 123 | if (s = strchr (sbname,'\n')) *s = '\0'; | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` utf8.c -o utf8.so utf8.c:114:39: warning: missing braces around initializer [-Wmissing-braces] 114 | static const CHARSET utf8_csvalid[] = { | ^ utf8.c:347:38: warning: missing braces around initializer [-Wmissing-braces] 347 | static const SCRIPT utf8_scvalid[] = { | ^ utf8.c: In function 'utf8_rmap_cs': utf8.c:662:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 662 | else if (ret = utf8_rmap_gen (cs,currmap)) { | ^~~ utf8.c: In function 'utf8_rmaptext': utf8.c:794:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 794 | if (i = utf8_rmapsize (text,rmap,errch,iso2022jp)) { | ^ utf8.c: In function 'utf8_csvalidmap': utf8.c:1293:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1293 | if (cs = utf8_charset (s)) { | ^~ utf8.c: In function 'ucs4_decompose': utf8.c:2395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2395 | if (m = (struct decomposemore *) *more) switch (m->type) { | ^ utf8.c:2418:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2418 | if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { | ^ utf8.c:2448:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2448 | if (i = ucs4_dbmphiixtab[c - UCS4_BMPHIMIN]) { | ^ utf8.c: In function 'ucs4_decompose_recursive': utf8.c:2513:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2513 | if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { | ^~ utf8.c:2533:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2533 | if (mr = mn) { /* did this value recurse on us? */ | ^~ utf8.c: In function 'ucs4_decompose': utf8.c:2497:10: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] 2497 | return ret; | ^~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` utf8aux.c -o utf8aux.so utf8aux.c: In function 'utf8_stringlist': utf8aux.c:47:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 47 | } while (st = st->next); | ^~ utf8aux.c: In function 'utf8_mime2text': utf8aux.c:136:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 136 | if (ls = strchr (cs,'*')) *ls = '\0'; | ^~ utf8aux.c: In function 'mime2_decode': utf8aux.c:241:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 241 | if (txt->data = (unsigned char *) rfc822_base64 (t,te - t,&txt->size)) | ^~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` siglocal.c -o siglocal.so cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` dummy.c -o dummy.so dummy.c: In function 'dummy_scan': dummy.c:162:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 162 | if (s = strchr (test,'/')) *++s = '\0'; | ^ dummy.c:170:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 170 | if (s = strpbrk (test,"%*")) { | ^ dummy.c:176:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 176 | if (s = strrchr (file,'/')){/* find directory name */ | ^ dummy.c: In function 'dummy_lsub': dummy.c:233:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 233 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ dummy.c: In function 'dummy_list_work': dummy.c:282:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 282 | if (dp = opendir (tmp)) { /* do nothing if can't open directory */ | ^~ dummy.c:294:62: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 294 | if (!dir || dir[(len = strlen (dir)) - 1] == '/') while (d = readdir (dp)) | ^ dummy.c: In function 'dummy_create_path': dummy.c:485:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 485 | if (s = strrchr (path,'/')) { /* found superior to this name? */ | ^ dummy.c: In function 'dummy_append': dummy.c:728:23: warning: operation on 'ts' may be undefined [-Wsequence-point] 728 | if (!ts && !(*(ts = default_proto (NIL))->dtb->create) (ts,"INBOX")) | ~~~~^~~~~~~~~~~~~~~~~~~~~~ dummy.c: In function 'dummy_canonicalize': dummy.c:803:28: warning: value computed is not used [-Wunused-value] 803 | for (i = 0, s = tmp; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; | ^~~~ dummy.c: In function 'dummy_scan_contents': dummy.c:383:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 383 | read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from dummy.c:30: In function 'sprintf', inlined from 'dummy_delete' at dummy.c:523:5: /usr/include/bits/stdio2.h:38:10: warning: '%.80s' directive argument is null [-Wformat-overflow=] 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` pseudo.c -o pseudo.so cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` netmsg.c -o netmsg.so netmsg.c: In function 'netmsg_slurp': netmsg.c:64:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 64 | if (f = fopen (tmp,"wb+")) unlink (tmp); | ^ netmsg.c:73:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 73 | while (s = net_getline (stream)) { | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` flstring.c -o flstring.so cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` fdstring.c -o fdstring.so In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from osdep.h:43, from fdstring.c:30: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ fdstring.c: In function 'fd_string_setpos': fdstring.c:94:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 94 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ fdstring.c:97:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 97 | read ((long) s->data,s->curpos,(size_t) s->cursize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdstring.c: In function 'fd_string_init': fdstring.c:67:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | read (d->fd,s->chunk,(size_t) s->cursize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` rfc822.c -o rfc822.so rfc822.c: In function 'rfc822_parse_msg_full': rfc822.c:155:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 155 | if (t = d = strchr (tmp,':')) { | ^ rfc822.c:204:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 204 | while (c = *d++) if (c != ' ') *t++ = c; | ^ rfc822.c:218:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 218 | if (t = rfc822_parse_phrase (d)) *t = '\0'; | ^ rfc822.c:229:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 229 | while (c = *d++) if (c != ' ') *t++ = c; | ^ rfc822.c: In function 'rfc822_parse_content': rfc822.c:381:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 381 | if (m = GETPOS (bs)) m--; /* get position in front of character */ | ^ rfc822.c:394:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 394 | if (k = j - 2) for (s = s1; i-- && *s++ == (c = SNX (bs)) && --k;); | ^ rfc822.c:449:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 449 | if (i = part->body.mime.text.size) { | ^ rfc822.c: In function 'rfc822_parse_content_header': rfc822.c:550:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 550 | if (t = strchr (name,' ')) *t = '\0'; | ^ rfc822.c: In function 'rfc822_parse_adrlist': rfc822.c:740:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 740 | else if (adr = rfc822_parse_address (lst,last,&string,host,0)) { | ^~~ rfc822.c: In function 'rfc822_parse_address': rfc822.c:794:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 794 | if (adr = rfc822_parse_group (lst,last,string,defaulthost,depth)) last = adr; | ^~~ rfc822.c:796:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | else if (adr = rfc822_parse_mailbox (string,defaulthost)) { | ^~~ rfc822.c: In function 'rfc822_parse_group': rfc822.c:842:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 842 | if (adr = rfc822_parse_address (lst,last,string,defaulthost,depth+1)) { | ^~~ rfc822.c: In function 'rfc822_parse_mailbox': rfc822.c:901:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 901 | else if (end = rfc822_parse_phrase (s)) { | ^~~ rfc822.c: In function 'rfc822_parse_addrspec': rfc822.c:1030:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1030 | if (t = rfc822_parse_word (string,wspecials)) { | ^ rfc822.c: In function 'rfc822_parse_domain': rfc822.c:1098:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1098 | else if (t = rfc822_parse_word (string,wspecials)) { | ^ rfc822.c:1108:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1108 | if (string = rfc822_parse_domain (string,&t)) { | ^~~~~~ rfc822.c: In function 'rfc822_parse_word': rfc822.c:1175:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1175 | while (st = strchr (st,I2C_ESC)) | ^~ rfc822.c: In function 'rfc822_output_data': rfc822.c:1374:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1374 | if (i = min (len,buf->end - buf->cur)) { | ^ rfc822.c: In function 'rfc822_output_cat': rfc822.c:1622:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1622 | for (; s = strpbrk (src,"\\\""); src = s + 1) { | ^ rfc822.c: In function 'rfc822_encode_body_7bit': rfc822.c:1740:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1740 | while (part = part->next); /* until done */ | ^~~~ rfc822.c: In function 'rfc822_encode_body_8bit': rfc822.c:1808:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1808 | while (part = part->next); /* until done */ | ^~~~ rfc822.c: In function 'rfc822_base64': rfc822.c:1964:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1964 | if (s = strpbrk (tmp,"\015\012")) *s = NIL; | ^ rfc822.c: In function 'rfc822_output': rfc822.c:2345:10: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] 2345 | char tmp[SENDBUFLEN+1]; /* client to give us a big enough one */ | ^~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` nntp.c -o nntp.so nntp.c: In function 'nntp_list': nntp.c:353:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 353 | while (s = net_getline (LOCAL->nntpstream->netstream)) { | ^ nntp.c:358:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 358 | if (t = strchr (s,' ')) { /* tie off after newsgroup name */ | ^ nntp.c: In function 'nntp_lsub': nntp.c:397:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 397 | if (s = sm_read (&sdb)) do if (nntp_valid (s) && pmatch (s,mbx)) | ^ nntp.c:399:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 399 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ nntp.c: In function 'nntp_canonicalize': nntp.c:430:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 430 | for (s = wildmat; s = strchr (s,'%'); *s = '*'); | ^ nntp.c: In function 'nntp_status': nntp.c:556:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 556 | else if (state = newsrc_state (stream,name)) { | ^~~~~ nntp.c: In function 'nntp_overview': nntp.c:929:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 929 | for (t = v = s; c = *v++;) | ^ nntp.c: In function 'nntp_parse_overview': nntp.c:1039:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1039 | if (t = strchr (ov->subject,'\t')) { | ^ nntp.c:1042:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1042 | if (ov->date = strchr (t,'\t')) { | ^~ nntp.c:1049:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1049 | if (ov->message_id = strchr (ov->date,'\t')) { | ^~ nntp.c:1053:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1053 | if (ov->references = strchr (ov->message_id,'\t')) { | ^~ nntp.c:1057:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1057 | if (t = strchr (ov->references,'\t')) { | ^ nntp.c:1062:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1062 | if (t = strchr (t,'\t')) { | ^ nntp.c:1066:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1066 | if (ov->optional.xref = strchr (t,'\t')) | ^~ nntp.c: In function 'nntp_header': nntp.c:1099:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1099 | if (f = netmsg_slurp (LOCAL->nntpstream->netstream,size,NIL)) { | ^ nntp.c: In function 'nntp_text': nntp.c:89:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 89 | #define LOCAL ((NNTPLOCAL *) stream->local) | ^ nntp.c:1151:11: note: in expansion of macro 'LOCAL' 1151 | if (LOCAL->txt = netmsg_slurp (LOCAL->nntpstream->netstream, | ^~~~~ nntp.c: In function 'nntp_search': nntp.c:1216:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1216 | if (msg = utf8_badcharset (charset)) { | ^~~ nntp.c: In function 'nntp_search_msg': nntp.c:1269:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1269 | if (set = pgm->msgno) { /* must be inside this sequence */ | ^~~ nntp.c:1277:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1277 | if (set = pgm->uid) { /* must be inside this sequence */ | ^~~ nntp.c: In function 'nntp_sort_loadcache': nntp.c:1513:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1513 | for (t = v = s; c = *v++;) if ((c != '\012') && (c != '\015')) *t++ = c; | ^ nntp.c:1522:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1522 | if (t = strchr (v,'\t')) { | ^ nntp.c:1524:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1524 | if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { | ^~~ nntp.c:1529:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1529 | if (v = strchr (t,'\t')) { | ^ nntp.c: In function 'nntp_open_full': nntp.c:1679:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1679 | if (netstream = /* try to open ordinary connection */ | ^~~~~~~~~ nntp.c:1720:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1720 | if (stream->netstream->stream = | ^~~~~~ nntp.c: In function 'nntp_extensions': nntp.c:1817:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1817 | if (args = strchr (t,' ')) *args++ = '\0'; | ^~~~ nntp.c: In function 'nntp_mail': nntp.c:1916:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1916 | if (s = strstr (env->date," (")) *s = NIL; | ^ nntp.c:1887:8: warning: unused variable 'retry' [-Wunused-variable] 1887 | long retry = NIL; | ^~~~~ nntp.c:1886:8: warning: unused variable 'error' [-Wunused-variable] 1886 | long error = NIL; | ^~~~~ nntp.c: In function 'nntp_soutr': nntp.c:2214:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2214 | while (t = strstr (s,"\015\012.")) { | ^ nntp.c: In function 'nntp_mopen': nntp.c:764:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 764 | fread (LOCAL->over_fmt = (char *) fs_get ((size_t) k + 3), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 765 | (size_t) 1,(size_t) k,f); | ~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c: In function 'nntp_header': nntp.c:1100:2: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1100 | fread (elt->private.msg.header.text.data = | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1101 | (unsigned char *) fs_get ((size_t) *size + 3), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1102 | (size_t) 1,(size_t) *size,f); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` smtp.c -o smtp.so smtp.c: In function 'smtp_open_full': smtp.c:172:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 172 | if (netstream = /* try to open ordinary connection */ | ^~~~~~~~~ smtp.c: In function 'smtp_soutr': smtp.c:783:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 783 | while (t = strstr (s,"\015\012.")) { | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` imap4r1.c -o imap4r1.so imap4r1.c: In function 'imap_lsub': imap4r1.c:505:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 505 | if (s = sm_read (&sdb)) do if (imap_valid (s) && pmatch (s,mbx)) | ^ imap4r1.c:507:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 507 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ imap4r1.c: In function 'imap_manage': imap4r1.c:681:52: warning: the address of 'imapdriver' will always evaluate as 'true' [-Waddress] 681 | if (mail_valid_net (mailbox,&imapdriver,NIL,mbx) && | ^~ imap4r1.c: In function 'imap_open': imap4r1.c:849:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 849 | else if (reply = imap_rimap (stream,"*imap",&mb,usr,tmp)); | ^~~~~ imap4r1.c: In function 'imap_close': imap4r1.c:1317:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1317 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^~~ imap4r1.c:1317:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1317 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^ imap4r1.c: In function 'imap_structure': imap4r1.c:1499:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1499 | if (j = (set->last == 0xffffffff) ? stream->nmsgs : | ^ imap4r1.c:1522:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1522 | if (k = (k > i) ? k - i : 0) | ^ imap4r1.c: In function 'imap_msgdata': imap4r1.c:1700:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1700 | else if (t = strstr (section,".HEADER")) { | ^ imap4r1.c: In function 'imap_uid': imap4r1.c:1884:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1884 | if (k = imap_uidlookahead) {/* build UID list */ | ^ imap4r1.c: In function 'imap_search': imap4r1.c:2048:48: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2048 | for (set = ss; set; set = set->next) if (i = set->first) { | ^ imap4r1.c: In function 'imap_gc': imap4r1.c:2650:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2650 | if (elt = (MESSAGECACHE *) (*mc) (stream,i,CH_ELT)) | ^~~ imap4r1.c: In function 'imap_capability': imap4r1.c:2705:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2705 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^~~ imap4r1.c:2705:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2705 | if (thr = LOCAL->cap.threader) while (t = thr) { | ^ imap4r1.c: In function 'imap_send': imap4r1.c:2927:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2927 | if (arglst = args) while (arg = *arglst++) { | ^~~~~~ imap4r1.c:2927:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2927 | if (arglst = args) while (arg = *arglst++) { | ^~~ imap4r1.c:2947:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2947 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL,CMDBASE+MAXCOMMAND)) | ^~~~~ imap4r1.c:2951:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2951 | if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; | ^~~~~ imap4r1.c:2959:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2959 | if (reply = imap_send_astring (stream,tag,&s,&list->text,NIL, | ^~~~~ imap4r1.c:2963:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2963 | while (list = list->next); | ^~~~ imap4r1.c:2967:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2967 | if (reply = imap_send_spgm (stream,tag,CMDBASE,&s,arg->text, | ^~~~~ imap4r1.c:3053:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3053 | if (reply = imap_send_astring (stream,tag,&s,&st,T,CMDBASE+MAXCOMMAND)) | ^~~~~ imap4r1.c:3075:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3075 | if (t = map->flags) { /* flags given? */ | ^ imap4r1.c:3087:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3087 | if (reply = imap_send_astring (stream,tag,&s,&st,NIL, | ^~~~~ imap4r1.c:3091:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3091 | if (reply = imap_send_literal (stream,tag,&s,map->message)) | ^~~~~ imap4r1.c:3121:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3121 | while (list = list->next); | ^~~~ imap4r1.c: In function 'imap_send_spgm': imap4r1.c:3355:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3355 | if (hdr = pgm->header) do { | ^~~ imap4r1.c:3357:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3357 | if (reply = imap_send_astring (stream,tag,s,&hdr->line,NIL,limit)) | ^~~~~ imap4r1.c:3360:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3360 | if (reply = imap_send_astring (stream,tag,s,&hdr->text,NIL,limit)) | ^~~~~ imap4r1.c:3362:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3362 | } while (hdr = hdr->next); | ^~~ imap4r1.c:3365:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3365 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->first,limit)) | ^~~~~ imap4r1.c:3368:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3368 | if (reply = imap_send_spgm (stream,tag,base,s,pgo->second,limit)) | ^~~~~ imap4r1.c:3374:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3374 | if (reply = imap_send_spgm (stream,tag,base,s,pgl->pgm,limit)) | ^~~~~ imap4r1.c: In function 'imap_send_sset': imap4r1.c:3452:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3452 | if (reply = imap_send_literal (stream,tag,s,&st)) return reply; | ^~~~~ imap4r1.c:3454:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3454 | if (reply = imap_send_sset (stream,tag,NIL,s,set,prefix,limit)) | ^~~~~ imap4r1.c: In function 'imap_reply': imap4r1.c:3555:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3555 | if (reply = imap_parse_reply (stream,net_getline (LOCAL->netstream))) { | ^~~~~ imap4r1.c: In function 'imap_parse_unsolicited': imap4r1.c:3733:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3733 | while (prop = (strtok_r (t," )",&r))) { | ^~~~ imap4r1.c:3808:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3808 | else if (t = strchr (s = t,' ')) *t++ = '\0'; | ^ imap4r1.c:3907:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3907 | while (s = strtok_r (NIL," )",&r)); | ^ imap4r1.c:3911:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3911 | if (i = strtoul (t,NIL,10)) { | ^ imap4r1.c:3920:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3920 | } while (t = strtok_r (NIL," ",&r)); | ^ imap4r1.c:3944:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3944 | if (s = reply->text) { | ^ imap4r1.c:4008:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4008 | if (t = strtok_r (reply->text+1," ",&r)) do { | ^ imap4r1.c:4017:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4017 | while (t = strtok_r (NIL," ",&r)); | ^ imap4r1.c:4028:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4028 | if (t = imap_parse_astring (stream,&s,reply,&j)) { | ^ imap4r1.c:4046:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4046 | if (s = reply->text) { /* parse namespace results */ | ^ imap4r1.c:4166:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4166 | else if (t = strchr (s,' ')) t = s; | ^ imap4r1.c:4169:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4169 | else if (t = strpbrk (s," )")) t = s; | ^ imap4r1.c: In function 'imap_parse_response': imap4r1.c:4266:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4266 | if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; | ^ imap4r1.c:4275:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4275 | if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) | ^~~ imap4r1.c:4286:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4286 | if (s = strtok_r (s+1," ",&r)) do { | ^ imap4r1.c:4300:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4300 | while (s = strtok_r (NIL," ",&r)); | ^ imap4r1.c: In function 'imap_parse_astring': imap4r1.c:4845:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4845 | if (i = *txtptr - s) { /* atom ends at atom_special */ | ^ imap4r1.c: In function 'imap_parse_string': imap4r1.c:4958:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4958 | if (rp) for (k = 0; j = min ((long) MAILTMPLEN,(long) i); i -= j) { | ^ imap4r1.c:4966:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4966 | for (st = string; st = strpbrk (st,"\015\012\011"); *st++ = ' '); | ^~ imap4r1.c: In function 'imap_parse_body_structure': imap4r1.c:5115:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5115 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) | ^~~~ imap4r1.c:5155:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5155 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { | ^ imap4r1.c:5165:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5165 | if (body->subtype = imap_parse_string(stream,txtptr,reply,NIL,NIL,LONGT)) | ^~~~ imap4r1.c:5176:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5176 | if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { | ^ imap4r1.c: In function 'imap_parse_language': imap4r1.c:5373:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5373 | else if (s = imap_parse_string (stream,txtptr,reply,NIL,&i,LONGT)) { | ^ imap4r1.c: In function 'imap_parse_extension': imap4r1.c:5441:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5441 | if (i = strtoul (*txtptr,(char **) txtptr,10)) do | ^ imap4r1.c: In function 'imap_parse_capabilities': imap4r1.c:5477:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5477 | if (thr = LOCAL->cap.threader) while (th = thr) { | ^~~ imap4r1.c:5477:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5477 | if (thr = LOCAL->cap.threader) while (th = thr) { | ^~ imap4r1.c:5520:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5520 | else if (s = strchr (t,'=')) { | ^ imap4r1.c: In function 'imap_reform_sequence': imap4r1.c:5609:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 5609 | for (s = sequence; t = strpbrk (s,",:"); ) switch (*t++) { | ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` pop3.c -o pop3.so pop3.c: In function 'pop3_lsub': pop3.c:279:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 279 | if (s = sm_read (&sdb)) do if (pop3_valid (s) && pmatch (s,mbx)) | ^ pop3.c:281:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 281 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ pop3.c: In function 'pop3_open': pop3.c:77:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 77 | #define LOCAL ((POP3LOCAL *) stream->local) | ^ pop3.c:429:11: note: in expansion of macro 'LOCAL' 429 | if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); | ^~~~~ pop3.c: In function 'pop3_capa': pop3.c:499:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 499 | if (args = strchr (t,' ')) *args++ = '\0'; | ^~~~ pop3.c:510:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 510 | if (s = strchr(args,' ')){/* separate time from possible USER */ | ^ pop3.c:521:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 521 | if (s = strchr(args,' ')){/* separate time from possible USER */ | ^ pop3.c: In function 'pop3_header': pop3.c:843:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 843 | else if (elt->private.msg.header.text.size = pop3_cache (stream,elt)) | ^~~ pop3.c: In function 'pop3_expunge': pop3.c:947:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 947 | if (ret = sequence ? ((options & EX_UID) ? | ^~~ pop3.c: In function 'pop3_header': pop3.c:848:7: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 848 | fread (elt->private.msg.header.text.data = (unsigned char *) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 849 | fs_get ((size_t) elt->private.msg.header.text.size + 1), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 850 | (size_t) 1,(size_t) elt->private.msg.header.text.size,f); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` unix.c -o unix.so unix.c: In function 'unix_valid': unix.c:231:2: warning: implicit declaration of function 'utime'; did you mean 'ctime'? [-Wimplicit-function-declaration] 231 | utime (file,tp); /* set the times */ | ^~~~~ | ctime unix.c: In function 'unix_rename': unix.c:418:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 418 | if (s = strrchr (s,'/')) { | ^ In file included from unix.c:46: unix.c: In function 'unix_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ unix.c:530:5: note: in expansion of macro 'flock' 530 | flock (LOCAL->ld,LOCK_UN); /* release the lock */ | ^~~~~ unix.c: In function 'unix_expunge': unix.c:845:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 845 | if (ret = (sequence ? ((options & EX_UID) ? | ^~~ unix.c:852:21: warning: unused variable 'elt' [-Wunused-variable] 852 | MESSAGECACHE *elt = mail_elt (stream,i); | ^~~ unix.c: In function 'unix_append': unix.c:1037:17: warning: unused variable 'uidlocation' [-Wunused-variable] 1037 | unsigned long uidlocation = 0; | ^~~~~~~~~~~ unix.c: In function 'unix_append_msgs': unix.c:1257:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1257 | for (x = tmp; x = strchr (x,'\r'); --j) memmove (x,x+1,j-(x-tmp)); | ^ unix.c: In function 'unix_parse': unix.c:1483:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1483 | else if (i = sbuf.st_size - LOCAL->filesize) { | ^ unix.c:1770:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1770 | if (u = strpbrk (err,"\r\n")) *u = '\0'; | ^ unix.c: In function 'unix_xstatus': unix.c:2015:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2015 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) | ^ unix.c:2037:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2037 | if (n = elt->user_flags) do { | ^ unix.c: In function 'unix_rewrite': unix.c:2101:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2101 | if (ret = unix_extend (stream,size)) { | ^~~ unix.c: In function 'unix_write': unix.c:2311:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2311 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { | ^ unix.c:2327:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2327 | if (j = min (i,f->protect - f->filepos)) { | ^ unix.c: In function 'unix_open': unix.c:519:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 519 | ftruncate (fd,i); /* make sure tied off */ | ^~~~~~~~~~~~~~~~ unix.c: In function 'unix_header': unix.c:630:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 630 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:640:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 640 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 641 | elt->private.msg.header.text.size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_text_work': unix.c:707:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 707 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_copy': unix.c:956:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 956 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:982:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 982 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_append': unix.c:1152:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1152 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_rewrite': unix.c:2139:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2139 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2239:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2239 | ftruncate (LOCAL->fd,LOCAL->filesize = size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_extend': unix.c:2285:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2285 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'mbox_ping': unix.c:2611:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2611 | read (sfd,s = (char *) fs_get (size + 1),size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2621:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2621 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2629:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2629 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2640:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2640 | ftruncate (sfd,0); /* truncate sysinbox to zero bytes */ | ^~~~~~~~~~~~~~~~~ unix.c: In function 'unix_parse': unix.c:1749:34: warning: '%s' directive writing up to 1023 bytes into a region of size 1007 [-Wformat-overflow=] 1749 | sprintf (err,"Discarding bogus %s header in message %lu", | ^~ 1750 | (char *) tmp,elt->msgno); | ~~~ In file included from /usr/include/stdio.h:866, from unix.c:40: /usr/include/bits/stdio2.h:38:10: note: '__sprintf_chk' output between 38 and 1080 bytes into a destination of size 1024 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mbx.c -o mbx.so In file included from mbx.c:42: mbx.c: In function 'mbx_isvalid': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mbx.c:233:12: note: in expansion of macro 'flock' 233 | if (flock (fd,LOCK_SH) || | ^~~~~ mbx.c:303:7: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 303 | utime (tmp,tp); /* set the times */ | ^~~~~ | utimes mbx.c: In function 'mbx_rename': mbx.c:480:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 480 | if (s = strrchr (tmp,'/')) { | ^ mbx.c: In function 'mbx_ping': mbx.c:825:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 825 | else if (ret = mbx_parse (stream)) { | ^~~ mbx.c:829:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 829 | if (elt = mbx_elt (stream,i,LOCAL->expok)) { | ^~~ mbx.c: In function 'mbx_expunge': mbx.c:888:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 888 | if (ret = sequence ? ((options & EX_UID) ? | ^~~ mbx.c:895:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 895 | else if (nexp = mbx_rewrite (stream,&reclaimed,sequence ? -1 : 1)) { | ^~~~ mbx.c: In function 'mbx_snarf': mbx.c:938:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 938 | if (j = hdrlen + txtlen) { | ^ mbx.c: In function 'mbx_copy': mbx.c:1035:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1035 | if (s = stream->user_flags[find_rightmost_bit (&j)]) | ^ mbx.c:1044:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1044 | if (ret = (write (fd,LOCAL->buf,strlen (LOCAL->buf)) > 0)) { | ^~~ mbx.c: In function 'mbx_hdrpos': mbx.c:1644:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1644 | if (*size = elt->private.msg.header.text.size) return ret; | ^ mbx.c: In function 'mbx_rewrite': mbx.c:1736:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1736 | if (m = (elt = mbx_elt (stream,i,NIL))->private.special.offset - ppos) { | ^ mbx.c:1776:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1776 | if (m = (LOCAL->filesize -= delta) - pos) { | ^ mbx.c:1795:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1795 | if (elt = mbx_elt (stream,i,T)) { | ^~~ mbx.c: In function 'mbx_header': mbx.c:709:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 709 | read (LOCAL->fd,s = LOCAL->buf,*length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_snarf': mbx.c:965:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 965 | ftruncate (LOCAL->fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_copy': mbx.c:1046:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1046 | read (LOCAL->fd,LOCAL->buf,j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1060:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1060 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_append': mbx.c:1195:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1195 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_parse': mbx.c:1269:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1269 | read (LOCAL->fd,LOCAL->buf,HDRSIZE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_rewrite': mbx.c:1757:6: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1757 | read (LOCAL->fd,LOCAL->buf,m); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1781:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1781 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mmdf.c -o mmdf.so mmdf.c: In function 'mmdf_isvalid': mmdf.c:382:2: warning: implicit declaration of function 'utime'; did you mean 'ctime'? [-Wimplicit-function-declaration] 382 | utime (file,tp); /* set the times */ | ^~~~~ | ctime mmdf.c: In function 'mmdf_rename': mmdf.c:557:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 557 | if (s = strrchr (s,'/')) { | ^ In file included from mmdf.c:34: mmdf.c: In function 'mmdf_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mmdf.c:669:5: note: in expansion of macro 'flock' 669 | flock (LOCAL->ld,LOCK_UN); /* release the lock */ | ^~~~~ mmdf.c: In function 'mmdf_expunge': mmdf.c:984:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 984 | if (ret = (sequence ? ((options & EX_UID) ? | ^~~ mmdf.c:991:21: warning: unused variable 'elt' [-Wunused-variable] 991 | MESSAGECACHE *elt = mail_elt (stream,i); | ^~~ mmdf.c: In function 'mmdf_append': mmdf.c:1173:17: warning: unused variable 'uidlocation' [-Wunused-variable] 1173 | unsigned long uidlocation = 0; | ^~~~~~~~~~~ mmdf.c: In function 'mmdf_append_msgs': mmdf.c:1394:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1394 | for (x = tmp; x = strpbrk (x,"\01\r"); --j) memmove (x,x+1,j-(x-tmp)); | ^ mmdf.c: In function 'mmdf_parse': mmdf.c:1612:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1612 | else if (i = sbuf.st_size - LOCAL->filesize) { | ^ mmdf.c:1934:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1934 | if (u = strpbrk (err,"\r\n")) *u = '\0'; | ^ mmdf.c: In function 'mmdf_xstatus': mmdf.c:2178:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2178 | for (n = 0; n < NUSERFLAGS; ++n) if (t = stream->user_flags[n]) | ^ mmdf.c:2200:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2200 | if (n = elt->user_flags) do { | ^ mmdf.c: In function 'mmdf_rewrite': mmdf.c:2264:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2264 | if (ret = mmdf_extend (stream,size)) { | ^~~ mmdf.c: In function 'mmdf_write': mmdf.c:2457:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2457 | if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { | ^ mmdf.c:2473:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2473 | if (j = min (i,f->protect - f->filepos)) { | ^ mmdf.c: In function 'mmdf_open': mmdf.c:658:7: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 658 | ftruncate (fd,i); /* make sure tied off */ | ^~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_header': mmdf.c:769:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 769 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:779:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 779 | read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 780 | elt->private.msg.header.text.size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_text_work': mmdf.c:846:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 846 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_copy': mmdf.c:1091:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1091 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1118:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1118 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_append': mmdf.c:1288:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1288 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_rewrite': mmdf.c:2302:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 2302 | read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2385:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2385 | ftruncate (LOCAL->fd,LOCAL->filesize = size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_extend': mmdf.c:2431:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2431 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` tenex.c -o tenex.so tenex.c: In function 'tenex_isvalid': tenex.c:206:2: warning: implicit declaration of function 'utime'; did you mean 'ctime'? [-Wimplicit-function-declaration] 206 | utime (file,tp); /* set the times */ | ^~~~~ | ctime In file included from tenex.c:47: tenex.c: In function 'tenex_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ tenex.c:315:7: note: in expansion of macro 'flock' 315 | if (flock (fd,LOCK_EX|LOCK_NB)) { | ^~~~~ tenex.c:324:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 324 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ | ^ tenex.c: In function 'tenex_snarf': tenex.c:772:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 772 | if (j = hdrlen + txtlen) { | ^ tenex.c: In function 'tenex_fast': tenex.c:516:4: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 516 | read (LOCAL->fd,LOCAL->buf,elt->private.msg.full.text.size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_header': tenex.c:567:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 567 | read (LOCAL->fd,LOCAL->buf,*length = i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:572:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 572 | read (LOCAL->fd,s,i); /* slurp the data */ | ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_text': tenex.c:614:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 614 | read (LOCAL->fd,LOCAL->buf,i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:629:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 629 | read (LOCAL->fd,s,i); /* slurp the data */ | ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_snarf': tenex.c:799:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 799 | ftruncate (LOCAL->fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_expunge': tenex.c:890:6: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 890 | read (LOCAL->fd,LOCAL->buf,m); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:917:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 917 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_copy': tenex.c:1008:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1008 | read (LOCAL->fd,LOCAL->buf,j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1016:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1016 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_append': tenex.c:1150:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1150 | ftruncate (fd,sbuf.st_size);/* revert file */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_hdrpos': tenex.c:1456:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1456 | read (LOCAL->fd,s = LOCAL->buf,i = min (msiz-siz,(long) MAILTMPLEN)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mtx.c -o mtx.so mtx.c: In function 'mtx_isvalid': mtx.c:199:2: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 199 | utime (file,tp); /* set the times */ | ^~~~~ | utimes In file included from mtx.c:42: mtx.c: In function 'mtx_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mtx.c:308:7: note: in expansion of macro 'flock' 308 | if (flock (fd,LOCK_EX|LOCK_NB)) { | ^~~~~ mtx.c:317:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 317 | if (s = strrchr (tmp,'/')) {/* found superior to destination name? */ | ^ mtx.c: In function 'mtx_snarf': mtx.c:683:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 683 | if (j = hdrlen + txtlen) { | ^ mtx.c: In function 'mtx_header': mtx.c:515:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 515 | read (LOCAL->fd,LOCAL->buf,*length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_snarf': mtx.c:710:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 710 | ftruncate (LOCAL->fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_expunge': mtx.c:801:6: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 801 | read (LOCAL->fd,LOCAL->buf,m); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:827:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 827 | ftruncate (LOCAL->fd,LOCAL->filesize); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_copy': mtx.c:918:2: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 918 | read (LOCAL->fd,LOCAL->buf,j); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:926:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 926 | ftruncate (fd,sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_append': mtx.c:1053:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1053 | ftruncate (fd,sbuf.st_size);/* revert file */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` news.c -o news.so news.c: In function 'news_list': news.c:218:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 218 | if (s = strchr (pattern,'.')) *++s = '\0'; | ^ news.c:234:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { | ^ news.c:234:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 234 | if (t = strtok_r (s,"\n",&r)) do if (u = strchr (t,' ')) { | ^ news.c:243:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 243 | } while (t = strtok_r (NIL,"\n",&r)); | ^ news.c: In function 'news_canonicalize': news.c:286:34: warning: value computed is not used [-Wunused-value] 286 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; | ^~~~ news.c: In function 'news_open': news.c:368:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 368 | while (s = strchr (s,'.')) *s = '/'; | ^ news.c:370:36: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 370 | if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { | ^~~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from news.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ news.c:370:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 370 | if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { | ^~~~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from news.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ news.c: In function 'news_select': news.c:409:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 409 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ news.c: In function 'news_valid': news.c:161:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 161 | read (fd,t = s = (char *) fs_get (sbuf.st_size+1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ news.c: In function 'news_list': news.c:228:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 228 | read (fd,s = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` phile.c -o phile.so phile.c: In function 'phile_open': phile.c:292:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 292 | if (k = t->tm_yday - k) i += ((k < 0) == (abs (k) == 1)) ? -24*60 : 24*60; | ^ phile.c:309:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 309 | if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); | ^~ phile.c:321:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 321 | if (i = phile_type (buf->data,buf->size,&j)) { | ^ phile.c:317:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 317 | read (fd,buf->data = (unsigned char *) fs_get (buf->size + 1),buf->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mh.c -o mh.so mh.c: In function 'mh_path': mh.c:257:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 257 | if (v = strpbrk (s," \t")) { | ^ mh.c: In function 'mh_dirfmttest': mh.c:330:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 330 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ mh.c: In function 'mh_scan': mh.c:349:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 349 | if (s = strchr (test,'/')) *++s = '\0'; | ^ mh.c:362:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 362 | if (s = strpbrk (test,"%*")) { | ^ mh.c:369:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 369 | if (s = strrchr (file,'/')) { | ^ mh.c: In function 'mh_lsub': mh.c:407:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 407 | while (s = sm_read (&sdb)); /* until no more subscriptions */ | ^ mh.c: In function 'mh_list_work': mh.c:431:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 431 | if (dp = opendir (curdir)) { /* open directory */ | ^~ mh.c:432:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 432 | while (d = readdir (dp)) /* scan, ignore . and numeric names */ | ^ mh.c: In function 'mh_delete': mh.c:516:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 516 | if (dirp = opendir (tmp)) { /* open directory */ | ^~~~ mh.c:519:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 519 | while (d = readdir (dirp)) if (mh_dirfmttest (d->d_name)) { | ^ mh.c: In function 'mh_rename': mh.c:556:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 556 | if (s = strrchr (mh_file (tmp1,newname),'/')) { | ^ mh.c: In function 'mh_ping': mh.c:865:46: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 865 | long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:865:56: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 865 | long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mh.c:889:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 889 | if (s = (void *) names) fs_give ((void **) &s); | ^ mh.c:939:17: warning: too many arguments for format [-Wformat-extra-args] 939 | sprintf (tmp,"Message copy to MH mailbox failed: %.80s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c: In function 'mh_expunge': mh.c:983:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 983 | if (ret = sequence ? ((options & EX_UID) ? | ^~~ mh.c: In function 'mh_append': mh.c:1131:37: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1131 | if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c:1131:47: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1131 | if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mh.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mh.c:1138:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1138 | if (s = (void *) names) fs_give ((void **) &s); | ^ mh.c:1102:10: warning: variable 'size' set but not used [-Wunused-but-set-variable] 1102 | long i,size,last,nfiles; | ^~~~ mh.c: In function 'mh_select': mh.c:1201:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1201 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ mh.c: In function 'mh_canonicalize': mh.c:1264:34: warning: value computed is not used [-Wunused-value] 1264 | for (i = 0, s = pattern; *s; *s++) if ((*s == '*') || (*s == '%')) ++i; | ^~~~ mh.c: In function 'mh_setdate': mh.c:1282:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 1282 | utime (file,tp); /* set the times */ | ^~~~~ | utimes mh.c: In function 'mh_path': mh.c:251:7: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 251 | read (fd,(t = (char *) fs_get (sbuf.st_size + 1)),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mx.c -o mx.so mx.c: In function 'mx_dirfmttest': mx.c:242:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 242 | while (c = *name++) if (!isdigit (c)) return NIL; | ^ mx.c: In function 'mx_scan_contents': mx.c:277:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 277 | if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:277:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 277 | if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mx.c:289:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 289 | if (a = (void *) names) fs_give ((void **) &a); | ^ mx.c: In function 'mx_create': mx.c:348:7: warning: unused variable 'fd' [-Wunused-variable] 348 | int fd; | ^~ mx.c: In function 'mx_delete': mx.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 395 | if (dirp = opendir (tmp)) { /* open directory */ | ^~~~ mx.c:398:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 398 | while (d = readdir (dirp)) if (mx_select (d)) { | ^ mx.c: In function 'mx_rename': mx.c:441:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 441 | if (s = strrchr (mx_file (tmp1,newname),'/')) { | ^ mx.c:462:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 462 | for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:462:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 462 | for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mx.c:469:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 469 | if (a = (void *) names) fs_give ((void **) &a); | ^ mx.c: In function 'mx_ping': mx.c:731:51: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 731 | long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); | ^~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c:731:61: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 731 | long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); | ^~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mx.c:35: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mx.c:752:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 752 | if (s = (void *) names) fs_give ((void **) &s); | ^ mx.c:803:17: warning: too many arguments for format [-Wformat-extra-args] 803 | sprintf (tmp,"Message copy to MX mailbox failed: %.80s", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_expunge': mx.c:847:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 847 | if (ret = (sequence ? ((options & EX_UID) ? | ^~~ mx.c: In function 'mx_copy': mx.c:939:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 939 | if (ret = ((fd = open (mx_fast_work (stream,elt),O_RDONLY,NIL)) | ^~~ mx.c:949:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 949 | if (j = elt->user_flags) do | ^ mx.c:950:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 950 | if (t = stream->user_flags[find_rightmost_bit (&j)]) | ^ mx.c:960:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 960 | if (ret = mx_append_msg (astream,tmp,elt,&st,dest)) { | ^~~ mx.c:904:21: warning: variable 'uid' set but not used [-Wunused-but-set-variable] 904 | unsigned long i,j,uid,uidv; | ^~~ mx.c: In function 'mx_select': mx.c:1117:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1117 | while (c = *s++) if (!isdigit (c)) return NIL; | ^ In file included from mx.c:35: mx.c: In function 'mx_lockindex': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mx.c:1173:5: note: in expansion of macro 'flock' 1173 | flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ | ^~~~~ mx.c:1189:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1189 | if (s = strchr (t = ++s,'\n')) { | ^ mx.c: In function 'mx_setdate': mx.c:1286:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 1286 | utime (file,tp); /* set the times */ | ^~~~~ | utimes mx.c: In function 'mx_header': mx.c:636:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 636 | read (fd,LOCAL->buf,elt->rfc822_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_lockindex': mx.c:1177:5: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 1177 | read (LOCAL->fd,s = idx = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_unlockindex': mx.c:1269:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1269 | ftruncate (LOCAL->fd,size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mix.c -o mix.so mix.c: In function 'mix_scan_contents': mix.c:324:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 324 | if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) | ^~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:324:49: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 324 | if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) | ^~~~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mix.c:336:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 336 | if (a = (void *) names) fs_give ((void **) &a); | ^ mix.c: In function 'mix_create': mix.c:63:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 63 | #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:63:16: note: in definition of macro 'MTAFMT' 63 | #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:63:36: note: format string is defined here 63 | #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" | ~~~~^ | | | long unsigned int | %08x In file included from mix.c:33: mix.c: In function 'mix_delete': osdep.h:60:15: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ mix.c:471:50: note: in expansion of macro 'flock' 471 | else if (((fd = open (tmp,O_RDWR,NIL)) < 0) || flock (fd,LOCK_EX|LOCK_NB)) | ^~~~~ mix.c:480:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 480 | if (dirp = opendir (tmp)) { /* open directory */ | ^~~~ mix.c:483:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 483 | while (d = readdir (dirp)) if (mix_dirfmttest (d->d_name)) { | ^ mix.c: In function 'mix_rename': mix.c:531:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 531 | if (s = strrchr (tmp1,'/')) { | ^ mix.c:556:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 556 | for (i = lasterror = 0,n = scandir (tmp,&names,mix_rselect,alphasort); | ^~~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:569:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 569 | if (a = (void *) names) fs_give ((void **) &a); | ^ mix.c: In function 'mix_open': mix.c:636:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 636 | if (silent = stream->silent) LOCAL->internal = T; | ^~~~~~ mix.c: In function 'mix_header': mix.c:754:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 754 | if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; | ^ mix.c:711:7: warning: unused variable 'fd' [-Wunused-variable] 711 | int fd; | ^~ mix.c: In function 'mix_text': mix.c:774:17: warning: unused variable 'i' [-Wunused-variable] 774 | unsigned long i; | ^ mix.c: In function 'mix_ping': mix.c:965:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 965 | if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { | ^~~~~~~ mix.c:990:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 990 | if (statf = mix_parse (stream,&idxf,LONGT, | ^~~~~ mix.c:929:15: warning: unused variable 'sfd' [-Wunused-variable] 929 | int mfd,ifd,sfd; | ^~~ mix.c:929:11: warning: unused variable 'ifd' [-Wunused-variable] 929 | int mfd,ifd,sfd; | ^~~ mix.c:929:7: warning: unused variable 'mfd' [-Wunused-variable] 929 | int mfd,ifd,sfd; | ^~~ mix.c: In function 'mix_expunge': mix.c:1038:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1038 | else if (statf = mix_parse (stream,&idxf,LONGT, | ^~~~~ mix.c:1054:53: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1054 | long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); | ^~~~~~~~~~ | | | int (*)(struct dirent *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:257:13: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' 257 | int (*__selector) (const struct dirent *), | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1054:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] 1054 | long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); | ^~~~~~~~~~~~ | | | int (*)(const void *, const void *) In file included from osdep.h:47, from mix.c:33: /usr/include/dirent.h:258:13: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 258 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 259 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1110 | if (a = (void *) names) fs_give ((void **) &a); | ^ mix.c:1026:11: warning: unused variable 'sfd' [-Wunused-variable] 1026 | int ifd,sfd; | ^~~ mix.c:1026:7: warning: unused variable 'ifd' [-Wunused-variable] 1026 | int ifd,sfd; | ^~~ mix.c: In function 'mix_burp': mix.c:1236:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1236 | else if (ret = !truncate (LOCAL->buf,burp->set.last)) | ^~~ mix.c:1219:9: warning: variable 's' set but not used [-Wunused-but-set-variable] 1219 | void *s; | ^ mix.c: In function 'mix_burp_check': mix.c:1340:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1340 | } while (set = set->next); | ^~~ mix.c: In function 'mix_copy': mix.c:1378:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1378 | else if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && | ^~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:23: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:64: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:1403:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1403 | if (msgf = mix_data_open (astream,&fd,&size,newsize)) { | ^~~~ mix.c:1432:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1432 | if (j = elt->user_flags) do | ^ mix.c:1455:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1455 | if (ret = (mix_meta_update (astream) && | ^~~ mix.c:1405:23: warning: variable 'uid' set but not used [-Wunused-but-set-variable] 1405 | unsigned long j,uid,uidv; | ^~~ mix.c: In function 'mix_append': mix.c:1519:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1519 | if (ret = compare_cstring (mailbox,"INBOX") ? | ^~~ mix.c:1536:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1536 | if (ret = ((astream = mail_open (NIL,mailbox,OP_SILENT)) && | ^~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:23: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: note: in definition of macro 'MSRFMT' 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:64: note: format string is defined here 69 | #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:1555:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1555 | if (msgf = mix_data_open (astream,&fd,&size,hdrsize + SIZE (message))) { | ^~~~ mix.c: In function 'mix_append_msg': mix.c:1632:26: warning: unused variable 'hoff' [-Wunused-variable] 1632 | unsigned long i,j,k,uf,hoff; | ^~~~ mix.c:1632:17: warning: unused variable 'i' [-Wunused-variable] 1632 | unsigned long i,j,k,uf,hoff; | ^ mix.c: In function 'mix_parse': mix.c:1743:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1743 | else if (s = mix_meta_slurp (stream,&i)) { | ^ mix.c:1750:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1750 | if (s = strstr (t = s,"\015\012")) { | ^ mix.c:1779:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1779 | if (t = strchr (k = t,' ')) *t++ = '\0'; | ^ mix.c: In function 'mix_index_update': mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:22: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:63: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:69: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:75: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:81: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: note: in definition of macro 'IXRFMT' 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:87: note: format string is defined here 65 | #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c: In function 'mix_status_update': mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: note: in definition of macro 'STRFMT' 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:22: note: format string is defined here 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: note: in definition of macro 'STRFMT' 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:28: note: format string is defined here 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: note: in definition of macro 'STRFMT' 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:39: note: format string is defined here 67 | #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" | ~~~~^ | | | long unsigned int | %08x mix.c: In function 'mix_data_open': mix.c:2425:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2425 | if (msgf = fdopen (*fd,"r+b")) fseek (msgf,*size,SEEK_SET); | ^~~~ mix.c: In function 'mix_sortcache_open': mix.c:2489:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2489 | if (i = mail_msgno (stream,uid)) { | ^ mix.c: In function 'mix_sortcache_update': mix.c:2668:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2668 | if (sl = s->references) /* count length of references */ | ^~ mix.c: In function 'mix_read_record': mix.c:2723:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2723 | if (s = strchr (buf,'\012')) { | ^ mix.c: In function 'mix_copy': mix.c:1477:2: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1477 | ftruncate (fd,size); /* revert file */ | ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_append': mix.c:1594:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 1594 | ftruncate (fd,size); /* revert all writes to file*/ | ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_meta_update': mix.c:2209:5: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2209 | ftruncate (LOCAL->mfd,i); /* and tie off at that point */ | ^~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_index_update': mix.c:2255:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2255 | ftruncate (fileno (idxf),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2288:16: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2288 | if (ret) ftruncate (fileno (idxf),ftell (idxf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_status_update': mix.c:2335:4: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2335 | ftruncate (fileno (statf),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2369:16: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2369 | if (ret) ftruncate (fileno (statf),ftell (statf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_sortcache_update': mix.c:2697:16: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result] 2697 | if (ret) ftruncate (fileno (f),ftell (f)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_sortcache_open': mix.c:2640:8: warning: 'fd' may be used uninitialized in this function [-Wmaybe-uninitialized] 2640 | else fchmod (fd,sbuf.st_mode); | ^~~~~~~~~~~~~~~~~~~~~~~~ gcc -shared -Wl,-soname,libc-client.so.2007 -o libc-client.so.2007 osdep.so mail.so misc.so newsrc.so smanager.so utf8.so utf8aux.so siglocal.so dummy.so pseudo.so netmsg.so flstring.so fdstring.so rfc822.so nntp.so smtp.so imap4r1.so pop3.so unix.so mbx.so mmdf.so tenex.so mtx.so news.so phile.so mh.so mx.so mix.so `cat LDFLAGS` /usr/bin/ld: /tmp/libc-client.so.2007.R5yS8m.ltrans1.ltrans.o: in function `.L0 ': /builddir/build/BUILD/imap-2007f/c-client/osdep.c:338: warning: the use of `tmpnam' is dangerous, better use `mkstemp' ln -s libc-client.so.2007 libc-client.so make[3]: Leaving directory '/builddir/build/BUILD/imap-2007f/c-client' make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/c-client' echo lnp > OSTYPE touch rebuild sh -c 'rm -rf rebuild || true' Building bundled tools... cd mtest;make make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/mtest' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mtest.o mtest.c mtest.c: In function 'main': mtest.c:111:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 111 | if (suffix = strchr (tmp,',')) suffix[0] = '\0'; | ^~~~~~ mtest.c:132:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 132 | if (s = sm_read (&sdb)) { | ^ mtest.c:135:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 135 | while (s = sm_read (&sdb)); | ^ mtest.c: In function 'mm': mtest.c:165:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 165 | if (arg = strchr (cmd,' ')) *arg++ = '\0'; | ^~~ mtest.c:205:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 205 | if (s = sm_read (&sdb)) { | ^ mtest.c:208:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 208 | while (s = sm_read (&sdb)); | ^ mtest.c: In function 'overview_header': mtest.c:393:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 393 | if (i = elt->user_flags) { | ^ mtest.c: In function 'header': mtest.c:431:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 431 | if (i = cache->user_flags) { | ^ mtest.c: In function 'display_body': mtest.c:468:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 468 | if (par = body->parameter) do | ^~~ mtest.c:470:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 470 | while (par = par->next); | ^~~ mtest.c: In function 'status': mtest.c:525:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 525 | if (i = imap_cap (stream)->auth) { | ^ mtest.c:528:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 528 | while (auth = mail_lookup_auth (find_rightmost_bit (&i) + 1)) { | ^~~~ mtest.c:574:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 574 | if (i = imap_cap (stream)->extlevel) { | ^ mtest.c: In function 'prompt': mtest.c:598:3: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 598 | gets (txt); | ^~~~ | fgets mtest.c: In function 'mm_login': mtest.c:710:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 710 | if (s = strchr (user,'\n')) *s = '\0'; | ^ mtest.c: In function 'smtptest': mtest.c:797:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 797 | if (stream = smtp_open (hostlist,debug)) { | ^~~~~~ mtest.c:804:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 804 | if (stream = nntp_open (newslist,debug)) { | ^~~~~~ mtest.c: In function 'mm_login': mtest.c:708:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 708 | fgets (user,NETMAXUSER-1,stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest mtest.o /builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 `cat ../c-client/LDFLAGS` /usr/bin/ld: /tmp/mtest.OW0o7C.ltrans0.ltrans.o: in function `.L0 ': /builddir/build/BUILD/imap-2007f/mtest/mtest.c:598: warning: the `gets' function is dangerous and should not be used. make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/mtest' cd ipopd;make make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/ipopd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop2d.o ipop2d.c ipop2d.c: In function 'c_helo': ipop2d.c:299:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 299 | if (s = strchr (u,'*')) *s++ = '\0'; | ^ ipop2d.c: In function 'c_fold': ipop2d.c:358:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 358 | if (j = (stream = mail_open (stream,t,NIL)) ? stream->nmsgs : 0) { | ^ ipop2d.c: In function 'c_retr': ipop2d.c:432:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 432 | if (t = mail_fetch_text (stream,msg[current],NIL,&i,FT_RETURNSTRINGSTRUCT)) | ^ In file included from /usr/include/string.h:519, from ../c-client/osdep.h:44, from ../c-client/c-client.h:42, from ipop2d.c:36: In function 'strncpy', inlined from 'mm_login' at ipop2d.c:652:3: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop2d ipop2d.o /builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 `cat ../c-client/LDFLAGS` `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop3d.o ipop3d.c ipop3d.c: In function 'main': ipop3d.c:195:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 195 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ^ ipop3d.c:197:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 197 | if (i = !mail_parameters (NIL,GET_DISABLEPLAINTEXT,NIL)) | ^ ipop3d.c:222:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 222 | if (initial = strtok (NIL,"\015\012")) { | ^~~~~~~ ipop3d.c:275:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 275 | if (t = ssl_start_tls (pgmname)) { | ^ ipop3d.c:291:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 291 | if (s = strchr (t,':')) { | ^ ipop3d.c: In function 'pass_login': ipop3d.c:664:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 664 | if (t = strchr (user,'*')) *t++ ='\0'; | ^ ipop3d.c: In function 'mbxopen': ipop3d.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (j = stream->nmsgs) { /* if mailbox non-empty */ | ^ In file included from /usr/include/string.h:519, from ../c-client/osdep.h:44, from ../c-client/c-client.h:42, from ipop3d.c:35: In function 'strncpy', inlined from 'mm_login' at ipop3d.c:1019:3: /usr/include/bits/string_fortified.h:106:10: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop3d ipop3d.o /builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 `cat ../c-client/LDFLAGS` make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/ipopd' cd imapd;make make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/imapd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/nologin\" -c -o imapd.o imapd.c imapd.c: In function 'main': imapd.c:327:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 327 | if (s = strchr (proxy,'\n')) *s = '\0'; | ^ imapd.c:400:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 400 | if (t = strchr (cmdbuf,' ')) *t = '\0'; | ^ imapd.c:514:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 514 | else if (user = cpystr (mail_auth (s,imap_responder,argc,argv))) { | ^~~~ imapd.c:574:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 574 | if (s = strchr (user,'*')) *s++ ='\0'; | ^ imapd.c:592:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 592 | else if (lsterr = ssl_start_tls (pgmname)) response = lose; | ^~~~~~ imapd.c:731:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 731 | } while (s = strtok (NIL," ")); | ^ imapd.c:741:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 741 | else if (slst = mail_sort (stream,cs,spg,pgm,uid ? SE_UID:NIL)) { | ^~~~ imapd.c:770:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 770 | if (thr = mail_thread (stream,s,cs,spg,uid ? SE_UID : NIL)) { | ^~~ imapd.c:848:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 848 | if (s = snarf (&arg)) charset = cpystr (s); | ^ imapd.c:966:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 966 | if (t = strpbrk (tmp,"\r\n")) *t = '\0'; | ^ imapd.c:1132:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1132 | } while (t = strtok (NIL," ")); | ^ imapd.c:1217:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1217 | if (n = ns[i]) { | ^ imapd.c:1237:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1237 | if (p = n->param) do { | ^ imapd.c:1244:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1244 | } while (p = p->next); | ^ imapd.c:1246:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1246 | } while (n = n->next); | ^ imapd.c:1379:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1379 | while (i = (litplus.size > MAILTMPLEN) ? MAILTMPLEN : litplus.size) { | ^ imapd.c:1394:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1394 | if (t = strchr (tmp,'\012')) { | ^ imapd.c:1498:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1498 | if (lgoh = (logouthook_t) mail_parameters (NIL,GET_LOGOUTHOOK,NIL)) | ^~~~ imapd.c: In function 'parse_astring': imapd.c:2042:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2042 | if (*size = i) break; /* got atom if non-empty */ | ^ imapd.c:2099:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2099 | if (*del = *t) { /* have a delimiter? */ | ^ imapd.c: In function 'snarf_list': imapd.c:2177:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2177 | if (c = *t) { /* have a delimiter? */ | ^ imapd.c: In function 'parse_stringlist': imapd.c:2218:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2218 | if (t = *s) { /* need to reload strtok() state? */ | ^ imapd.c: In function 'fetch_work': imapd.c:2646:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2646 | if (list = (*t == '(')) t++; /* skip open paren */ | ^~~~ imapd.c:2647:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2647 | if (s = strtok (t," ")) do { /* parse attribute list */ | ^ imapd.c: In function 'fetch_body_part_binary': imapd.c:2968:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2968 | if (cst.data = rfc822_base64 (st.data,st.size,&cst.size)) break; | ^~~ imapd.c:2976:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2976 | if (cst.data = rfc822_qprint (st.data,st.size,&cst.size)) break; | ^~~ imapd.c: In function 'fetch_flags': imapd.c:3172:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3172 | if (u = elt->user_flags) do /* any user flags? */ | ^ imapd.c:3173:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3173 | if (t = stream->user_flags[find_rightmost_bit (&u)]) put_flag (&c,t); | ^ imapd.c: In function 'fetch_rfc822_text': imapd.c:3312:9: warning: unused variable 'f' [-Wunused-variable] 3312 | int f = mail_elt (stream,i)->seen; | ^ imapd.c: In function 'pbodystructure': imapd.c:3366:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3366 | if (part = body->nested.part) | ^~~~ imapd.c: In function 'pbody': imapd.c:3451:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3451 | if (part = body->nested.part) | ^~~~ imapd.c: In function 'pparam': imapd.c:3505:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3505 | if (param = param->next) PBOUT (' '); | ^~~~~ imapd.c: In function 'paddr': imapd.c:3531:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3531 | } while (a = a->next); /* until end of address */ | ^ imapd.c: In function 'pset': imapd.c:3550:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3550 | if (cur = cur->next) PBOUT (','); | ^~~ imapd.c: In function 'pastringlist': imapd.c:3690:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3690 | } while (s = s->next); | ^ imapd.c: In function 'pnstringorlist': imapd.c:3707:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3707 | } while (s = s->next); | ^ imapd.c: In function 'ptext': imapd.c:3765:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3765 | if (s = txt->data) while (i && ((PBOUT ((c = *s++) ? c : 0x80) != EOF))) --i; | ^ imapd.c: In function 'pthread': imapd.c:3782:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3782 | if (t = thr->next) { /* any subsequent nodes? */ | ^ imapd.c: In function 'pcapability': imapd.c:3830:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3830 | if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); | ^ imapd.c: In function 'proxycopy': imapd.c:4025:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (mail_elt (stream,i)->spare = mail_elt (stream,i)->sequence) { | ^~~~~~~~ imapd.c: In function 'proxy_append': imapd.c:4080:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4080 | if (i = elt->user_flags) do | ^ imapd.c: In function 'append_msg': imapd.c:4112:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4112 | if (t = ad->flags) fs_give ((void **) &ad->flags); | ^ imapd.c:4113:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4113 | if (t = ad->date) fs_give ((void **) &ad->date); | ^ imapd.c:4114:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4114 | if (t = ad->msg) fs_give ((void **) &ad->msg); | ^ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/nologin\" -o imapd imapd.o /builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 `cat ../c-client/LDFLAGS` make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/imapd' cd mailutil;make make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/mailutil' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mailutil.o mailutil.c mailutil.c: In function 'main': mailutil.c:284:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 284 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ^~~~~~ mailutil.c:295:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 295 | else if (source = mail_open (NIL,src,((i || rwcopyp) ? NIL : OP_READONLY) | | ^~~~~~ mailutil.c:376:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 376 | if (t = strchr (tmp+1,'\n')) *t = '\0'; | ^ mailutil.c:384:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 384 | while (c = *t1++) { /* swap delimiters then */ | ^ mailutil.c:396:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 396 | if (source = mail_open (source,tmp+1,(debugp ? OP_DEBUG : NIL) | | ^~~~~~ mailutil.c: In function 'mbxcopy': mailutil.c:595:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 595 | if (s = strchr (tmp,'\n')) *s = '\0'; | ^ mailutil.c:624:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 624 | for (i = 0; i < NUSERFLAGS; ++i) if (t = source->user_flags[i]) { | ^ mailutil.c: In function 'mm_login': mailutil.c:895:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 895 | if (s = strchr (username,'\n')) *s = '\0'; | ^ mailutil.c: In function 'mbxcopy': mailutil.c:594:2: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 594 | fgets (tmp,MAILTMPLEN-1,stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mailutil.c: In function 'mm_login': mailutil.c:893:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 893 | fgets (username,NETMAXUSER-1,stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mailutil mailutil.o /builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 `cat ../c-client/LDFLAGS` make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/mailutil' cd mlock;make || true make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/mlock' `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -c -o mlock.o mlock.c mlock.c: In function 'die': mlock.c:60:3: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 60 | write (1,"?",1); /* indicate "impossible" failure */ | ^~~~~ | fwrite mlock.c: In function 'main': mlock.c:75:31: warning: implicit declaration of function 'getegid'; did you mean 'getgrgid'? [-Wimplicit-function-declaration] 75 | if (!grp || (grp->gr_gid != getegid ())) | ^~~~~~~ | getgrgid mlock.c:94:3: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] 94 | chdir (dir); | ^~~~~ mlock.c:113:30: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] 113 | if (!stat (lock,&sb) && (time (0) > (sb.st_ctime + LOCKTIMEOUT * 60))) | ^~~~ mlock.c:114:7: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 114 | unlink (lock); /* time out lock if enough time has passed */ | ^~~~~~ mlock.c:123:23: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] 123 | (unsigned long) getpid ()); | ^~~~~~ mlock.c:125:5: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] 125 | gethostname (hitch + len,MAXHOSTNAMELEN); | ^~~~~~~~~~~ | gethostbyname mlock.c:132:7: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 132 | close (ld); /* close the hitching-post */ | ^~~~~ | pclose mlock.c:138:11: warning: implicit declaration of function 'link' [-Wimplicit-function-declaration] 138 | i = link (hitch,lock) ? errno : 0; | ^~~~ mlock.c:161:20: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 161 | if (tries--) sleep (1); /* sleep 1 second and try again */ | ^~~~~ mlock.c:169:3: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 169 | read (0,tmp,1); /* read continue signal from parent */ | ^~~~ | fread `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -o mlock mlock.o make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/mlock' cd dmail;make || true make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/dmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dmail.o dmail.c dmail.c: In function 'file_string_setpos': dmail.c:120:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 120 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ dmail.c: In function 'main': dmail.c:162:35: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] 162 | if (s[2] && ((s[2] == '-') || isdigit (s[2]))) precedence = atol (s + 2); | ^~~~~~~ dmail.c: In function 'deliver': dmail.c:229:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 229 | if (mailbox = strchr (user,'+')) { | ^~~~~~~ dmail.c: In function 'file_string_setpos': dmail.c:123:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 123 | fread (s->curpos,sizeof (char),(unsigned int) s->cursize,(FILE *) s->data); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dmail.c: In function 'delivery_unsafe': dmail.c:443:5: warning: 'type' may be used uninitialized in this function [-Wmaybe-uninitialized] 443 | sprintf (tmp + strlen (tmp),"file type %07o",(unsigned int) type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dquota.o dquota.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from ../c-client/osdep.h:43, from ../c-client/c-client.h:42, from dquota.c:29: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o dmail dmail.o dquota.o /builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 `cat ../c-client/LDFLAGS` make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/dmail' cd tmail;make || true make[2]: Entering directory '/builddir/build/BUILD/imap-2007f/tmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tmail.o tmail.c tmail.c: In function 'file_string_setpos': tmail.c:121:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 121 | if (s->cursize = min (s->chunksize,SIZE (s))) { | ^ tmail.c: In function 'main': tmail.c:171:37: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] 171 | if (s[2] && ((s[2] == '-') || isdigit (s[2]))) precedence = atol (s + 2); | ^~~~~~~ tmail.c: In function 'getusername': tmail.c:605:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 605 | if (*t = strchr (s,'+')) { /* have a mailbox specifier? */ | ^ tmail.c: In function 'file_string_setpos': tmail.c:124:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 124 | fread (s->curpos,sizeof (char),(unsigned int) s->cursize,(FILE *) s->data); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tmail.c: In function 'delivery_unsafe': tmail.c:564:5: warning: 'type' may be used uninitialized in this function [-Wmaybe-uninitialized] 564 | sprintf (tmp + strlen (tmp),"file type %07o",(unsigned int) type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tquota.o tquota.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from ../c-client/osdep.h:43, from ../c-client/c-client.h:42, from tquota.c:29: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o tmail tmail.o tquota.o /builddir/build/BUILD/imap-2007f/c-client/libc-client.so.2007 `cat ../c-client/LDFLAGS` make[2]: Leaving directory '/builddir/build/BUILD/imap-2007f/tmail' make[1]: Leaving directory '/builddir/build/BUILD/imap-2007f' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.PXA0fN + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64 + cd imap-2007f + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/lib64/ + install -p -m644 ./c-client/c-client.a /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/lib64/ + ln -s c-client.a /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/lib64/libc-client.a + install -p -m755 ./c-client/libc-client.so.2007 /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/lib64/ + touch c-client.cf + install -p -m644 -D c-client.cf /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/c-client.cf + ln -s libc-client.so.2007 /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/lib64/libc-client.so + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/include/imap/ + install -m644 ./c-client/c-client.h ./c-client/dummy.h ./c-client/env.h ./c-client/env_unix.h ./c-client/fdstring.h ./c-client/flockcyg.h ./c-client/flocksim.h ./c-client/flstring.h ./c-client/fs.h ./c-client/ftl.h ./c-client/imap4r1.h ./c-client/linkage.h ./c-client/mail.h ./c-client/misc.h ./c-client/netmsg.h ./c-client/newsrc.h ./c-client/nl.h ./c-client/nntp.h ./c-client/os_a32.h ./c-client/os_a41.h ./c-client/os_a52.h ./c-client/os_aix.h ./c-client/os_aos.h ./c-client/os_art.h ./c-client/os_asv.h ./c-client/os_aux.h ./c-client/os_bsd.h ./c-client/os_bsf.h ./c-client/os_bsi.h ./c-client/os_cvx.h ./c-client/os_cyg.h ./c-client/os_d-g.h ./c-client/os_do4.h ./c-client/os_drs.h ./c-client/os_dyn.h ./c-client/os_hpp.h ./c-client/os_isc.h ./c-client/os_lnx.h ./c-client/os_lyn.h ./c-client/os_mct.h ./c-client/os_mnt.h ./c-client/os_nto.h ./c-client/os_nxt.h ./c-client/os_os4.h ./c-client/os_osf.h ./c-client/os_osx.h ./c-client/os_ptx.h ./c-client/os_pyr.h ./c-client/os_qnx.h ./c-client/os_s40.h ./c-client/os_sc5.h ./c-client/os_sco.h ./c-client/os_sgi.h ./c-client/os_shp.h ./c-client/os_slx.h ./c-client/os_soln.h ./c-client/os_solo.h ./c-client/os_sos.h ./c-client/os_sua.h ./c-client/os_sun.h ./c-client/os_sv2.h ./c-client/os_sv4.h ./c-client/os_ult.h ./c-client/os_vu2.h ./c-client/osdep.h ./c-client/pseudo.h ./c-client/rfc822.h ./c-client/smtp.h ./c-client/sslio.h ./c-client/tcp.h ./c-client/tcp_unix.h ./c-client/unix.h ./c-client/utf8.h ./c-client/utf8aux.h /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/include/imap/ + install -m644 ./c-client/linkage.c /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/include/imap/ + install -m644 ./src/osdep/tops-20/shortsym.h /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/include/imap/ + install -p -D -m644 src/imapd/imapd.8 /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/man/man8/imapd.8uw + install -p -D -m644 src/ipopd/ipopd.8 /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/man/man8/ipopd.8uw + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin + install -p -m755 ipopd/ipop2d ipopd/ipop3d /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/ + install -p -m755 imapd/imapd /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/ + install -p -m755 mlock/mlock /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/ + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/ + install -p -m755 dmail/dmail mailutil/mailutil mtest/mtest tmail/tmail /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/ + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/man/man1/ + install -p -m644 src/dmail/dmail.1 src/mailutil/mailutil.1 src/tmail/tmail.1 /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/man/man1/ + install -p -m644 -D imap.pam /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/pam.d/imap + install -p -m644 -D imap.pam /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/pam.d/pop + install -p -m644 -D /builddir/build/SOURCES/imap-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/xinetd.d/imap + install -p -m644 -D /builddir/build/SOURCES/imaps-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/xinetd.d/imaps + install -p -m644 -D /builddir/build/SOURCES/ipop2-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/xinetd.d/ipop2 + install -p -m644 -D /builddir/build/SOURCES/ipop3-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/xinetd.d/ipop3 + install -p -m644 -D /builddir/build/SOURCES/pop3s-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/xinetd.d/pop3s + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/pki/tls/certs + touch /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/pki/tls/certs/imapd.pem /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/etc/pki/tls/certs/ipop3d.pem + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 2007f-26.fc33 --unique-debug-suffix -2007f-26.fc33.riscv64 --unique-debug-src-base uw-imap-2007f-26.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/imap-2007f explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/dmail explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/mailutil explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/tmail extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/tmail extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/mailutil explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/mtest extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/dmail extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/bin/mtest explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/lib64/libc-client.so.2007 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/imapd explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/ipop2d explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/ipop3d extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/imapd extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/lib64/libc-client.so.2007 extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/ipop2d extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/ipop3d explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/mlock extracting debug info from /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/sbin/mlock original debug info size: 8248kB, size after compression: 7932kB /usr/lib/rpm/sepdebugcrcfix: Updated 9 CRC32s, 0 CRC32s did match. 7347 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: uw-imap-2007f-26.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.YsdC6M + umask 022 + cd /builddir/build/BUILD + cd imap-2007f + DOCDIR=/builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/uw-imap + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/uw-imap + cp -pr docs/SSLBUILD /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/uw-imap + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(uw-imap) = 2007f-26.fc33 uw-imap = 2007f-26.fc33 uw-imap(riscv-64) = 2007f-26.fc33 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh openssl Requires(postun): /bin/sh Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc-client.so.2007()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Obsoletes: imap < 1:2007f Processing files: libc-client-2007f-26.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.DwNUWO + umask 022 + cd /builddir/build/BUILD + cd imap-2007f + DOCDIR=/builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/libc-client + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/libc-client + cp -pr LICENSE.txt /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/libc-client + cp -pr NOTICE /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/libc-client + cp -pr SUPPORT /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/libc-client + cp -pr docs/RELNOTES /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/libc-client + cp -pr docs/FAQ.txt docs/IPv6.txt docs/bugs.txt docs/calendar.txt docs/commndmt.txt docs/drivers.txt docs/formats.txt docs/imaprc.txt docs/internal.txt docs/locking.txt docs/md5.txt docs/mixfmt.txt docs/naming.txt /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64/usr/share/doc/libc-client + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(libc-client) = 2007f-26.fc33 libc-client = 2007f-26.fc33 libc-client(riscv-64) = 2007f-26.fc33 libc-client.so.2007()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libgssapi_krb5.so.2()(64bit) libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) libkrb5.so.3()(64bit) libkrb5.so.3(krb5_3_MIT)(64bit) libpam.so.0()(64bit) libpam.so.0(LIBPAM_1.0)(64bit) libssl.so.1.1()(64bit) libssl.so.1.1(OPENSSL_1_1_0)(64bit) rtld(GNU_HASH) Obsoletes: libc-client2004d < 1:2004d-2 libc-client2004e < 2004e-2 libc-client2004g < 2004g-7 libc-client2006 < 2006k-2 libc-client2007 < 2007-2 Processing files: uw-imap-devel-2007f-26.fc33.riscv64 Provides: libc-client-devel = 2007f-26.fc33 uw-imap-devel = 2007f-26.fc33 uw-imap-devel(riscv-64) = 2007f-26.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc-client.so.2007()(64bit) Obsoletes: imap-devel < 1:2007f libc-client-devel < 2007f-26.fc33 Processing files: uw-imap-static-2007f-26.fc33.riscv64 Provides: uw-imap-static = 2007f-26.fc33 uw-imap-static(riscv-64) = 2007f-26.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: uw-imap-utils-2007f-26.fc33.riscv64 Provides: uw-imap-utils = 2007f-26.fc33 uw-imap-utils(riscv-64) = 2007f-26.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc-client.so.2007()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Obsoletes: imap-utils < 1:2007f Processing files: uw-imap-debugsource-2007f-26.fc33.riscv64 Provides: uw-imap-debugsource = 2007f-26.fc33 uw-imap-debugsource(riscv-64) = 2007f-26.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: uw-imap-debuginfo-2007f-26.fc33.riscv64 Provides: debuginfo(build-id) = 251f41a219f828b4052737ceb1b83b30774e3d1b debuginfo(build-id) = c25ef3a702d2fa3af33f4c624ea6ea06777fe868 debuginfo(build-id) = e68276b38d20f01114d54955051c19c8b143d021 uw-imap-debuginfo = 2007f-26.fc33 uw-imap-debuginfo(riscv-64) = 2007f-26.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: uw-imap-debugsource(riscv-64) = 2007f-26.fc33 Processing files: libc-client-debuginfo-2007f-26.fc33.riscv64 Provides: debuginfo(build-id) = 753874c3b18ecc426d29cbd85a1661a0d8536207 libc-client-debuginfo = 2007f-26.fc33 libc-client-debuginfo(riscv-64) = 2007f-26.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: uw-imap-debugsource(riscv-64) = 2007f-26.fc33 Processing files: uw-imap-utils-debuginfo-2007f-26.fc33.riscv64 Provides: debuginfo(build-id) = 0eeaa7ddb205e212d22cae1ac2ca11d3cf205593 debuginfo(build-id) = 162120365d32ec381c0581b9a2cff6b8ddd4c203 debuginfo(build-id) = a02d2155a17064fa46aa732d2c49f0e9b2d44a6f debuginfo(build-id) = a63415e95cd72f17d8e406b135a0b34ab0cdcc1d debuginfo(build-id) = dfadb1afea78fac43d9dc52d9db0e997c1b31264 uw-imap-utils-debuginfo = 2007f-26.fc33 uw-imap-utils-debuginfo(riscv-64) = 2007f-26.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: uw-imap-debugsource(riscv-64) = 2007f-26.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64 Wrote: /builddir/build/RPMS/libc-client-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/uw-imap-debuginfo-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/uw-imap-utils-debuginfo-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/libc-client-debuginfo-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/uw-imap-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/uw-imap-devel-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/uw-imap-utils-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/uw-imap-debugsource-2007f-26.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/uw-imap-static-2007f-26.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.7QgUpN + umask 022 + cd /builddir/build/BUILD + cd imap-2007f + /usr/bin/rm -rf /builddir/build/BUILDROOT/uw-imap-2007f-26.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0