+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/uw-imap.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild warning: Macro expanded in comment on line 14: %{?rhel} == 6 warning: Macro expanded in comment on line 134: %{version}-%{release} Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8VUlKr + 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). + echo 'Patch #5 (imap-2007e-overflow.patch):' 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). + echo 'Patch #10 (imap-2007e-authmd5.patch):' 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 + echo 'Patch #12 (imap-2007f-format-security.patch):' 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 + echo 'Patch #13 (imap-2007e-poll.patch):' 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 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tb7PQI + 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 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + EXTRACFLAGS=' -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export 'EXTRACFLAGS= -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing' + EXTRACFLAGS=' -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing' + export 'EXTRACFLAGS= -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing -Wno-pointer-sign' + EXTRACFLAGS=' -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing -Wno-pointer-sign' + echo -e 'y\ny' ++ pwd + make -j4 lnp IP=6 'EXTRACFLAGS= -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing -Wno-pointer-sign' EXTRALDFLAGS= 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 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing -Wno-pointer-sign' EXTRALDFLAGS='' 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 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing -Wno-pointer-sign'\ EXTRALDFLAGS=''\ 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' make build EXTRACFLAGS='-fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fno-strict-aliasing -Wno-pointer-sign' EXTRALDFLAGS='' 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="-lpam -ldl" make[3]: Entering directory '/builddir/build/BUILD/imap-2007f/c-client' 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 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -lpam -ldl > 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 >> 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:0, from /usr/include/stdlib.h:25, from osdep.h:43, from osdep.c:31: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from auths.c:2:0, 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] 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] 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=] SERVER_LOG ("Failed to acquire credentials for %s",buf.value); ^ ~~~~~ auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) ^ auth_gss.c:406:16: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] SERVER_LOG ("Unknown GSSAPI failure: %s",resp.value); ^ ~~~~~~ auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) ^ auth_gss.c:414:14: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); ^ ~~~~~~ auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) ^ In file included from auths.c:3:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_ext.c:66:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) ^~~~~~~~~ In file included from auths.c:4:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_md5.c:120:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (user = (*responder) (chal,cl = strlen (chal),NIL)) { ^~~~ auth_md5.c:157:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (hash = strrchr (user,' ')) { ^~~~ auth_md5.c:160:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^~~~~~~~ auth_md5.c:162:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^~~~~~~~ auth_md5.c:240:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ^ In file included from auths.c:5:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_pla.c:94:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (aid = (*responder) ("",0,&len)) { ^~~ In file included from auths.c:6:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_log.c:81:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { ^~~~ auth_log.c:108:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { ^~~~ auth_log.c:110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^~~~~~~~ In file included from osdep.c:51:0: env_unix.c: In function 'do_date': env_unix.c:514:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = auth_md5_pwd (user)) { ^ env_unix.c:676:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strrchr (base->lock,'/')) { ^ In file included from osdep.c:31:0: env_unix.c: In function 'lock_work': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ env_unix.c:1374:27: note: in expansion of macro 'flock' if (op & LOCK_NB) i = flock (fd,op); ^~~~~ In file included from osdep.c:51:0: env_unix.c: In function 'dorc': env_unix.c:1582:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (d = mail_valid (NIL,"INBOX",NIL)) { ^ env_unix.c:1595:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) ^ In file included from osdep.c:54:0: tcp_unix.c: In function 'tcp_open': tcp_unix.c:175:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { ^~~ tcp_unix.c:215:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] size_t adrlen,sadrlen,len; ^~~~~~~ osdep.c: In function 'checkpw': osdep.c:164:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), ^~ osdep.c: In function 'ssl_start_work': osdep.c:471:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) ^ osdep.c:475:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { ^~~~ osdep.c:484:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), ^~~ osdep.c: In function 'ssl_validate_cert': osdep.c:564:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (s = strstr (cert->name,"/CN=")) { ^ osdep.c:565:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (s += 4,'/')) *t = '\0'; ^ osdep.c: In function 'ssl_server_init': osdep.c:995:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (i = ERR_get_error ()) /* SSL failure */ ^ osdep.c: In function 'ssl_genkey': osdep.c:1017:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (i = ERR_get_error ()) ^ In file included from auths.c:4:0, 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] read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:51:0: 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] (ret = env_init (user,home))) chdir (myhomedir ()); ^~~~~~~~~~~~~~~~~~~~ ======================================================================== 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] 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] if (ret = (void *) d) d->flags &= ~DR_DISABLE; ^~~ mail.c:390:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) d) d->flags |= DR_DISABLE; ^~~ mail.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_DISABLE; ^~~ mail.c:400:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_DISABLE; ^~~ mail.c:405:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_HIDE; ^~~ mail.c:410:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_HIDE; ^~~ mail.c:644:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = smtp_parameters (function,value)) ret = r; ^ mail.c:645:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = env_parameters (function,value)) ret = r; ^ mail.c:646:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = tcp_parameters (function,value)) ret = r; ^ mail.c:648:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = (*stream->dtb->parameters) (function,value)) ret = r; ^ mail.c:652:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (t = strpbrk (s = t,"/:=")) { ^ mail.c:784:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (s = strpbrk (mailbox,"\015\012")) { ^ mail.c:1012:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (stream = mail_open (stream,s+1,options)) { ^~~~~~ mail.c:1216:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = mail_open (stream,mb.mailbox,options)) { ^~~~~~ mail.c:1243:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^~~~~ mail.c:1778:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] while (lines = lines->next); ^~~~~ mail.c: In function 'mail_filter': mail.c:3371:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (body = body->nested.msg->body) ^~~~ mail.c:3771:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (st.data = (unsigned char *) ^~ mail.c:3778:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] STRINGLIST **sc = st; ^~ mail.c: In function 'mail_search_keyword': mail.c:3859:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } 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] 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] 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] 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] 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] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4372:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4380:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4387:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^~~ mail.c:4405:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4413:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4420:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^~~ mail.c:4438:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4446:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4453:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^~~ mail.c:4472:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { ^~~ mail.c:4951:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (t = mail_thread_parse_msgid (s,&s)) { ^ mail.c:5187:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ ^ newsrc.c:368:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = newsrc_create (stream,NIL)) bf = NIL; ^ newsrc.c:384:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (f = fopen (db,"r")) { /* make sure not already there */ ^ smanager.c:48:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (f = fopen (sbname,"r")) *sdb = (void *) f; ^ smanager.c:123:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] static const CHARSET utf8_csvalid[] = { ^ utf8.c:347:38: warning: missing braces around initializer [-Wmissing-braces] 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] 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] 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] 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] if (m = (struct decomposemore *) *more) switch (m->type) { ^ utf8.c:2418:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { ^ utf8.c:2448:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { ^~ utf8.c:2533:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] } while (st = st->next); ^~ utf8aux.c: In function 'utf8_mime2text': utf8aux.c:136:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (s = strchr (test,'/')) *++s = '\0'; ^ dummy.c:170:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ dummy.c:176:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dummy.c: In function 'dummy_delete': dummy.c:523:48: warning: '%.80s' directive argument is null [-Wformat-overflow=] sprintf (tmp,"Can't delete - invalid name: %.80s",s); ^~~~~ 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] if (f = fopen (tmp,"wb+")) unlink (tmp); ^ netmsg.c:73:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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:0, from /usr/include/stdlib.h:25, from osdep.h:43, from fdstring.c:30: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # 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] 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] 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] 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] if (t = d = strchr (tmp,':')) { ^ rfc822.c:204:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *d++) if (c != ' ') *t++ = c; ^ rfc822.c:218:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = rfc822_parse_phrase (d)) *t = '\0'; ^ rfc822.c:229:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] else if (t = rfc822_parse_word (string,wspecials)) { ^ rfc822.c:1108:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] while (s = net_getline (LOCAL->nntpstream->netstream)) { ^ nntp.c:358:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] if (t = strchr (ov->subject,'\t')) { ^ nntp.c:1042:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->date = strchr (t,'\t')) { ^~ nntp.c:1049:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->message_id = strchr (ov->date,'\t')) { ^~ nntp.c:1053:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->references = strchr (ov->message_id,'\t')) { ^~ nntp.c:1057:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (ov->references,'\t')) { ^ nntp.c:1062:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (t,'\t')) { ^ nntp.c:1066:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] #define LOCAL ((NNTPLOCAL *) stream->local) ^ nntp.c:1151:11: note: in expansion of macro 'LOCAL' 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] 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] if (set = pgm->msgno) { /* must be inside this sequence */ ^~~ nntp.c:1277:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (t = strchr (v,'\t')) { ^ nntp.c:1524:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { ^~~ nntp.c:1529:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (netstream = /* try to open ordinary connection */ ^~~~~~~~~ nntp.c:1720:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream->netstream->stream = ^~~~~~ nntp.c: In function 'nntp_extensions': nntp.c:1817:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strstr (env->date," (")) *s = NIL; ^ nntp.c:1887:8: warning: unused variable 'retry' [-Wunused-variable] long retry = NIL; ^~~~~ nntp.c:1886:8: warning: unused variable 'error' [-Wunused-variable] long error = NIL; ^~~~~ nntp.c: In function 'nntp_soutr': nntp.c:2214:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] fread (LOCAL->over_fmt = (char *) fs_get ((size_t) k + 3), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (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] fread (elt->private.msg.header.text.data = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (unsigned char *) fs_get ((size_t) *size + 3), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (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] 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] 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] 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] 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] 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] 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] if (thr = LOCAL->cap.threader) while (t = thr) { ^~~ imap4r1.c:1317:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (j = (set->last == 0xffffffff) ? stream->nmsgs : ^ imap4r1.c:1522:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] if (thr = LOCAL->cap.threader) while (t = thr) { ^~~ imap4r1.c:2705:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (arglst = args) while (arg = *arglst++) { ^~~~~~ imap4r1.c:2927:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (arglst = args) while (arg = *arglst++) { ^~~ imap4r1.c:2947:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] while (list = list->next); ^~~~ imap4r1.c:2967:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (t = map->flags) { /* flags given? */ ^ imap4r1.c:3087:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_astring (stream,tag,&s,&st,NIL, ^~~~~ imap4r1.c:3091:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,map->message)) ^~~~~ imap4r1.c:3121:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (hdr = pgm->header) do { ^~~ imap4r1.c:3357:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] } while (hdr = hdr->next); ^~~ imap4r1.c:3365:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] while (prop = (strtok_r (t," )",&r))) { ^~~~ imap4r1.c:3808:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s = t,' ')) *t++ = '\0'; ^ imap4r1.c:3907:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = strtok_r (NIL," )",&r)); ^ imap4r1.c:3911:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = strtoul (t,NIL,10)) { ^ imap4r1.c:3920:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:3944:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { ^ imap4r1.c:4008:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strtok_r (reply->text+1," ",&r)) do { ^ imap4r1.c:4017:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:4028:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = imap_parse_astring (stream,&s,reply,&j)) { ^ imap4r1.c:4046:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { /* parse namespace results */ ^ imap4r1.c:4166:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s,' ')) t = s; ^ imap4r1.c:4169:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) ^~~ imap4r1.c:4286:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strtok_r (s+1," ",&r)) do { ^ imap4r1.c:4300:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] if (thr = LOCAL->cap.threader) while (th = thr) { ^~~ imap4r1.c:5477:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (th = thr) { ^~ imap4r1.c:5520:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] #define LOCAL ((POP3LOCAL *) stream->local) ^ pop3.c:429:11: note: in expansion of macro 'LOCAL' 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] if (args = strchr (t,' ')) *args++ = '\0'; ^~~~ pop3.c:510:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr(args,' ')){/* separate time from possible USER */ ^ pop3.c:521:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] fread (elt->private.msg.header.text.data = (unsigned char *) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs_get ((size_t) elt->private.msg.header.text.size + 1), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (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 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime unix.c: In function 'unix_rename': unix.c:418:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ In file included from unix.c:46:0: unix.c: In function 'unix_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ unix.c:530:5: note: in expansion of macro 'flock' 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] if (ret = (sequence ? ((options & EX_UID) ? ^~~ unix.c:852:21: warning: unused variable 'elt' [-Wunused-variable] MESSAGECACHE *elt = mail_elt (stream,i); ^~~ unix.c: In function 'unix_append': unix.c:1037:17: warning: unused variable 'uidlocation' [-Wunused-variable] 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] 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] else if (i = sbuf.st_size - LOCAL->filesize) { ^ unix.c:1770:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ unix.c:2327:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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] 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] 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] 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] 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] 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] 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] 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] 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] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2629:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2640:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (sfd,0); /* truncate sysinbox to zero bytes */ ^~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mbx.c In file included from mbx.c:42:0: mbx.c: In function 'mbx_isvalid': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mbx.c:233:12: note: in expansion of macro 'flock' if (flock (fd,LOCK_SH) || ^~~~~ mbx.c:303:7: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 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] if (s = strrchr (tmp,'/')) { ^ mbx.c: In function 'mbx_ping': mbx.c:825:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (ret = mbx_parse (stream)) { ^~~ mbx.c:829:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (ret = sequence ? ((options & EX_UID) ? ^~~ mbx.c:895:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (j = hdrlen + txtlen) { ^ mbx.c: In function 'mbx_copy': mbx.c:1035:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = stream->user_flags[find_rightmost_bit (&j)]) ^ mbx.c:1044:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (m = (LOCAL->filesize -= delta) - pos) { ^ mbx.c:1795:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1060:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1781:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime mmdf.c: In function 'mmdf_rename': mmdf.c:557:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ In file included from mmdf.c:34:0: mmdf.c: In function 'mmdf_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mmdf.c:669:5: note: in expansion of macro 'flock' 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] if (ret = (sequence ? ((options & EX_UID) ? ^~~ mmdf.c:991:21: warning: unused variable 'elt' [-Wunused-variable] MESSAGECACHE *elt = mail_elt (stream,i); ^~~ mmdf.c: In function 'mmdf_append': mmdf.c:1173:17: warning: unused variable 'uidlocation' [-Wunused-variable] 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] 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] else if (i = sbuf.st_size - LOCAL->filesize) { ^ mmdf.c:1934:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ mmdf.c:2473:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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] 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] 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] 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] 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] 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] 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] 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 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from tenex.c:47:0: tenex.c: In function 'tenex_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ tenex.c:315:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ tenex.c:324:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:629:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] 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] 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] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:917:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1016:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] 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] utime (file,tp); /* set the times */ ^~~~~ utimes In file included from mtx.c:42:0: mtx.c: In function 'mtx_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mtx.c:308:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ mtx.c:317:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:827:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:926:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] if (s = strchr (pattern,'.')) *++s = '\0'; ^ news.c:234:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] } 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] 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] while (s = strchr (s,'.')) *s = '/'; ^ news.c:370:36: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c:370:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c: In function 'news_select': news.c:409:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] if (s = strchr (test,'/')) *++s = '\0'; ^ mh.c:362:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ mh.c:369:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (file,'/')) { ^ mh.c: In function 'mh_lsub': mh.c:407:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (dp = opendir (curdir)) { /* open directory */ ^~ mh.c:432:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (dirp = opendir (tmp)) { /* open directory */ ^~~~ mh.c:519:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:865:56: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:889:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mh.c:939:17: warning: too many arguments for format [-Wformat-extra-args] 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] 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] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:1131:47: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:1138:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mh.c:1102:10: warning: variable 'size' set but not used [-Wunused-but-set-variable] 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] 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] 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] 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] 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] 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] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:277:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:289:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = (void *) names) fs_give ((void **) &a); ^ mx.c: In function 'mx_create': mx.c:348:7: warning: unused variable 'fd' [-Wunused-variable] int fd; ^~ mx.c: In function 'mx_delete': mx.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^~~~ mx.c:398:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strrchr (mx_file (tmp1,newname),'/')) { ^ mx.c:462:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:462:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:469:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:731:61: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:752:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mx.c:803:17: warning: too many arguments for format [-Wformat-extra-args] 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] 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] 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] if (j = elt->user_flags) do ^ mx.c:950:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = stream->user_flags[find_rightmost_bit (&j)]) ^ mx.c:960:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] while (c = *s++) if (!isdigit (c)) return NIL; ^ In file included from mx.c:35:0: mx.c: In function 'mx_lockindex': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mx.c:1173:5: note: in expansion of macro 'flock' flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ ^~~~~ mx.c:1189:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:324:49: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:336:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^ mix.c:63:16: note: in definition of macro 'MTAFMT' #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mix.c:33:0: mix.c: In function 'mix_delete': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mix.c:471:50: note: in expansion of macro 'flock' 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] if (dirp = opendir (tmp)) { /* open directory */ ^~~~ mix.c:483:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strrchr (tmp1,'/')) { ^ mix.c:556:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mix_rselect,alphasort); ^~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:569:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; ^ mix.c:711:7: warning: unused variable 'fd' [-Wunused-variable] int fd; ^~ mix.c: In function 'mix_text': mix.c:774:17: warning: unused variable 'i' [-Wunused-variable] unsigned long i; ^ mix.c: In function 'mix_ping': mix.c:965:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { ^~~~~~~ mix.c:990:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (statf = mix_parse (stream,&idxf,LONGT, ^~~~~ mix.c:929:15: warning: unused variable 'sfd' [-Wunused-variable] int mfd,ifd,sfd; ^~~ mix.c:929:11: warning: unused variable 'ifd' [-Wunused-variable] int mfd,ifd,sfd; ^~~ mix.c:929:7: warning: unused variable 'mfd' [-Wunused-variable] int mfd,ifd,sfd; ^~~ mix.c: In function 'mix_expunge': mix.c:1038:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:1054:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:1110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = (void *) names) fs_give ((void **) &a); ^ mix.c:1026:11: warning: unused variable 'sfd' [-Wunused-variable] int ifd,sfd; ^~~ mix.c:1026:7: warning: unused variable 'ifd' [-Wunused-variable] int ifd,sfd; ^~~ mix.c: In function 'mix_burp': mix.c:1236:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (ret = !truncate (LOCAL->buf,burp->set.last)) ^~~ mix.c:1219:9: warning: variable 's' set but not used [-Wunused-but-set-variable] void *s; ^ mix.c: In function 'mix_burp_check': mix.c:1340:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (set = set->next); ^~~ mix.c: In function 'mix_copy': mix.c:1378:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1403:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (msgf = mix_data_open (astream,&fd,&size,newsize)) { ^~~~ mix.c:1432:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = elt->user_flags) do ^ mix.c:1455:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (mix_meta_update (astream) && ^~~ mix.c:1405:23: warning: variable 'uid' set but not used [-Wunused-but-set-variable] 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] if (ret = compare_cstring (mailbox,"INBOX") ? ^~~ mix.c:1536:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1555:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] unsigned long i,j,k,uf,hoff; ^~~~ mix.c:1632:17: warning: unused variable 'i' [-Wunused-variable] 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] else if (s = mix_meta_slurp (stream,&i)) { ^ mix.c:1750:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strstr (t = s,"\015\012")) { ^ mix.c:1779:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_data_open': mix.c:2425:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] ftruncate (fileno (idxf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2288:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] ftruncate (fileno (statf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2369:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] 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:0, from /usr/include/stdlib.h:25, from osdep.h:43, from osdep.c:31: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from auths.c:2:0, 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] 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] 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=] SERVER_LOG ("Failed to acquire credentials for %s",buf.value); ^ ~~~~~ auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) ^ auth_gss.c:406:16: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] SERVER_LOG ("Unknown GSSAPI failure: %s",resp.value); ^ ~~~~~~ auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) ^ auth_gss.c:414:14: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); ^ ~~~~~~ auth_gss.c:55:43: note: in definition of macro 'SERVER_LOG' #define SERVER_LOG(x,y) syslog (LOG_ALERT,x,y) ^ In file included from auths.c:3:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_ext.c:66:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) ^~~~~~~~~ In file included from auths.c:4:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_md5.c:120:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (user = (*responder) (chal,cl = strlen (chal),NIL)) { ^~~~ auth_md5.c:157:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (hash = strrchr (user,' ')) { ^~~~ auth_md5.c:160:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^~~~~~~~ auth_md5.c:162:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^~~~~~~~ auth_md5.c:240:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = auth_md5_pwd ((authuser && *authuser) ? authuser : user)) { ^ In file included from auths.c:5:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_pla.c:94:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (aid = (*responder) ("",0,&len)) { ^~~ In file included from auths.c:6:0, 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] if (challenge = (*challenger) (stream,&clen)) { ^~~~~~~~~ auth_log.c:81:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { ^~~~ auth_log.c:108:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { ^~~~ auth_log.c:110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^~~~~~~~ In file included from osdep.c:51:0: env_unix.c: In function 'do_date': env_unix.c:514:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = auth_md5_pwd (user)) { ^ env_unix.c:676:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strrchr (base->lock,'/')) { ^ In file included from osdep.c:31:0: env_unix.c: In function 'lock_work': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ env_unix.c:1374:27: note: in expansion of macro 'flock' if (op & LOCK_NB) i = flock (fd,op); ^~~~~ In file included from osdep.c:51:0: env_unix.c: In function 'dorc': env_unix.c:1582:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (d = mail_valid (NIL,"INBOX",NIL)) { ^ env_unix.c:1595:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (d = (DRIVER *) mail_parameters (NIL,GET_DRIVER,(void *) k)) ^ In file included from osdep.c:54:0: tcp_unix.c: In function 'tcp_open': tcp_unix.c:175:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { ^~~ tcp_unix.c:215:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] size_t adrlen,sadrlen,len; ^~~~~~~ osdep.c: In function 'checkpw': osdep.c:164:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pw = ((pam_start ((char *) mail_parameters (NIL,GET_SERVICENAME,NIL), ^~ osdep.c: In function 'ssl_start_work': osdep.c:471:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) ^ osdep.c:475:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (cert = PEM_read_bio_X509 (bio = BIO_new_mem_buf (s,sl),NIL,NIL,NIL)) { ^~~~ osdep.c:484:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (key = PEM_read_bio_PrivateKey (bio = BIO_new_mem_buf (t,tl), ^~~ osdep.c: In function 'ssl_validate_cert': osdep.c:564:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (s = strstr (cert->name,"/CN=")) { ^ osdep.c:565:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (s += 4,'/')) *t = '\0'; ^ osdep.c: In function 'ssl_server_init': osdep.c:995:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (i = ERR_get_error ()) /* SSL failure */ ^ osdep.c: In function 'ssl_genkey': osdep.c:1017:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (i = ERR_get_error ()) ^ In file included from auths.c:4:0, 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] read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:51:0: 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] (ret = env_init (user,home))) chdir (myhomedir ()); ^~~~~~~~~~~~~~~~~~~~ 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] 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] if (ret = (void *) d) d->flags &= ~DR_DISABLE; ^~~ mail.c:390:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) d) d->flags |= DR_DISABLE; ^~~ mail.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_DISABLE; ^~~ mail.c:400:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_DISABLE; ^~~ mail.c:405:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_HIDE; ^~~ mail.c:410:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_HIDE; ^~~ mail.c:644:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = smtp_parameters (function,value)) ret = r; ^ mail.c:645:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = env_parameters (function,value)) ret = r; ^ mail.c:646:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = tcp_parameters (function,value)) ret = r; ^ mail.c:648:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = (*stream->dtb->parameters) (function,value)) ret = r; ^ mail.c:652:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (t = strpbrk (s = t,"/:=")) { ^ mail.c:784:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (s = strpbrk (mailbox,"\015\012")) { ^ mail.c:1012:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (stream = mail_open (stream,s+1,options)) { ^~~~~~ mail.c:1216:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = mail_open (stream,mb.mailbox,options)) { ^~~~~~ mail.c:1243:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^~~~~ mail.c:1778:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] while (lines = lines->next); ^~~~~ mail.c: In function 'mail_filter': mail.c:3371:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (body = body->nested.msg->body) ^~~~ mail.c:3771:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (st.data = (unsigned char *) ^~ mail.c:3778:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] STRINGLIST **sc = st; ^~ mail.c: In function 'mail_search_keyword': mail.c:3859:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } 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] 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] 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] 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] 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] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4372:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4380:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4387:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^~~ mail.c:4405:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4413:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4420:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^~~ mail.c:4438:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4446:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4453:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^~~ mail.c:4472:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { ^~~ mail.c:4951:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (t = mail_thread_parse_msgid (s,&s)) { ^ mail.c:5187:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ ^ newsrc.c:368:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = newsrc_create (stream,NIL)) bf = NIL; ^ newsrc.c:384:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (f = fopen (db,"r")) { /* make sure not already there */ ^ smanager.c:48:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (f = fopen (sbname,"r")) *sdb = (void *) f; ^ smanager.c:123:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] static const CHARSET utf8_csvalid[] = { ^ utf8.c:347:38: warning: missing braces around initializer [-Wmissing-braces] 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] 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] 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] 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] if (m = (struct decomposemore *) *more) switch (m->type) { ^ utf8.c:2418:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { ^ utf8.c:2448:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { ^~ utf8.c:2533:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] } while (st = st->next); ^~ utf8aux.c: In function 'utf8_mime2text': utf8aux.c:136:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (s = strchr (test,'/')) *++s = '\0'; ^ dummy.c:170:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ dummy.c:176:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dummy.c: In function 'dummy_delete': dummy.c:523:48: warning: '%.80s' directive argument is null [-Wformat-overflow=] sprintf (tmp,"Can't delete - invalid name: %.80s",s); ^~~~~ 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] if (f = fopen (tmp,"wb+")) unlink (tmp); ^ netmsg.c:73:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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:0, from /usr/include/stdlib.h:25, from osdep.h:43, from fdstring.c:30: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # 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] 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] 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] 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] if (t = d = strchr (tmp,':')) { ^ rfc822.c:204:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *d++) if (c != ' ') *t++ = c; ^ rfc822.c:218:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = rfc822_parse_phrase (d)) *t = '\0'; ^ rfc822.c:229:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] else if (t = rfc822_parse_word (string,wspecials)) { ^ rfc822.c:1108:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] while (s = net_getline (LOCAL->nntpstream->netstream)) { ^ nntp.c:358:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] if (t = strchr (ov->subject,'\t')) { ^ nntp.c:1042:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->date = strchr (t,'\t')) { ^~ nntp.c:1049:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->message_id = strchr (ov->date,'\t')) { ^~ nntp.c:1053:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->references = strchr (ov->message_id,'\t')) { ^~ nntp.c:1057:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (ov->references,'\t')) { ^ nntp.c:1062:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (t,'\t')) { ^ nntp.c:1066:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] #define LOCAL ((NNTPLOCAL *) stream->local) ^ nntp.c:1151:11: note: in expansion of macro 'LOCAL' 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] 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] if (set = pgm->msgno) { /* must be inside this sequence */ ^~~ nntp.c:1277:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (t = strchr (v,'\t')) { ^ nntp.c:1524:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { ^~~ nntp.c:1529:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (netstream = /* try to open ordinary connection */ ^~~~~~~~~ nntp.c:1720:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream->netstream->stream = ^~~~~~ nntp.c: In function 'nntp_extensions': nntp.c:1817:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strstr (env->date," (")) *s = NIL; ^ nntp.c:1887:8: warning: unused variable 'retry' [-Wunused-variable] long retry = NIL; ^~~~~ nntp.c:1886:8: warning: unused variable 'error' [-Wunused-variable] long error = NIL; ^~~~~ nntp.c: In function 'nntp_soutr': nntp.c:2214:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] fread (LOCAL->over_fmt = (char *) fs_get ((size_t) k + 3), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (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] fread (elt->private.msg.header.text.data = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (unsigned char *) fs_get ((size_t) *size + 3), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (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] 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] 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] 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] 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] 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] 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] if (thr = LOCAL->cap.threader) while (t = thr) { ^~~ imap4r1.c:1317:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (j = (set->last == 0xffffffff) ? stream->nmsgs : ^ imap4r1.c:1522:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] if (thr = LOCAL->cap.threader) while (t = thr) { ^~~ imap4r1.c:2705:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (arglst = args) while (arg = *arglst++) { ^~~~~~ imap4r1.c:2927:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (arglst = args) while (arg = *arglst++) { ^~~ imap4r1.c:2947:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] while (list = list->next); ^~~~ imap4r1.c:2967:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (t = map->flags) { /* flags given? */ ^ imap4r1.c:3087:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_astring (stream,tag,&s,&st,NIL, ^~~~~ imap4r1.c:3091:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,map->message)) ^~~~~ imap4r1.c:3121:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (hdr = pgm->header) do { ^~~ imap4r1.c:3357:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] } while (hdr = hdr->next); ^~~ imap4r1.c:3365:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] while (prop = (strtok_r (t," )",&r))) { ^~~~ imap4r1.c:3808:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s = t,' ')) *t++ = '\0'; ^ imap4r1.c:3907:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = strtok_r (NIL," )",&r)); ^ imap4r1.c:3911:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = strtoul (t,NIL,10)) { ^ imap4r1.c:3920:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:3944:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { ^ imap4r1.c:4008:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strtok_r (reply->text+1," ",&r)) do { ^ imap4r1.c:4017:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:4028:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = imap_parse_astring (stream,&s,reply,&j)) { ^ imap4r1.c:4046:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { /* parse namespace results */ ^ imap4r1.c:4166:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s,' ')) t = s; ^ imap4r1.c:4169:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) ^~~ imap4r1.c:4286:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strtok_r (s+1," ",&r)) do { ^ imap4r1.c:4300:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] if (thr = LOCAL->cap.threader) while (th = thr) { ^~~ imap4r1.c:5477:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (th = thr) { ^~ imap4r1.c:5520:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] #define LOCAL ((POP3LOCAL *) stream->local) ^ pop3.c:429:11: note: in expansion of macro 'LOCAL' 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] if (args = strchr (t,' ')) *args++ = '\0'; ^~~~ pop3.c:510:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr(args,' ')){/* separate time from possible USER */ ^ pop3.c:521:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] fread (elt->private.msg.header.text.data = (unsigned char *) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs_get ((size_t) elt->private.msg.header.text.size + 1), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (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 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime unix.c: In function 'unix_rename': unix.c:418:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ In file included from unix.c:46:0: unix.c: In function 'unix_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ unix.c:530:5: note: in expansion of macro 'flock' 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] if (ret = (sequence ? ((options & EX_UID) ? ^~~ unix.c:852:21: warning: unused variable 'elt' [-Wunused-variable] MESSAGECACHE *elt = mail_elt (stream,i); ^~~ unix.c: In function 'unix_append': unix.c:1037:17: warning: unused variable 'uidlocation' [-Wunused-variable] 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] 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] else if (i = sbuf.st_size - LOCAL->filesize) { ^ unix.c:1770:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ unix.c:2327:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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] 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] 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] 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] 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] 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] 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] 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] 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] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2629:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2640:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (sfd,0); /* truncate sysinbox to zero bytes */ ^~~~~~~~~~~~~~~~~ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` mbx.c -o mbx.so In file included from mbx.c:42:0: mbx.c: In function 'mbx_isvalid': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mbx.c:233:12: note: in expansion of macro 'flock' if (flock (fd,LOCK_SH) || ^~~~~ mbx.c:303:7: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] 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] if (s = strrchr (tmp,'/')) { ^ mbx.c: In function 'mbx_ping': mbx.c:825:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (ret = mbx_parse (stream)) { ^~~ mbx.c:829:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (ret = sequence ? ((options & EX_UID) ? ^~~ mbx.c:895:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (j = hdrlen + txtlen) { ^ mbx.c: In function 'mbx_copy': mbx.c:1035:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = stream->user_flags[find_rightmost_bit (&j)]) ^ mbx.c:1044:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (m = (LOCAL->filesize -= delta) - pos) { ^ mbx.c:1795:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1060:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1781:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime mmdf.c: In function 'mmdf_rename': mmdf.c:557:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ In file included from mmdf.c:34:0: mmdf.c: In function 'mmdf_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mmdf.c:669:5: note: in expansion of macro 'flock' 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] if (ret = (sequence ? ((options & EX_UID) ? ^~~ mmdf.c:991:21: warning: unused variable 'elt' [-Wunused-variable] MESSAGECACHE *elt = mail_elt (stream,i); ^~~ mmdf.c: In function 'mmdf_append': mmdf.c:1173:17: warning: unused variable 'uidlocation' [-Wunused-variable] 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] 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] else if (i = sbuf.st_size - LOCAL->filesize) { ^ mmdf.c:1934:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ mmdf.c:2473:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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] 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] 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] 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] 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] 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] 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] 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 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from tenex.c:47:0: tenex.c: In function 'tenex_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ tenex.c:315:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ tenex.c:324:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:629:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] 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] 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] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:917:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1016:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] 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] utime (file,tp); /* set the times */ ^~~~~ utimes In file included from mtx.c:42:0: mtx.c: In function 'mtx_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mtx.c:308:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ mtx.c:317:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:827:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:926:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] if (s = strchr (pattern,'.')) *++s = '\0'; ^ news.c:234:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] } 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] 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] while (s = strchr (s,'.')) *s = '/'; ^ news.c:370:36: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c:370:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c: In function 'news_select': news.c:409:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] 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] 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] if (s = strchr (test,'/')) *++s = '\0'; ^ mh.c:362:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ mh.c:369:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (file,'/')) { ^ mh.c: In function 'mh_lsub': mh.c:407:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (dp = opendir (curdir)) { /* open directory */ ^~ mh.c:432:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (dirp = opendir (tmp)) { /* open directory */ ^~~~ mh.c:519:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:865:56: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:889:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mh.c:939:17: warning: too many arguments for format [-Wformat-extra-args] 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] 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] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:1131:47: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:1138:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mh.c:1102:10: warning: variable 'size' set but not used [-Wunused-but-set-variable] 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] 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] 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] 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] 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] 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] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:277:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:289:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = (void *) names) fs_give ((void **) &a); ^ mx.c: In function 'mx_create': mx.c:348:7: warning: unused variable 'fd' [-Wunused-variable] int fd; ^~ mx.c: In function 'mx_delete': mx.c:395:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^~~~ mx.c:398:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strrchr (mx_file (tmp1,newname),'/')) { ^ mx.c:462:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:462:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:469:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:731:61: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:752:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mx.c:803:17: warning: too many arguments for format [-Wformat-extra-args] 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] 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] 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] if (j = elt->user_flags) do ^ mx.c:950:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = stream->user_flags[find_rightmost_bit (&j)]) ^ mx.c:960:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] while (c = *s++) if (!isdigit (c)) return NIL; ^ In file included from mx.c:35:0: mx.c: In function 'mx_lockindex': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mx.c:1173:5: note: in expansion of macro 'flock' flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ ^~~~~ mx.c:1189:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:324:49: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:336:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^ mix.c:63:16: note: in definition of macro 'MTAFMT' #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mix.c:33:0: mix.c: In function 'mix_delete': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mix.c:471:50: note: in expansion of macro 'flock' 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] if (dirp = opendir (tmp)) { /* open directory */ ^~~~ mix.c:483:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strrchr (tmp1,'/')) { ^ mix.c:556:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mix_rselect,alphasort); ^~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:569:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (s = strpbrk (LOCAL->buf,"\015\012")) *s = '\0'; ^ mix.c:711:7: warning: unused variable 'fd' [-Wunused-variable] int fd; ^~ mix.c: In function 'mix_text': mix.c:774:17: warning: unused variable 'i' [-Wunused-variable] unsigned long i; ^ mix.c: In function 'mix_ping': mix.c:965:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { ^~~~~~~ mix.c:990:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (statf = mix_parse (stream,&idxf,LONGT, ^~~~~ mix.c:929:15: warning: unused variable 'sfd' [-Wunused-variable] int mfd,ifd,sfd; ^~~ mix.c:929:11: warning: unused variable 'ifd' [-Wunused-variable] int mfd,ifd,sfd; ^~~ mix.c:929:7: warning: unused variable 'mfd' [-Wunused-variable] int mfd,ifd,sfd; ^~~ mix.c: In function 'mix_expunge': mix.c:1038:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:1054:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:1110:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = (void *) names) fs_give ((void **) &a); ^ mix.c:1026:11: warning: unused variable 'sfd' [-Wunused-variable] int ifd,sfd; ^~~ mix.c:1026:7: warning: unused variable 'ifd' [-Wunused-variable] int ifd,sfd; ^~~ mix.c: In function 'mix_burp': mix.c:1236:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (ret = !truncate (LOCAL->buf,burp->set.last)) ^~~ mix.c:1219:9: warning: variable 's' set but not used [-Wunused-but-set-variable] void *s; ^ mix.c: In function 'mix_burp_check': mix.c:1340:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (set = set->next); ^~~ mix.c: In function 'mix_copy': mix.c:1378:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1403:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (msgf = mix_data_open (astream,&fd,&size,newsize)) { ^~~~ mix.c:1432:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = elt->user_flags) do ^ mix.c:1455:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (mix_meta_update (astream) && ^~~ mix.c:1405:23: warning: variable 'uid' set but not used [-Wunused-but-set-variable] 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] if (ret = compare_cstring (mailbox,"INBOX") ? ^~~ mix.c:1536:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #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' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:1555:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] unsigned long i,j,k,uf,hoff; ^~~~ mix.c:1632:17: warning: unused variable 'i' [-Wunused-variable] 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] else if (s = mix_meta_slurp (stream,&i)) { ^ mix.c:1750:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strstr (t = s,"\015\012")) { ^ mix.c:1779:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] #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' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_data_open': mix.c:2425:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] 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] 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] ftruncate (fileno (idxf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2288:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] ftruncate (fileno (statf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2369:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] 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] 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] 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` osdep.so: In function `ssl_onceonlyinit': /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] if (suffix = strchr (tmp,',')) suffix[0] = '\0'; ^~~~~~ mtest.c:132:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = sm_read (&sdb)) { ^ mtest.c:135:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = sm_read (&sdb)); ^ mtest.c: In function 'mm': mtest.c:165:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (arg = strchr (cmd,' ')) *arg++ = '\0'; ^~~ mtest.c:205:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = sm_read (&sdb)) { ^ mtest.c:208:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (i = elt->user_flags) { ^ mtest.c: In function 'header': mtest.c:431:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (par = body->parameter) do ^~~ mtest.c:470:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (par = par->next); ^~~ mtest.c: In function 'status': mtest.c:525:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = imap_cap (stream)->auth) { ^ mtest.c:528:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (auth = mail_lookup_auth (find_rightmost_bit (&i) + 1)) { ^~~~ mtest.c:574:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] gets (txt); ^~~~ fgets mtest.c: In function 'mm_login': mtest.c:710:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (stream = smtp_open (hostlist,debug)) { ^~~~~~ mtest.c:804:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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` mtest.o: In function `prompt': /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] 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] 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] if (t = mail_fetch_text (stream,msg[current],NIL,&i,FT_RETURNSTRINGSTRUCT)) ^ `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] if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); ^ ipop3d.c:197:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = !mail_parameters (NIL,GET_DISABLEPLAINTEXT,NIL)) ^ ipop3d.c:222:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (initial = strtok (NIL,"\015\012")) { ^~~~~~~ ipop3d.c:275:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = ssl_start_tls (pgmname)) { ^ ipop3d.c:291:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (t,':')) { ^ ipop3d.c: In function 'pass_login': ipop3d.c:664:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (j = stream->nmsgs) { /* if mailbox non-empty */ ^ `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] if (s = strchr (proxy,'\n')) *s = '\0'; ^ imapd.c:400:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (cmdbuf,' ')) *t = '\0'; ^ imapd.c:514:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strchr (user,'*')) *s++ ='\0'; ^ imapd.c:592:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (lsterr = ssl_start_tls (pgmname)) response = lose; ^~~~~~ imapd.c:731:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (s = strtok (NIL," ")); ^ imapd.c:741:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (s = snarf (&arg)) charset = cpystr (s); ^ imapd.c:966:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strpbrk (tmp,"\r\n")) *t = '\0'; ^ imapd.c:1132:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (t = strtok (NIL," ")); ^ imapd.c:1217:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (n = ns[i]) { ^ imapd.c:1237:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (p = n->param) do { ^ imapd.c:1244:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (p = p->next); ^ imapd.c:1246:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (n = n->next); ^ imapd.c:1379:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (i = (litplus.size > MAILTMPLEN) ? MAILTMPLEN : litplus.size) { ^ imapd.c:1394:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (tmp,'\012')) { ^ imapd.c:1498:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (*size = i) break; /* got atom if non-empty */ ^ imapd.c:2099:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (list = (*t == '(')) t++; /* skip open paren */ ^~~~ imapd.c:2647:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (u = elt->user_flags) do /* any user flags? */ ^ imapd.c:3173:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] if (part = body->nested.part) ^~~~ imapd.c: In function 'pbody': imapd.c:3451:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (part = body->nested.part) ^~~~ imapd.c: In function 'pparam': imapd.c:3505:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (param = param->next) PBOUT (' '); ^~~~~ imapd.c: In function 'paddr': imapd.c:3531:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } 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] if (cur = cur->next) PBOUT (','); ^~~ imapd.c: In function 'pastringlist': imapd.c:3690:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (s = s->next); ^ imapd.c: In function 'pnstringorlist': imapd.c:3707:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (s = s->next); ^ imapd.c: In function 'ptext': imapd.c:3765:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] if (t = ad->flags) fs_give ((void **) &ad->flags); ^ imapd.c:4113:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = ad->date) fs_give ((void **) &ad->date); ^ imapd.c:4114:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] if (t = strchr (tmp+1,'\n')) *t = '\0'; ^ mailutil.c:384:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *t1++) { /* swap delimiters then */ ^ mailutil.c:396:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] if (s = strchr (tmp,'\n')) *s = '\0'; ^ mailutil.c:624:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 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] 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] 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] 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] 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] if (!grp || (grp->gr_gid != getegid ())) ^~~~~~~ getgrgid mlock.c:94:3: warning: implicit declaration of function 'chdir'; did you mean 'mkdir'? [-Wimplicit-function-declaration] chdir (dir); ^~~~~ mkdir mlock.c:113:30: warning: implicit declaration of function 'time'; did you mean 'die'? [-Wimplicit-function-declaration] if (!stat (lock,&sb) && (time (0) > (sb.st_ctime + LOCKTIMEOUT * 60))) ^~~~ die mlock.c:114:7: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] unlink (lock); /* time out lock if enough time has passed */ ^~~~~~ unix mlock.c:123:23: warning: implicit declaration of function 'getpid'; did you mean 'getenv'? [-Wimplicit-function-declaration] (unsigned long) getpid ()); ^~~~~~ getenv mlock.c:125:5: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] gethostname (hitch + len,MAXHOSTNAMELEN); ^~~~~~~~~~~ gethostbyname mlock.c:132:7: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close (ld); /* close the hitching-post */ ^~~~~ pclose mlock.c:138:11: warning: implicit declaration of function 'link'; did you mean 'bind'? [-Wimplicit-function-declaration] i = link (hitch,lock) ? errno : 0; ^~~~ bind mlock.c:161:20: warning: implicit declaration of function 'sleep'; did you mean 'strsep'? [-Wimplicit-function-declaration] if (tries--) sleep (1); /* sleep 1 second and try again */ ^~~~~ strsep mlock.c:169:3: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 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] 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] 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] 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] 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] 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:0, 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # 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] 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] 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] 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] 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] 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:0, 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:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # 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' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.87NNzC + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64 + cd imap-2007f + rm -rf /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/lib64/ + install -p -m644 ./c-client/c-client.a /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/lib64/ + ln -s c-client.a /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/lib64/libc-client.a + install -p -m755 ./c-client/libc-client.so.2007 /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/lib64/ + touch c-client.cf + install -p -m644 -D c-client.cf /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/c-client.cf + ln -s libc-client.so.2007 /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/lib64/libc-client.so + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.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-17.fc28.riscv64/usr/include/imap/ + install -m644 ./c-client/linkage.c /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/include/imap/ + install -m644 ./src/osdep/tops-20/shortsym.h /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/include/imap/ + install -p -D -m644 src/imapd/imapd.8 /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/share/man/man8/imapd.8uw + install -p -D -m644 src/ipopd/ipopd.8 /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/share/man/man8/ipopd.8uw + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/sbin + install -p -m755 ipopd/ipop2d ipopd/ipop3d /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/sbin/ + install -p -m755 imapd/imapd /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/sbin/ + install -p -m755 mlock/mlock /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/sbin/ + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/bin/ + install -p -m755 dmail/dmail mailutil/mailutil mtest/mtest tmail/tmail /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/bin/ + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.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-17.fc28.riscv64/usr/share/man/man1/ + install -p -m644 -D imap.pam /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/pam.d/imap + install -p -m644 -D imap.pam /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/pam.d/pop + install -p -m644 -D /builddir/build/SOURCES/imap-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/xinetd.d/imap + install -p -m644 -D /builddir/build/SOURCES/imaps-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/xinetd.d/imaps + install -p -m644 -D /builddir/build/SOURCES/ipop2-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/xinetd.d/ipop2 + install -p -m644 -D /builddir/build/SOURCES/ipop3-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/xinetd.d/ipop3 + install -p -m644 -D /builddir/build/SOURCES/pop3s-xinetd /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/xinetd.d/pop3s + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/pki/tls/certs + touch /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/pki/tls/certs/imapd.pem /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/pki/tls/certs/ipop3d.pem + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: uw-imap-2007f-17.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.oIwOZ4 + umask 022 + cd /builddir/build/BUILD + cd imap-2007f + DOCDIR=/builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.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-17.fc28.riscv64/usr/share/doc/uw-imap + cp -pr docs/SSLBUILD /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/share/doc/uw-imap + exit 0 Provides: config(uw-imap) = 2007f-17.fc28 uw-imap = 2007f-17.fc28 uw-imap(riscv-64) = 2007f-17.fc28 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) libcom_err.so.2()(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libgssapi_krb5.so.2()(64bit) libkrb5.so.3()(64bit) libpam.so.0()(64bit) libssl.so.10()(64bit) rtld(GNU_HASH) Obsoletes: imap < 1:2007f Processing files: libc-client-2007f-17.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.xRVCn6 + umask 022 + cd /builddir/build/BUILD + cd imap-2007f + DOCDIR=/builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.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-17.fc28.riscv64/usr/share/doc/libc-client + cp -pr LICENSE.txt /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/share/doc/libc-client + cp -pr NOTICE /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/share/doc/libc-client + cp -pr SUPPORT /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64/usr/share/doc/libc-client + cp -pr docs/RELNOTES /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.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-17.fc28.riscv64/usr/share/doc/libc-client + exit 0 Provides: config(libc-client) = 2007f-17.fc28 libc-client = 2007f-17.fc28 libc-client(riscv-64) = 2007f-17.fc28 libc-client.so.2007()(64bit) Requires(interp): /sbin/ldconfig /sbin/ldconfig Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig 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) libcom_err.so.2()(64bit) libcrypto.so.10()(64bit) libcrypto.so.10(libcrypto.so.10)(64bit) libdl.so.2()(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.10()(64bit) libssl.so.10(libssl.so.10)(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-17.fc28.riscv64 Provides: libc-client-devel = 2007f-17.fc28 uw-imap-devel = 2007f-17.fc28 uw-imap-devel(riscv-64) = 2007f-17.fc28 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-17.fc28 Processing files: uw-imap-static-2007f-17.fc28.riscv64 Provides: uw-imap-static = 2007f-17.fc28 uw-imap-static(riscv-64) = 2007f-17.fc28 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-17.fc28.riscv64 Provides: uw-imap-utils = 2007f-17.fc28 uw-imap-utils(riscv-64) = 2007f-17.fc28 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) libcom_err.so.2()(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libgssapi_krb5.so.2()(64bit) libkrb5.so.3()(64bit) libpam.so.0()(64bit) libssl.so.10()(64bit) rtld(GNU_HASH) Obsoletes: imap-utils < 1:2007f Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64 Wrote: /builddir/build/SRPMS/uw-imap-2007f-17.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/uw-imap-2007f-17.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/libc-client-2007f-17.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/uw-imap-devel-2007f-17.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/uw-imap-static-2007f-17.fc28.riscv64.rpm Wrote: /builddir/build/RPMS/riscv64/uw-imap-utils-2007f-17.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.GMNxIt + umask 022 + cd /builddir/build/BUILD + cd imap-2007f + /usr/bin/rm -rf /builddir/build/BUILDROOT/uw-imap-2007f-17.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff