Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/uw-imap.spec'], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-SCLs_php74-armhfp-94db0f5f9492de4abde5781bef4f692fc4ae5ebe/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/uw-imap.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False warning: bogus date in %changelog: Tue May 18 2008 Rex Dieter 2007a1-3 warning: bogus date in %changelog: Thu Jul 16 2004 Rex Dieter 1:2004-0.fdr.5.a Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/uw-imap-2007f-30.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/uw-imap.spec"], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-SCLs_php74-armhfp-94db0f5f9492de4abde5781bef4f692fc4ae5ebe/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/uw-imap.spec"] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False warning: bogus date in %changelog: Tue May 18 2008 Rex Dieter 2007a1-3 warning: bogus date in %changelog: Thu Jul 16 2004 Rex Dieter 1:2004-0.fdr.5.a Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ne6onI + 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 -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd imap-2007f + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (imap-2007-paths.patch): + echo 'Patch #1 (imap-2007-paths.patch):' + /usr/bin/cat /builddir/build/SOURCES/imap-2007-paths.patch + /usr/bin/patch -p1 -b --suffix .paths --fuzz=0 patching file src/osdep/unix/Makefile Patch #2 (imap-2004a-doc.patch): + echo 'Patch #2 (imap-2004a-doc.patch):' + /usr/bin/cat /builddir/build/SOURCES/imap-2004a-doc.patch + /usr/bin/patch -p1 -b --suffix .doc --fuzz=0 patching file src/imapd/imapd.8 Hunk #1 succeeded at 16 (offset 13 lines). patching file src/ipopd/ipopd.8 Hunk #1 succeeded at 16 (offset 13 lines). Patch #5 (imap-2007e-overflow.patch): + echo 'Patch #5 (imap-2007e-overflow.patch):' + /usr/bin/patch -p1 -b --suffix .overflow --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/imap-2007e-overflow.patch patching file src/c-client/rfc822.c Patch #9 (imap-2007e-shared.patch): + echo 'Patch #9 (imap-2007e-shared.patch):' + /usr/bin/cat /builddir/build/SOURCES/imap-2007e-shared.patch + /usr/bin/patch -p1 -b --suffix .shared --fuzz=0 patching file src/osdep/unix/Makefile Hunk #2 succeeded at 857 (offset 8 lines). Hunk #3 succeeded at 913 (offset 8 lines). Hunk #4 succeeded at 927 (offset 8 lines). Patch #10 (imap-2007e-authmd5.patch): + echo 'Patch #10 (imap-2007e-authmd5.patch):' + /usr/bin/cat /builddir/build/SOURCES/imap-2007e-authmd5.patch + /usr/bin/patch -p1 -b --suffix .authmd5 --fuzz=0 patching file src/c-client/auth_md5.c + install -p -m644 /builddir/build/SOURCES/imap-password.pam imap.pam Patch #12 (imap-2007f-format-security.patch): + echo 'Patch #12 (imap-2007f-format-security.patch):' + /usr/bin/cat /builddir/build/SOURCES/imap-2007f-format-security.patch + /usr/bin/patch -p1 -b --suffix .fmt-sec --fuzz=0 patching file src/osdep/unix/flocklnx.c Patch #13 (imap-2007e-poll.patch): + echo 'Patch #13 (imap-2007e-poll.patch):' + /usr/bin/cat /builddir/build/SOURCES/imap-2007e-poll.patch + /usr/bin/patch -p1 -b --suffix .poll --fuzz=0 patching file src/osdep/unix/os_lnx.c patching file src/osdep/unix/os_slx.c patching file src/osdep/unix/tcp_unix.c Patch #14 (1006_openssl1.1_autoverify.patch): + echo 'Patch #14 (1006_openssl1.1_autoverify.patch):' + /usr/bin/cat /builddir/build/SOURCES/1006_openssl1.1_autoverify.patch + /usr/bin/patch -p1 -b --suffix .openssl11 --fuzz=0 patching file src/osdep/unix/ssl_unix.c Patch #15 (imap-2007f-ldflags.patch): + echo 'Patch #15 (imap-2007f-ldflags.patch):' + /usr/bin/cat /builddir/build/SOURCES/imap-2007f-ldflags.patch + /usr/bin/patch -p1 -b --suffix .ldflags --fuzz=0 patching file src/osdep/unix/Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nk847Q + 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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + EXTRACFLAGS=' -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' + export 'EXTRACFLAGS= -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing' + EXTRACFLAGS=' -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing' + export 'EXTRACFLAGS= -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing -Wno-pointer-sign' + EXTRACFLAGS=' -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing -Wno-pointer-sign' + echo -e 'y\ny' ++ pwd + make -j4 lnp IP=6 'EXTRACFLAGS= -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing -Wno-pointer-sign' 'EXTRALDFLAGS= -Wl,-z,relro ' 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/lib' 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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing -Wno-pointer-sign' EXTRALDFLAGS='-Wl,-z,relro ' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=std SSLTYPE=unix IP=6 EXTRASPECIALS='' BUILDTYPE=lnp make[1]: Entering directory `/builddir/build/BUILD/imap-2007f' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. 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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing -Wno-pointer-sign'\ EXTRALDFLAGS='-Wl,-z,relro '\ 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/lib make[2]: Entering directory `/builddir/build/BUILD/imap-2007f/c-client' make build EXTRACFLAGS='-fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing -Wno-pointer-sign' EXTRALDFLAGS='-Wl,-z,relro ' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='gss' PASSWDTYPE=std SSLTYPE=unix IP=6 `cat SPECIALS` OS=slx \ SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \ SPOOLDIR=/var/spool \ ACTIVEFILE=/var/lib/news/active \ RSHPATH=/usr/bin/rsh \ BASECFLAGS="-g -O2 -pipe -fno-omit-frame-pointer" \ BASELDFLAGS="-Wl,-z,relro -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 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-strict-aliasing -Wno-pointer-sign' -DCHUNKSIZE=65536 > CFLAGS echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \ -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/spool/mail\" \ -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \ -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \ -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/sbin/mlock\" \ -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \ -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS echo -Wl,-z,relro -lpam -ldl -Wl,-z,relro > 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/lib -lssl -lcrypto -Wl,-z,relro >> 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 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:3: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (resp.value = (*responder) ("",0,(unsigned long *) &resp.length)) { ^ auth_gss.c:399:2: 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:406:4: 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:414:2: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); ^ 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_ext.c:66:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_md5.c:120:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (user = (*responder) (chal,cl = strlen (chal),NIL)) { ^ auth_md5.c:157:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (hash = strrchr (user,' ')) { ^ auth_md5.c:160:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ auth_md5.c:162:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ auth_md5.c:240:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_pla.c:94:2: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_log.c:81:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { ^ auth_log.c:108:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { ^ auth_log.c:110:7: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = auth_md5_pwd (user)) { ^ env_unix.c:676:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (base->lock,'/')) { ^ env_unix.c: In function 'lock_work': env_unix.c:1374:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (op & LOCK_NB) i = flock (fd,op); ^ env_unix.c: In function 'dorc': env_unix.c:1582:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (d = mail_valid (NIL,"INBOX",NIL)) { ^ In file included from osdep.c:30:0: mail.h:1067:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] #define DRIVER struct driver ^ env_unix.c:1595:17: note: in expansion of macro 'DRIVER' 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { ^ tcp_unix.c:215:5: 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:5: 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:3: 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:2: 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:5: 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:170:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] getpwnam (name) : NIL) { ^ osdep.c: In function 'ssl_start_work': osdep.c:479:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) ^ osdep.c:483:5: 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:493:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] NIL,NIL,"")) { ^ osdep.c: In function 'ssl_validate_cert': osdep.c:575:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (s = strstr (cert->name,"/CN=")) { ^ osdep.c:576:5: 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:1007:3: 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:1029:7: 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:10: 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:43: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) d) d->flags &= ~DR_DISABLE; ^ mail.c:390:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) d) d->flags |= DR_DISABLE; ^ mail.c:395:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_DISABLE; ^ mail.c:400:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_DISABLE; ^ mail.c:405:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_HIDE; ^ mail.c:410:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_HIDE; ^ mail.c:644:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = smtp_parameters (function,value)) ret = r; ^ mail.c:645:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = env_parameters (function,value)) ret = r; ^ mail.c:646:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = tcp_parameters (function,value)) ret = r; ^ mail.c:648:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = (*stream->dtb->parameters) (function,value)) ret = r; ^ mail.c:652:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strpbrk (s = t,"/:=")) { ^ mail.c:784:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strpbrk (v = t,"/:")) { ^ mail.c: In function 'mail_list': mail.c:919:3: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (mailbox,"\015\012")) { ^ mail.c:1012:3: 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:3: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = mail_open (stream,s+1,options)) { ^ mail.c:1216:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = mail_open (stream,mb.mailbox,options)) { ^ mail.c:1243:7: 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:5: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ mail.c:1779:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (*stream->dtb->header) (stream,msgno,&rt.size,flags)) { ^ mail.c: In function 'mail_fetch_text': mail.c:1816:5: 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:5: 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:5: 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:5: 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:5: 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:2: 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:3: 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:3: 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:5: 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:4: 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:5: 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (lines = lines->next); ^ mail.c: In function 'mail_filter': mail.c:3371:5: 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:3: 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:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (body = body->nested.msg->body) ^ mail.c:3772:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] rfc822_base64 ((unsigned char *) s,i,&st.size)) { ^ mail.c:3778:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (st = st->next); ^ mail.c: In function 'mail_search_addr': mail.c:3888:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); ^ mail.c:3889:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); ^ mail.c:3890:7: 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:5: 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:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4372:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4380:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4387:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ mail.c:4405:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4413:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4420:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ mail.c:4438:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4446:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4453:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ mail.c:4472:6: 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:3: 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:3: 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:3: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { ^ mail.c:4951:11: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = mail_thread_parse_msgid (s,&s)) { ^ mail.c:5187:7: 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:5: 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:7: 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:3: 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:3: 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:3: 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:3: 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:3: 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:5: 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:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ ^ newsrc.c:368:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = newsrc_create (stream,NIL)) bf = NIL; ^ newsrc.c:384:5: 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:8: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (db,"r")) { /* make sure not already there */ ^ smanager.c:48:7: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (sbname,"r")) *sdb = (void *) f; ^ smanager.c:123:5: 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:343:1: warning: missing braces around initializer [-Wmissing-braces] }; ^ utf8.c:343:1: warning: (near initialization for 'utf8_csvalid[92]') [-Wmissing-braces] utf8.c:370:1: warning: missing braces around initializer [-Wmissing-braces] }; ^ utf8.c:370:1: warning: (near initialization for 'utf8_scvalid[21]') [-Wmissing-braces] utf8.c: In function 'utf8_rmap_cs': utf8.c:662:3: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (cs = utf8_charset (s)) { ^ utf8.c: In function 'ucs4_decompose': utf8.c:2395:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (m = (struct decomposemore *) *more) switch (m->type) { ^ utf8.c:2418:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { ^ utf8.c:2448:7: 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:2375:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] #define RECURSIVEMORE struct recursivemore ^ utf8.c:2513:15: note: in expansion of macro 'RECURSIVEMORE' if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { ^ utf8.c:2533:5: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (st = st->next); ^ utf8aux.c: In function 'utf8_mime2text': utf8aux.c:136:2: 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:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (test,'/')) *++s = '\0'; ^ dummy.c:170:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ dummy.c:176:5: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dp = opendir (tmp)) { /* do nothing if can't open directory */ ^ dummy.c:294:5: 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:3: 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:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); ^ 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (tmp,"wb+")) unlink (tmp); ^ netmsg.c:73:3: 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 fdstring.c: In function 'fd_string_setpos': fdstring.c:94:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s->cursize = min (s->chunksize,SIZE (s))) { ^ fdstring.c:97:10: 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:8: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = d = strchr (tmp,':')) { ^ rfc822.c:204:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *d++) if (c != ' ') *t++ = c; ^ rfc822.c:218:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = rfc822_parse_phrase (d)) *t = '\0'; ^ rfc822.c:229:4: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (m = GETPOS (bs)) m--; /* get position in front of character */ ^ rfc822.c:394:2: 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:7: 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:3: 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:5: 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:3: 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:3: 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:5: 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:3: 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:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = rfc822_parse_word (string,wspecials)) { ^ rfc822.c:1108:7: 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:4: 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:5: 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:5: 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:5: 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:5: 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:2: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = net_getline (LOCAL->nntpstream->netstream)) { ^ nntp.c:358:7: 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:3: 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:3: 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:5: 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:5: 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:4: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (ov->subject,'\t')) { ^ nntp.c:1042:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->date = strchr (t,'\t')) { ^ nntp.c:1049:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->message_id = strchr (ov->date,'\t')) { ^ nntp.c:1053:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->references = strchr (ov->message_id,'\t')) { ^ nntp.c:1057:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (ov->references,'\t')) { ^ nntp.c:1062:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (t,'\t')) { ^ nntp.c:1066:8: 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:7: 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:1152:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] &LOCAL->txtsize,NIL)) break; ^ nntp.c: In function 'nntp_search': nntp.c:1216:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (set = pgm->msgno) { /* must be inside this sequence */ ^ nntp.c:1277:5: 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:7: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (v,'\t')) { ^ nntp.c:1524:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { ^ nntp.c:1529:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (t,'\t')) { ^ nntp.c: In function 'nntp_open_full': nntp.c:1682:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] "*nntps",nntp_sslport ? nntp_sslport : NNTPSSLPORT)) { ^ nntp.c:1723:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (mb.novalidate ? NET_NOVALIDATECERT:NIL))) ^ nntp.c: In function 'nntp_extensions': nntp.c:1817:5: 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:3: 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:3: 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:11: 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), ^ nntp.c: In function 'nntp_header': nntp.c:1100:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` smtp.c smtp.c: In function 'smtp_open_full': smtp.c:175:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] "*smtps",smtp_sslport ? smtp_sslport : SMTPSSLPORT)) { ^ smtp.c: In function 'smtp_soutr': smtp.c:783:3: 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:3: 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:3: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ^ imap4r1.c:1317:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c: In function 'imap_structure': imap4r1.c:1500:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] min (set->last,stream->nmsgs)) { ^ imap4r1.c:1522:3: 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:5: 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:5: 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:7: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ^ imap4r1.c:2705:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c: In function 'imap_send': imap4r1.c:2927:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (arglst = args) while (arg = *arglst++) { ^ imap4r1.c:2927:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c:2947:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; ^ imap4r1.c:2960:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] CMDBASE+MAXCOMMAND)) return reply; ^ imap4r1.c:2963:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (list = list->next); ^ imap4r1.c:2968:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] CMDBASE+MAXCOMMAND)) ^ imap4r1.c:3053:7: 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:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = map->flags) { /* flags given? */ ^ imap4r1.c:3088:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] CMDBASE+MAXCOMMAND)) return reply; ^ imap4r1.c:3091:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,map->message)) ^ imap4r1.c:3121:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (list = list->next); ^ imap4r1.c: In function 'imap_send_spgm': imap4r1.c:3355:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (hdr = pgm->header) do { ^ imap4r1.c:3357:5: 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:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (hdr = hdr->next); ^ imap4r1.c:3365:5: 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:5: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,s,&st)) return reply; ^ imap4r1.c:3454:5: 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:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (prop = (strtok_r (t," )",&r))) { ^ imap4r1.c:3808:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s = t,' ')) *t++ = '\0'; ^ imap4r1.c:3907:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = strtok_r (NIL," )",&r)); ^ imap4r1.c:3911:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = strtoul (t,NIL,10)) { ^ imap4r1.c:3920:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:3944:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { ^ imap4r1.c:4008:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strtok_r (reply->text+1," ",&r)) do { ^ imap4r1.c:4017:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:4028:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = imap_parse_astring (stream,&s,reply,&j)) { ^ imap4r1.c:4046:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { /* parse namespace results */ ^ imap4r1.c:4166:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s,' ')) t = s; ^ imap4r1.c:4169:6: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; ^ imap4r1.c:4275:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) ^ imap4r1.c:4286:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strtok_r (s+1," ",&r)) do { ^ imap4r1.c:4300:2: 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:5: 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:7: 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:7: 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:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ imap4r1.c:5165:7: 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:7: 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:3: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (th = thr) { ^ imap4r1.c:5477:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c:5520:5: 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:3: 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:3: 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:3: 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:429:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); ^ pop3.c: In function 'pop3_capa': pop3.c:499:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (args = strchr (t,' ')) *args++ = '\0'; ^ pop3.c:510:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr(args,' ')){/* separate time from possible USER */ ^ pop3.c:521:7: 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:5: 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:950:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LONGT) { /* build selected sequence if needed */ ^ pop3.c: In function 'pop3_header': pop3.c:848:13: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = (unsigned char *) ^ 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ unix.c: In function 'unix_rename': unix.c:418:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ unix.c: In function 'unix_open': unix.c:530:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^ unix.c: In function 'unix_expunge': unix.c:849:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] unix_parse (stream,&lock,LOCK_EX)) { ^ 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (i = sbuf.st_size - LOCAL->filesize) { ^ unix.c:1770:8: 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:5: 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:5: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ unix.c:2327:5: 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:17: 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:10: 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:10: 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), ^ unix.c: In function 'unix_text_work': unix.c:707:10: 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:12: 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:15: 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:15: 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:9: 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:15: 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:12: 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:7: 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:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^ unix.c:2629:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^ unix.c:2640:14: 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 mbx.c: In function 'mbx_isvalid': mbx.c:233:8: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (flock (fd,LOCK_SH) || ^ mbx.c:303:7: warning: implicit declaration of function 'utime' [-Wimplicit-function-declaration] utime (tmp,tp); /* set the times */ ^ mbx.c: In function 'mbx_rename': mbx.c:480:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (tmp,'/')) { ^ mbx.c: In function 'mbx_ping': mbx.c:825:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (ret = mbx_parse (stream)) { ^ mbx.c:829:4: 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:890:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mail_sequence (stream,sequence)) : LONGT) { ^ mbx.c:895:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = hdrlen + txtlen) { ^ mbx.c: In function 'mbx_copy': mbx.c:1035:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = stream->user_flags[find_rightmost_bit (&j)]) ^ mbx.c:1044:7: 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:3: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (m = (LOCAL->filesize -= delta) - pos) { ^ mbx.c:1795:7: 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:10: 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:12: 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:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^ mbx.c:1060:15: 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:17: 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:8: 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:11: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^ mbx.c:1781:15: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mmdf.c: In function 'mmdf_rename': mmdf.c:557:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ mmdf.c: In function 'mmdf_open': mmdf.c:669:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^ mmdf.c: In function 'mmdf_expunge': mmdf.c:988:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mmdf_parse (stream,&lock,LOCK_EX)) { ^ 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (i = sbuf.st_size - LOCAL->filesize) { ^ mmdf.c:1934:8: 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:5: 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:5: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ mmdf.c:2473:5: 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:17: 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:10: 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:10: 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), ^ mmdf.c: In function 'mmdf_text_work': mmdf.c:846:10: 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:12: 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:15: 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:15: 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:9: 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:15: 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:12: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ tenex.c: In function 'tenex_rename': tenex.c:315:3: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (flock (fd,LOCK_EX|LOCK_NB)) { ^ tenex.c:324:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = hdrlen + txtlen) { ^ tenex.c: In function 'tenex_fast': tenex.c:516:9: 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:10: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,*length = i); ^ tenex.c:572:10: 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:10: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,i); ^ tenex.c:629:12: 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:12: 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:11: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^ tenex.c:917:12: 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:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^ tenex.c:1016:15: 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:15: 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:7: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mtx.c: In function 'mtx_rename': mtx.c:308:3: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (flock (fd,LOCK_EX|LOCK_NB)) { ^ mtx.c:317:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = hdrlen + txtlen) { ^ mtx.c: In function 'mtx_header': mtx.c:515:8: 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:12: 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:11: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^ mtx.c:827:12: 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:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^ mtx.c:926:15: 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:15: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (pattern,'.')) *++s = '\0'; ^ news.c:234:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] news.c:243:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = strchr (s,'.')) *s = '/'; ^ news.c:370:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:10: 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:10: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); ^ phile.c:321:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = phile_type (buf->data,buf->size,&j)) { ^ phile.c:317:8: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strpbrk (s," \t")) { ^ mh.c: In function 'mh_dirfmttest': mh.c:330:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (test,'/')) *++s = '\0'; ^ mh.c:362:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ mh.c:369:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (file,'/')) { ^ mh.c: In function 'mh_lsub': mh.c:407:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dp = opendir (curdir)) { /* open directory */ ^ mh.c:432:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^ mh.c:519:5: 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:5: 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:5: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mh.c:940:6: warning: too many arguments for format [-Wformat-extra-args] s,strerror (errno)); ^ mh.c: In function 'mh_expunge': mh.c:985:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mail_sequence (stream,sequence)) : LONGT) { ^ mh.c: In function 'mh_append': mh.c:1131:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:3: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mh.c: In function 'mh_path': mh.c:251:12: 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:5: 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:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^ mx.c:398:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (mx_file (tmp1,newname),'/')) { ^ mx.c:462:7: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:7: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:7: 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:5: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mx.c:804:6: warning: too many arguments for format [-Wformat-extra-args] s,strerror (errno)); ^ mx.c: In function 'mx_expunge': mx.c:850:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mx_lockindex (stream)) { /* lock the index */ ^ mx.c: In function 'mx_copy': mx.c:940:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] >= 0)) { ^ mx.c:949:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = elt->user_flags) do ^ mx.c:950:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = stream->user_flags[find_rightmost_bit (&j)]) ^ mx.c:960:4: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *s++) if (!isdigit (c)) return NIL; ^ mx.c: In function 'mx_lockindex': mx.c:1173:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ ^ mx.c:1189:7: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mx.c: In function 'mx_header': mx.c:636:10: 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:10: 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:15: 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:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:420:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] fprintf (f,MTAFMT,now,0,now); ^ mix.c: In function 'mix_delete': mix.c:471:3: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] else if (((fd = open (tmp,O_RDWR,NIL)) < 0) || flock (fd,LOCK_EX|LOCK_NB)) ^ mix.c:480:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^ mix.c:483:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (tmp1,'/')) { ^ mix.c:556:7: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:7: 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:5: 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:5: 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:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { ^ mix.c:991:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (LOCAL->internal ? NIL : 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:1039:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LOCAL->internal ? NIL : LONGT)) { ^ mix.c:1054:7: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:7: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:7: 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:7: 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:1337:7: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' [-Wformat=] file,size,set->last); ^ mix.c:1340:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (set = set->next); ^ mix.c: In function 'mix_copy': mix.c:1382:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LONGT : NIL) { ^ mix.c:1393:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] sprintf (local->buf,MSRFMT,MSGTOK,0,0,0,0,0,0,0,'+',0,0,0); ^ mix.c:1393:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] mix.c:1403:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (msgf = mix_data_open (astream,&fd,&size,newsize)) { ^ mix.c:1432:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = elt->user_flags) do ^ mix.c:1456:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mix_index_update (astream,idxf,LONGT))) { ^ 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:1520:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] NIL : mix_create (NIL,"INBOX")) ^ mix.c:1540:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LONGT : NIL) { ^ mix.c:1550:7: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] sprintf (local->buf,MSRFMT,MSGTOK,0,0,0,0,0,0,0,'+',0,0,0); ^ mix.c:1550:7: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] mix.c:1555:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (s = mix_meta_slurp (stream,&i)) { ^ mix.c:1750:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strstr (t = s,"\015\012")) { ^ mix.c:1779:8: 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:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] sprintf (tmp,IXRFMT,0,14,4,4,13,0,0,'+',0,0,0,0,0,0,0); ^ mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] mix.c: In function 'mix_status_update': mix.c:2318:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] sprintf (tmp,STRFMT,0,0,0,0); ^ mix.c:2318:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] mix.c:2318:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] mix.c: In function 'mix_data_open': mix.c:2425:5: 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:9: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (sl = s->references) /* count length of references */ ^ mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Wformat=] s->message_id ? strlen (s->message_id) + 1 : 0,j); ^ mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=] mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'size_t' [-Wformat=] mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'size_t' [-Wformat=] mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=] mix.c: In function 'mix_read_record': mix.c:2723:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (buf,'\012')) { ^ mix.c: In function 'mix_copy': mix.c:1477:12: 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:14: 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:15: 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:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (idxf),sbuf.st_size); ^ mix.c:2288:26: 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:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (statf),sbuf.st_size); ^ mix.c:2369:26: 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:26: 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:15: 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 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:3: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (resp.value = (*responder) ("",0,(unsigned long *) &resp.length)) { ^ auth_gss.c:399:2: 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:406:4: 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:414:2: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'void *' [-Wformat=] SERVER_LOG ("GSSAPI mechanism status: %s",resp.value); ^ 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_ext.c:66:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_md5.c:120:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (user = (*responder) (chal,cl = strlen (chal),NIL)) { ^ auth_md5.c:157:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (hash = strrchr (user,' ')) { ^ auth_md5.c:160:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ auth_md5.c:162:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (authuser = strchr (user,'*')) *authuser++ = '\0'; ^ auth_md5.c:240:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_pla.c:94:2: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (challenge = (*challenger) (stream,&clen)) { ^ auth_log.c:81:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (user = (*responder) (PWD_USER,sizeof (PWD_USER),NIL)) { ^ auth_log.c:108:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pass = (*responder) (PWD_PWD,sizeof (PWD_PWD),NIL)) { ^ auth_log.c:110:7: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = auth_md5_pwd (user)) { ^ env_unix.c:676:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (base->lock,'/')) { ^ env_unix.c: In function 'lock_work': env_unix.c:1374:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (op & LOCK_NB) i = flock (fd,op); ^ env_unix.c: In function 'dorc': env_unix.c:1582:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (d = mail_valid (NIL,"INBOX",NIL)) { ^ In file included from osdep.c:30:0: mail.h:1067:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] #define DRIVER struct driver ^ env_unix.c:1595:17: note: in expansion of macro 'DRIVER' 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = ip_stringtoaddr (tmp,&adrlen,&family)) { ^ tcp_unix.c:215:5: 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:5: 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:3: 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:2: 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:5: 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:170:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] getpwnam (name) : NIL) { ^ osdep.c: In function 'ssl_start_work': osdep.c:479:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (char *) mail_parameters (NIL,GET_SSLCAPATH,NIL)) ^ osdep.c:483:5: 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:493:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] NIL,NIL,"")) { ^ osdep.c: In function 'ssl_validate_cert': osdep.c:575:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (s = strstr (cert->name,"/CN=")) { ^ osdep.c:576:5: 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:1007:3: 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:1029:7: 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:10: 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:43: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) d) d->flags &= ~DR_DISABLE; ^ mail.c:390:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) d) d->flags |= DR_DISABLE; ^ mail.c:395:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_DISABLE; ^ mail.c:400:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_DISABLE; ^ mail.c:405:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags &= ~AU_HIDE; ^ mail.c:410:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ret = (void *) a) a->flags |= AU_HIDE; ^ mail.c:644:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = smtp_parameters (function,value)) ret = r; ^ mail.c:645:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = env_parameters (function,value)) ret = r; ^ mail.c:646:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = tcp_parameters (function,value)) ret = r; ^ mail.c:648:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (r = (*stream->dtb->parameters) (function,value)) ret = r; ^ mail.c:652:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strpbrk (s = t,"/:=")) { ^ mail.c:784:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strpbrk (v = t,"/:")) { ^ mail.c: In function 'mail_list': mail.c:919:3: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (mailbox,"\015\012")) { ^ mail.c:1012:3: 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:3: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = mail_open (stream,s+1,options)) { ^ mail.c:1216:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = mail_open (stream,mb.mailbox,options)) { ^ mail.c:1243:7: 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:5: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (msgno = mail_msgno (stream,msgno)) flags &= ~FT_UID; ^ mail.c:1779:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (*stream->dtb->header) (stream,msgno,&rt.size,flags)) { ^ mail.c: In function 'mail_fetch_text': mail.c:1816:5: 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:5: 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:5: 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:5: 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:5: 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:2: 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:3: 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:3: 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:5: 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:4: 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:5: 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (lines = lines->next); ^ mail.c: In function 'mail_filter': mail.c:3371:5: 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:3: 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:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (body = body->nested.msg->body) ^ mail.c:3772:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] rfc822_base64 ((unsigned char *) s,i,&st.size)) { ^ mail.c:3778:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (st = st->next); ^ mail.c: In function 'mail_search_addr': mail.c:3888:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (tadr.personal = a->personal) k += 3 + 2*strlen (a->personal); ^ mail.c:3889:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (tadr.adl = a->adl) k += 3 + 2*strlen (a->adl); ^ mail.c:3890:7: 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:5: 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:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4372:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4380:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4387:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ mail.c:4405:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4413:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4420:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ mail.c:4438:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for (x = ++t; x = strpbrk (x,"\012\015"); x++) ^ mail.c:4446:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (v,':')) { ^ mail.c:4453:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&t,BADHOST,0)) { ^ mail.c:4472:6: 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:3: 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:3: 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:3: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (env = mail_fetch_structure (stream,s->num,NIL,NIL)) { ^ mail.c:4951:11: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = mail_thread_parse_msgid (s,&s)) { ^ mail.c:5187:7: 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:5: 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:7: 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:3: 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:3: 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:3: 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:3: 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:3: 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:5: 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:2: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (newsrc,"rb")) {/* have existing newsrc file? */ ^ newsrc.c:368:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = newsrc_create (stream,NIL)) bf = NIL; ^ newsrc.c:384:5: 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:8: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (db,"r")) { /* make sure not already there */ ^ smanager.c:48:7: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (sbname,"r")) *sdb = (void *) f; ^ smanager.c:123:5: 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:343:1: warning: missing braces around initializer [-Wmissing-braces] }; ^ utf8.c:343:1: warning: (near initialization for 'utf8_csvalid[92]') [-Wmissing-braces] utf8.c:370:1: warning: missing braces around initializer [-Wmissing-braces] }; ^ utf8.c:370:1: warning: (near initialization for 'utf8_scvalid[21]') [-Wmissing-braces] utf8.c: In function 'utf8_rmap_cs': utf8.c:662:3: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (cs = utf8_charset (s)) { ^ utf8.c: In function 'ucs4_decompose': utf8.c:2395:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (m = (struct decomposemore *) *more) switch (m->type) { ^ utf8.c:2418:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = ucs4_dbmploixtab[c - UCS4_BMPLOMIN]) { ^ utf8.c:2448:7: 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:2375:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] #define RECURSIVEMORE struct recursivemore ^ utf8.c:2513:15: note: in expansion of macro 'RECURSIVEMORE' if (mr = (RECURSIVEMORE *) *more) switch (mr->more->type) { ^ utf8.c:2533:5: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (st = st->next); ^ utf8aux.c: In function 'utf8_mime2text': utf8aux.c:136:2: 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:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (test,'/')) *++s = '\0'; ^ dummy.c:170:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ dummy.c:176:5: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dp = opendir (tmp)) { /* do nothing if can't open directory */ ^ dummy.c:294:5: 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:3: 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:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); ^ 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (f = fopen (tmp,"wb+")) unlink (tmp); ^ netmsg.c:73:3: 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 fdstring.c: In function 'fd_string_setpos': fdstring.c:94:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s->cursize = min (s->chunksize,SIZE (s))) { ^ fdstring.c:97:10: 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:8: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = d = strchr (tmp,':')) { ^ rfc822.c:204:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *d++) if (c != ' ') *t++ = c; ^ rfc822.c:218:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = rfc822_parse_phrase (d)) *t = '\0'; ^ rfc822.c:229:4: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (m = GETPOS (bs)) m--; /* get position in front of character */ ^ rfc822.c:394:2: 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:7: 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:3: 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:5: 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:3: 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:3: 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:5: 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:3: 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:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = rfc822_parse_word (string,wspecials)) { ^ rfc822.c:1108:7: 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:4: 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:5: 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:5: 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:5: 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:5: 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:2: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = net_getline (LOCAL->nntpstream->netstream)) { ^ nntp.c:358:7: 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:3: 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:3: 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:5: 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:5: 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:4: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (ov->subject,'\t')) { ^ nntp.c:1042:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->date = strchr (t,'\t')) { ^ nntp.c:1049:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->message_id = strchr (ov->date,'\t')) { ^ nntp.c:1053:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (ov->references = strchr (ov->message_id,'\t')) { ^ nntp.c:1057:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (ov->references,'\t')) { ^ nntp.c:1062:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (t,'\t')) { ^ nntp.c:1066:8: 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:7: 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:1152:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] &LOCAL->txtsize,NIL)) break; ^ nntp.c: In function 'nntp_search': nntp.c:1216:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (set = pgm->msgno) { /* must be inside this sequence */ ^ nntp.c:1277:5: 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:7: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (v,'\t')) { ^ nntp.c:1524:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (adr = rfc822_parse_address (&adr,adr,&v,BADHOST,0)) { ^ nntp.c:1529:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strchr (t,'\t')) { ^ nntp.c: In function 'nntp_open_full': nntp.c:1682:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] "*nntps",nntp_sslport ? nntp_sslport : NNTPSSLPORT)) { ^ nntp.c:1723:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (mb.novalidate ? NET_NOVALIDATECERT:NIL))) ^ nntp.c: In function 'nntp_extensions': nntp.c:1817:5: 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:3: 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:3: 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:11: 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), ^ nntp.c: In function 'nntp_header': nntp.c:1100:8: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = ^ cc -fPIC -DPIC -D_REENTRANT -c `cat CFLAGS` smtp.c -o smtp.so smtp.c: In function 'smtp_open_full': smtp.c:175:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] "*smtps",smtp_sslport ? smtp_sslport : SMTPSSLPORT)) { ^ smtp.c: In function 'smtp_soutr': smtp.c:783:3: 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:3: 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:3: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ^ imap4r1.c:1317:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c: In function 'imap_structure': imap4r1.c:1500:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] min (set->last,stream->nmsgs)) { ^ imap4r1.c:1522:3: 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:5: 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:5: 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:7: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (t = thr) { ^ imap4r1.c:2705:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c: In function 'imap_send': imap4r1.c:2927:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (arglst = args) while (arg = *arglst++) { ^ imap4r1.c:2927:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c:2947:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,arg->text)) return reply; ^ imap4r1.c:2960:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] CMDBASE+MAXCOMMAND)) return reply; ^ imap4r1.c:2963:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (list = list->next); ^ imap4r1.c:2968:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] CMDBASE+MAXCOMMAND)) ^ imap4r1.c:3053:7: 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:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = map->flags) { /* flags given? */ ^ imap4r1.c:3088:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] CMDBASE+MAXCOMMAND)) return reply; ^ imap4r1.c:3091:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,&s,map->message)) ^ imap4r1.c:3121:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (list = list->next); ^ imap4r1.c: In function 'imap_send_spgm': imap4r1.c:3355:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (hdr = pgm->header) do { ^ imap4r1.c:3357:5: 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:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (hdr = hdr->next); ^ imap4r1.c:3365:5: 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:5: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (reply = imap_send_literal (stream,tag,s,&st)) return reply; ^ imap4r1.c:3454:5: 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:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (prop = (strtok_r (t," )",&r))) { ^ imap4r1.c:3808:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s = t,' ')) *t++ = '\0'; ^ imap4r1.c:3907:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = strtok_r (NIL," )",&r)); ^ imap4r1.c:3911:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = strtoul (t,NIL,10)) { ^ imap4r1.c:3920:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:3944:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { ^ imap4r1.c:4008:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strtok_r (reply->text+1," ",&r)) do { ^ imap4r1.c:4017:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (t = strtok_r (NIL," ",&r)); ^ imap4r1.c:4028:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = imap_parse_astring (stream,&s,reply,&j)) { ^ imap4r1.c:4046:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = reply->text) { /* parse namespace results */ ^ imap4r1.c:4166:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (t = strchr (s,' ')) t = s; ^ imap4r1.c:4169:6: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (strncpy (t = LOCAL->tmp,s,i),' ')) *s++ = '\0'; ^ imap4r1.c:4275:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (elt = (MESSAGECACHE *) (*mc) (stream,j,CH_ELT)) ^ imap4r1.c:4286:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strtok_r (s+1," ",&r)) do { ^ imap4r1.c:4300:2: 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:5: 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:7: 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:7: 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:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = imap_parse_string (stream,txtptr,reply,NIL,NIL,LONGT)) { ^ imap4r1.c:5165:7: 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:7: 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:3: 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:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (thr = LOCAL->cap.threader) while (th = thr) { ^ imap4r1.c:5477:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] imap4r1.c:5520:5: 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:3: 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:3: 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:3: 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:429:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (LOCAL->loser = mb.loser) strcat (tmp,"/loser"); ^ pop3.c: In function 'pop3_capa': pop3.c:499:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (args = strchr (t,' ')) *args++ = '\0'; ^ pop3.c:510:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr(args,' ')){/* separate time from possible USER */ ^ pop3.c:521:7: 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:5: 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:950:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LONGT) { /* build selected sequence if needed */ ^ pop3.c: In function 'pop3_header': pop3.c:848:13: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = (unsigned char *) ^ 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ unix.c: In function 'unix_rename': unix.c:418:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ unix.c: In function 'unix_open': unix.c:530:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^ unix.c: In function 'unix_expunge': unix.c:849:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] unix_parse (stream,&lock,LOCK_EX)) { ^ 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (i = sbuf.st_size - LOCAL->filesize) { ^ unix.c:1770:8: 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:5: 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:5: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ unix.c:2327:5: 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:17: 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:10: 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:10: 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), ^ unix.c: In function 'unix_text_work': unix.c:707:10: 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:12: 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:15: 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:15: 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:9: 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:15: 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:12: 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:7: 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:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^ unix.c:2629:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^ unix.c:2640:14: 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 mbx.c: In function 'mbx_isvalid': mbx.c:233:8: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (flock (fd,LOCK_SH) || ^ mbx.c:303:7: warning: implicit declaration of function 'utime' [-Wimplicit-function-declaration] utime (tmp,tp); /* set the times */ ^ mbx.c: In function 'mbx_rename': mbx.c:480:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (tmp,'/')) { ^ mbx.c: In function 'mbx_ping': mbx.c:825:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (ret = mbx_parse (stream)) { ^ mbx.c:829:4: 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:890:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mail_sequence (stream,sequence)) : LONGT) { ^ mbx.c:895:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = hdrlen + txtlen) { ^ mbx.c: In function 'mbx_copy': mbx.c:1035:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = stream->user_flags[find_rightmost_bit (&j)]) ^ mbx.c:1044:7: 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:3: 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:7: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (m = (LOCAL->filesize -= delta) - pos) { ^ mbx.c:1795:7: 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:10: 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:12: 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:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^ mbx.c:1060:15: 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:17: 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:8: 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:11: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^ mbx.c:1781:15: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mmdf.c: In function 'mmdf_rename': mmdf.c:557:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (s,'/')) { ^ mmdf.c: In function 'mmdf_open': mmdf.c:669:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^ mmdf.c: In function 'mmdf_expunge': mmdf.c:988:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mmdf_parse (stream,&lock,LOCK_EX)) { ^ 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (i = sbuf.st_size - LOCAL->filesize) { ^ mmdf.c:1934:8: 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:5: 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:5: 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = i ? ((f->buflen - i) % OVERFLOWBUFLEN) : f->buflen) { ^ mmdf.c:2473:5: 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:17: 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:10: 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:10: 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), ^ mmdf.c: In function 'mmdf_text_work': mmdf.c:846:10: 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:12: 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:15: 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:15: 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:9: 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:15: 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:12: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ tenex.c: In function 'tenex_rename': tenex.c:315:3: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (flock (fd,LOCK_EX|LOCK_NB)) { ^ tenex.c:324:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = hdrlen + txtlen) { ^ tenex.c: In function 'tenex_fast': tenex.c:516:9: 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:10: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,*length = i); ^ tenex.c:572:10: 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:10: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,i); ^ tenex.c:629:12: 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:12: 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:11: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^ tenex.c:917:12: 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:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^ tenex.c:1016:15: 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:15: 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:7: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mtx.c: In function 'mtx_rename': mtx.c:308:3: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] if (flock (fd,LOCK_EX|LOCK_NB)) { ^ mtx.c:317:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = hdrlen + txtlen) { ^ mtx.c: In function 'mtx_header': mtx.c:515:8: 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:12: 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:11: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^ mtx.c:827:12: 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:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^ mtx.c:926:15: 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:15: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (pattern,'.')) *++s = '\0'; ^ news.c:234:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] news.c:243:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = strchr (s,'.')) *s = '/'; ^ news.c:370:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:10: 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:10: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (pw = getpwuid (sbuf.st_uid)) strcpy (tmp,pw->pw_name); ^ phile.c:321:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = phile_type (buf->data,buf->size,&j)) { ^ phile.c:317:8: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (v = strpbrk (s," \t")) { ^ mh.c: In function 'mh_dirfmttest': mh.c:330:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (test,'/')) *++s = '\0'; ^ mh.c:362:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strpbrk (test,"%*")) { ^ mh.c:369:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (file,'/')) { ^ mh.c: In function 'mh_lsub': mh.c:407:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dp = opendir (curdir)) { /* open directory */ ^ mh.c:432:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^ mh.c:519:5: 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:5: 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:5: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mh.c:940:6: warning: too many arguments for format [-Wformat-extra-args] s,strerror (errno)); ^ mh.c: In function 'mh_expunge': mh.c:985:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mail_sequence (stream,sequence)) : LONGT) { ^ mh.c: In function 'mh_append': mh.c:1131:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:3: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mh.c: In function 'mh_path': mh.c:251:12: 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:5: 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:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^ mx.c:398:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (mx_file (tmp1,newname),'/')) { ^ mx.c:462:7: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:7: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:7: 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:5: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = (void *) names) fs_give ((void **) &s); ^ mx.c:804:6: warning: too many arguments for format [-Wformat-extra-args] s,strerror (errno)); ^ mx.c: In function 'mx_expunge': mx.c:850:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mx_lockindex (stream)) { /* lock the index */ ^ mx.c: In function 'mx_copy': mx.c:940:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] >= 0)) { ^ mx.c:949:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = elt->user_flags) do ^ mx.c:950:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = stream->user_flags[find_rightmost_bit (&j)]) ^ mx.c:960:4: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *s++) if (!isdigit (c)) return NIL; ^ mx.c: In function 'mx_lockindex': mx.c:1173:5: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ ^ mx.c:1189:7: 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' [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^ mx.c: In function 'mx_header': mx.c:636:10: 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:10: 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:15: 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:3: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:3: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:3: 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:420:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] fprintf (f,MTAFMT,now,0,now); ^ mix.c: In function 'mix_delete': mix.c:471:3: warning: implicit declaration of function 'safe_flock' [-Wimplicit-function-declaration] else if (((fd = open (tmp,O_RDWR,NIL)) < 0) || flock (fd,LOCK_EX|LOCK_NB)) ^ mix.c:480:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (dirp = opendir (tmp)) { /* open directory */ ^ mix.c:483:7: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strrchr (tmp1,'/')) { ^ mix.c:556:7: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:7: 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:5: 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:5: 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:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (snarfok = mail_append_full (stream,"INBOX",flags,date,&msg)) { ^ mix.c:991:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (LOCAL->internal ? NIL : 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:1039:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LOCAL->internal ? NIL : LONGT)) { ^ mix.c:1054:7: warning: passing argument 3 of 'scandir' from incompatible pointer type [enabled by default] 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:7: warning: passing argument 4 of 'scandir' from incompatible pointer type [enabled by default] 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:7: 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:7: 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:1337:7: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' [-Wformat=] file,size,set->last); ^ mix.c:1340:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (set = set->next); ^ mix.c: In function 'mix_copy': mix.c:1382:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LONGT : NIL) { ^ mix.c:1393:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] sprintf (local->buf,MSRFMT,MSGTOK,0,0,0,0,0,0,0,'+',0,0,0); ^ mix.c:1393:5: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] mix.c:1403:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (msgf = mix_data_open (astream,&fd,&size,newsize)) { ^ mix.c:1432:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (j = elt->user_flags) do ^ mix.c:1456:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] mix_index_update (astream,idxf,LONGT))) { ^ 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:1520:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] NIL : mix_create (NIL,"INBOX")) ^ mix.c:1540:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] LONGT : NIL) { ^ mix.c:1550:7: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] sprintf (local->buf,MSRFMT,MSGTOK,0,0,0,0,0,0,0,'+',0,0,0); ^ mix.c:1550:7: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] mix.c:1555:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (s = mix_meta_slurp (stream,&i)) { ^ mix.c:1750:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strstr (t = s,"\015\012")) { ^ mix.c:1779:8: 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:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] sprintf (tmp,IXRFMT,0,14,4,4,13,0,0,'+',0,0,0,0,0,0,0); ^ mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] mix.c:2237:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] mix.c: In function 'mix_status_update': mix.c:2318:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] sprintf (tmp,STRFMT,0,0,0,0); ^ mix.c:2318:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] mix.c:2318:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] mix.c: In function 'mix_data_open': mix.c:2425:5: 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:9: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (sl = s->references) /* count length of references */ ^ mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Wformat=] s->message_id ? strlen (s->message_id) + 1 : 0,j); ^ mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=] mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'size_t' [-Wformat=] mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'size_t' [-Wformat=] mix.c:2676:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=] mix.c: In function 'mix_read_record': mix.c:2723:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (buf,'\012')) { ^ mix.c: In function 'mix_copy': mix.c:1477:12: 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:14: 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:15: 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:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (idxf),sbuf.st_size); ^ mix.c:2288:26: 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:14: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (statf),sbuf.st_size); ^ mix.c:2369:26: 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:26: 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:15: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (suffix = strchr (tmp,',')) suffix[0] = '\0'; ^ mtest.c:132:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = sm_read (&sdb)) { ^ mtest.c:135:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = sm_read (&sdb)); ^ mtest.c: In function 'mm': mtest.c:165:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (arg = strchr (cmd,' ')) *arg++ = '\0'; ^ mtest.c:205:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = sm_read (&sdb)) { ^ mtest.c:208:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (s = sm_read (&sdb)); ^ mtest.c: In function 'overview_header': mtest.c:393:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = elt->user_flags) { ^ mtest.c: In function 'header': mtest.c:431:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = cache->user_flags) { ^ mtest.c: In function 'display_body': mtest.c:468:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (par = body->parameter) do ^ mtest.c:470:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (par = par->next); ^ mtest.c: In function 'status': mtest.c:525:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = imap_cap (stream)->auth) { ^ mtest.c:528:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (auth = mail_lookup_auth (find_rightmost_bit (&i) + 1)) { ^ mtest.c:574:2: 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: 'gets' is deprecated (declared at /usr/include/bits/stdio2.h:233) [-Wdeprecated-declarations] gets (txt); ^ mtest.c: In function 'mm_login': mtest.c:710:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (user,'\n')) *s = '\0'; ^ mtest.c: In function 'smtptest': mtest.c:782:3: warning: 'gets' is deprecated (declared at /usr/include/bits/stdio2.h:233) [-Wdeprecated-declarations] while (gets (line)) { ^ mtest.c:797:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = smtp_open (hostlist,debug)) { ^ mtest.c:804:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (stream = nntp_open (newslist,debug)) { ^ mtest.c: In function 'prompt': mtest.c:598:8: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result] gets (txt); ^ mtest.c: In function 'mm_login': mtest.c:708:11: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets (user,NETMAXUSER-1,stdin); ^ In file included from /usr/include/stdio.h:937:0, from mtest.c:36: In function 'gets', inlined from 'prompt' at mtest.c:598:8: /usr/include/bits/stdio2.h:237:3: warning: call to '__gets_warn' declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ `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 `gets': /usr/include/bits/stdio2.h:237: warning: the `gets' function is dangerous and should not be used. /usr/include/bits/stdio2.h:236: 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:5: 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:3: 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:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = ssl_start_tls (NIL)) fs_give ((void **) &s); ^ ipop3d.c:197:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = !mail_parameters (NIL,GET_DISABLEPLAINTEXT,NIL)) ^ ipop3d.c:222:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (initial = strtok (NIL,"\015\012")) { ^ ipop3d.c:275:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = ssl_start_tls (pgmname)) { ^ ipop3d.c:291:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (t,':')) { ^ ipop3d.c: In function 'pass_login': ipop3d.c:664:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (user,'*')) *t++ ='\0'; ^ ipop3d.c: In function 'mbxopen': ipop3d.c:780:5: 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:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (proxy,'\n')) *s = '\0'; ^ imapd.c:400:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (cmdbuf,' ')) *t = '\0'; ^ imapd.c:514:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (user = cpystr (mail_auth (s,imap_responder,argc,argv))) { ^ imapd.c:574:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (user,'*')) *s++ ='\0'; ^ imapd.c:592:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (lsterr = ssl_start_tls (pgmname)) response = lose; ^ imapd.c:731:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (s = strtok (NIL," ")); ^ imapd.c:741:8: 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:6: 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:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = snarf (&arg)) charset = cpystr (s); ^ imapd.c:966:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strpbrk (tmp,"\r\n")) *t = '\0'; ^ imapd.c:1132:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (t = strtok (NIL," ")); ^ imapd.c:1217:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (n = ns[i]) { ^ imapd.c:1237:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (p = n->param) do { ^ imapd.c:1244:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (p = p->next); ^ imapd.c:1246:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (n = n->next); ^ imapd.c:1379:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (i = (litplus.size > MAILTMPLEN) ? MAILTMPLEN : litplus.size) { ^ imapd.c:1394:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (tmp,'\012')) { ^ imapd.c:1498:3: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (*size = i) break; /* got atom if non-empty */ ^ imapd.c:2099:3: 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:5: 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:3: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (list = (*t == '(')) t++; /* skip open paren */ ^ imapd.c:2647:3: 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:7: 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (u = elt->user_flags) do /* any user flags? */ ^ imapd.c:3173:5: 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:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (part = body->nested.part) ^ imapd.c: In function 'pbody': imapd.c:3451:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (part = body->nested.part) ^ imapd.c: In function 'pparam': imapd.c:3505:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (param = param->next) PBOUT (' '); ^ imapd.c: In function 'paddr': imapd.c:3531:5: 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:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (cur = cur->next) PBOUT (','); ^ imapd.c: In function 'pastringlist': imapd.c:3690:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (s = s->next); ^ imapd.c: In function 'pnstringorlist': imapd.c:3707:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] } while (s = s->next); ^ imapd.c: In function 'ptext': imapd.c:3765:3: 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:7: 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:5: 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:5: 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:7: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = ad->flags) fs_give ((void **) &ad->flags); ^ imapd.c:4113:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = ad->date) fs_give ((void **) &ad->date); ^ imapd.c:4114:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = ad->msg) fs_give ((void **) &ad->msg); ^ imapd.c: In function 'main': imapd.c:897:12: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] if (j != --i) { ^ `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:285:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (debugp ? OP_DEBUG : NIL))) { ^ mailutil.c:296:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (debugp ? OP_DEBUG : NIL))) { ^ mailutil.c:376:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (t = strchr (tmp+1,'\n')) *t = '\0'; ^ mailutil.c:384:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *t1++) { /* swap delimiters then */ ^ mailutil.c:397:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] (rwcopyp ? NIL : OP_READONLY))) { ^ mailutil.c: In function 'mbxcopy': mailutil.c:595:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (s = strchr (tmp,'\n')) *s = '\0'; ^ mailutil.c:624:7: 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:5: 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:8: 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:11: 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' [-Wimplicit-function-declaration] write (1,"?",1); /* indicate "impossible" failure */ ^ mlock.c: In function 'main': mlock.c:75:3: warning: implicit declaration of function 'getegid' [-Wimplicit-function-declaration] if (!grp || (grp->gr_gid != getegid ())) ^ mlock.c:94:3: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] chdir (dir); ^ mlock.c:113:5: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] if (!stat (lock,&sb) && (time (0) > (sb.st_ctime + LOCKTIMEOUT * 60))) ^ mlock.c:114:7: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink (lock); /* time out lock if enough time has passed */ ^ mlock.c:123:7: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] (unsigned long) getpid ()); ^ mlock.c:125:5: warning: implicit declaration of function 'gethostname' [-Wimplicit-function-declaration] gethostname (hitch + len,MAXHOSTNAMELEN); ^ mlock.c:132:7: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close (ld); /* close the hitching-post */ ^ mlock.c:138:7: warning: implicit declaration of function 'link' [-Wimplicit-function-declaration] i = link (hitch,lock) ? errno : 0; ^ mlock.c:161:7: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] if (tries--) sleep (1); /* sleep 1 second and try again */ ^ mlock.c:169:3: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] read (0,tmp,1); /* read continue signal from parent */ ^ `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:3: 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:5: 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:3: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (mailbox = strchr (user,'+')) { ^ dmail.c: In function 'file_string_setpos': dmail.c:123:11: 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:13: 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 `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:3: 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:7: 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:3: 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:11: 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:13: 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 `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.7IbsGx + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm ++ dirname /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm + cd imap-2007f + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm/usr/lib/ + install -p -m755 ./c-client/libc-client.so.2007 /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm/usr/lib/ + touch c-client.cf + install -p -m644 -D c-client.cf /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm/etc/c-client.cf + ln -s libc-client.so.2007 /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm/usr/lib/libc-client.so + mkdir -p /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm/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-30.el7.arm/usr/include/imap/ + install -m644 ./c-client/linkage.c /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm/usr/include/imap/ + install -m644 ./src/osdep/tops-20/shortsym.h /builddir/build/BUILDROOT/uw-imap-2007f-30.el7.arm/usr/include/imap/ + %ldconfig_scriptlets -n libc-client /var/tmp/rpm-tmp.7IbsGx: line 54: fg: no job control RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.7IbsGx (%install) bogus date in %changelog: Tue May 18 2008 Rex Dieter 2007a1-3 bogus date in %changelog: Thu Jul 16 2004 Rex Dieter 1:2004-0.fdr.5.a Bad exit status from /var/tmp/rpm-tmp.7IbsGx (%install) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 89, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 582, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/uw-imap.spec