Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/procmail.spec'], chrootPath='/var/lib/mock/fedora-37-x86_64-1663683069.963841/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.aq_pmxje:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.aq_pmxje:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '815e7ab1b89e458e92792db3e1cad154', '-D', '/var/lib/mock/fedora-37-x86_64-1663683069.963841/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.aq_pmxje:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/procmail.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False warning: Macro expanded in comment on line 13: %{version}.tar.gz Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1658448000 Wrote: /builddir/build/SRPMS/procmail-3.22-57.fc37_clang15_12.src.rpm RPM build warnings: Macro expanded in comment on line 13: %{version}.tar.gz Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/procmail.spec'], chrootPath='/var/lib/mock/fedora-37-x86_64-1663683069.963841/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.aq_pmxje:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.aq_pmxje:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ff2d0f93083a4642a137237dc0681aab', '-D', '/var/lib/mock/fedora-37-x86_64-1663683069.963841/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.aq_pmxje:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/procmail.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False warning: Macro expanded in comment on line 13: %{version}.tar.gz Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1658448000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nocRWb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf procmail-3.22 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/procmail-3.22.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd procmail-3.22 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (procmail-3.22-rhconfig.patch): + echo 'Patch #0 (procmail-3.22-rhconfig.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .rhconfig --fuzz=0 patching file Makefile patching file config.h Hunk #4 succeeded at 99 (offset 7 lines). Patch #1 (procmail-3.15.1-man.patch): + echo 'Patch #1 (procmail-3.15.1-man.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file man/procmail.man Patch #2 (procmail_3.22-8.debian.patch): + echo 'Patch #2 (procmail_3.22-8.debian.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file examples/advanced patching file man/procmail.man patching file man/procmailrc.man patching file src/comsat.c patching file src/formail.c patching file src/memblk.c patching file src/autoconf patching file src/procmail.c patching file src/pipes.c patching file src/memblk.h patching file src/manconf.c patching file src/recommend.c patching file src/foldinfo.h patching file src/mailfold.c patching file FAQ patching file Makefile patching file debian/changelog patching file debian/control patching file debian/copyright patching file debian/mailstat.1 patching file debian/QuickStart patching file debian/README.Maildir patching file debian/rules Patch #4 (procmail-3.22-truncate.patch): + echo 'Patch #4 (procmail-3.22-truncate.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .truncate --fuzz=0 patching file src/mailfold.c Patch #5 (procmail-3.22-ipv6.patch): + echo 'Patch #5 (procmail-3.22-ipv6.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ipv6 --fuzz=0 patching file src/autoconf patching file src/comsat.c patching file src/network.h Patch #6 (procmail-3.22-getline.patch): + echo 'Patch #6 (procmail-3.22-getline.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .getline --fuzz=0 patching file src/fields.c patching file src/formail.c patching file src/formisc.c patching file src/formisc.h Patch #7 (procmail-3.22-CVE-2014-3618.patch): + echo 'Patch #7 (procmail-3.22-CVE-2014-3618.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .CVE-2014-3618 --fuzz=0 patching file src/formisc.c Patch #8 (procmail-3.22-crash-fix.patch): + echo 'Patch #8 (procmail-3.22-crash-fix.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .crash-fix --fuzz=0 patching file src/cstdio.c patching file src/formail.c patching file src/formisc.c Patch #9 (procmail-3.22-CVE-2017-16844.patch): + echo 'Patch #9 (procmail-3.22-CVE-2017-16844.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .CVE-2017-16844 --fuzz=0 patching file src/formisc.c Patch #10 (procmail-3.22-coverity-scan-fixes.patch): + echo 'Patch #10 (procmail-3.22-coverity-scan-fixes.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .coverity-scan-fixes --fuzz=0 patching file src/cstdio.c patching file src/foldinfo.c patching file src/lmtp.c patching file src/locking.c patching file src/mailfold.c + xargs chmod 644 + find examples -type f + '[' -e /usr/lib/rpm/clang/procmail-run ']' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6j4OWN + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -flto -fno-openmp-implicit-rpath -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + cd procmail-3.22 ++ getconf LFS_CFLAGS + make RPM_OPT_FLAGS= autoconf.h /bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \ "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lsun -lgen -lsockdns" \ "/lib /usr/lib" \ /dev/null "make" o \ "clang" " " " " "procmail lockfile formail mailstat" \ "procmail formail lockfile" \ "procmailrc procmailsc procmailex" "src man" \ "/usr/bin" \ "strip" clang seems to work fine, using that as the C-compiler ...scanning for 11 libraries... Added LDFLAGS= -lm -lc cd src; make ../autoconf.h make[1]: Entering directory '/builddir/build/BUILD/procmail-3.22/src' /bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \ "grep -F" "make" o "100 " \ "/usr/bin" ../autoconf.h Using the following directories for the LOCKINGTESTs: 100 Initiating fcntl()/kernel-locking-support tests Proceeding with kernel-locking-support tests in the background Testing for const Testing for volatile Testing for enum Your system appears to not (correctly) support at least one of: const, volatile, function prototypes, and enum types. Future versions of procmail will probably require support for all of them, so you should either upgrade your compiler to one that's compliant with the ISO C standard (the standard's over 10 years old, for goodness sake), or send email to explaining why you need procmail to continue to support K&R C. Checking for POSIX and ANSI/ISO system include files Checking for network/comsat/biff support Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t Checking realloc implementation Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM() Testing for various struct passwd members Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr, rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync, ftruncate, strtod, strncasecmp, strerror, strlcat, memset, bzero, and _exit Determining the maximum number of 16 byte arguments execv() takes Benchmarking your system's strstr() implementation Collecting results from kernel-locking tests =============================autoconf.h=================================== /* This file was automagically generated by autoconf */ #define NO_const #define P(args) () /* 5 moves in 64 steps of size 16384 when reallocing */ #define WMACROS_NON_POSIX #define NOpw_passwd #define NOpw_class #define NOpw_gecos #define NOstrlcat #define NOsetrgid #define GOT_bin_test #define MAX_argc 83765 /* Your system's strstr() is 16.75 times FASTER than my C-routine */ #define setrgid_RUNTIME_CHECK #define MAILSPOOLDIR "/var/spool/mail/" #define SENDMAIL "/usr/sbin/sendmail" #define CF_no_procmail_yet #define defPATH "PATH=$HOME/bin:/bin" #define defSPATH "PATH=/bin" #define PM_VERSION "3.22" /* Hotwire LOCKINGTEST=100 */ /* Procmail will lock via: dotlocking, fcntl() */ /* autoconf completed */ ========================================================================== make[1]: Leaving directory '/builddir/build/BUILD/procmail-3.22/src' ++ getconf LFS_CFLAGS + make 'RPM_OPT_FLAGS=-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments ' echo Housekeeping file >config.check cd src; make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat make[1]: Entering directory '/builddir/build/BUILD/procmail-3.22/src' clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments procmail.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] procmail.c:74:19: warning: passing arguments to 'auth_filledid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(auth_filledid(spass)&&auth_whatuid(spass)==uid) ^ procmail.c:74:40: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(auth_filledid(spass)&&auth_whatuid(spass)==uid) ^ procmail.c:76:24: warning: passing arguments to 'auth_finduid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(tpass=auth_finduid(uid,0)) /* save by copying */ ^ procmail.c:76:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(tpass=auth_finduid(uid,0)) /* save by copying */ ~~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:76:11: note: place parentheses around the assignment to silence this warning if(tpass=auth_finduid(uid,0)) /* save by copying */ ^ ( ) procmail.c:76:11: note: use '==' to turn this assignment into an equality comparison if(tpass=auth_finduid(uid,0)) /* save by copying */ ^ == procmail.c:77:17: warning: passing arguments to 'auth_copyid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { auth_copyid(spass,tpass); ^ procmail.c:71:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static auth_identity*savepass(spass,uid)auth_identity*const spass; ^ procmail.c:108:42: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { Deliverymode=!!strncmp(lastdirsep(argv0=argv[0]),procmailn, ^ procmail.c:116:36: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case HELPOPT1:case HELPOPT2:elog(pmusage);elog(PM_HELP); ^ procmail.c:116:50: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case HELPOPT1:case HELPOPT2:elog(pmusage);elog(PM_HELP); ^ procmail.c:117:11: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(PM_QREFERENCE); ^ procmail.c:132:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if(chp2=(char*)argv[argc+1]) ~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:132:19: note: place parentheses around the assignment to silence this warning else if(chp2=(char*)argv[argc+1]) ^ ( ) procmail.c:132:19: note: use '==' to turn this assignment into an equality comparison else if(chp2=(char*)argv[argc+1]) ^ == procmail.c:135:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Missing name\n"); ^ procmail.c:141:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if(chp2=(char*)argv[argc+1]) ~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:141:19: note: place parentheses around the assignment to silence this warning else if(chp2=(char*)argv[argc+1]) ^ ( ) procmail.c:141:19: note: use '==' to turn this assignment into an equality comparison else if(chp2=(char*)argv[argc+1]) ^ == procmail.c:143:17: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setarg: app_valp(newargv,(const char*)chp2); ^ ./misc.h:11:26: note: expanded from macro 'app_valp' #define app_valp(sp,val) app_val_type(sp,const char*,const char*,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ procmail.c:148:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Missing argument\n"); ^ procmail.c:153:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(misrecpt); ^ procmail.c:173:16: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] default:nlog("Unrecognised options:");logqnl(chp2); ^ procmail.c:173:48: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] default:nlog("Unrecognised options:");logqnl(chp2); ^ procmail.c:174:11: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(pmusage);elog("Processing continued\n"); ^ procmail.c:174:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(pmusage);elog("Processing continued\n"); ^ procmail.c:181:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(misrecpt),Deliverymode=0; ^ procmail.c:188:19: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conflopt: nlog(conflicting);elog("options\n");elog(pmusage); ^ procmail.c:188:37: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conflopt: nlog(conflicting);elog("options\n");elog(pmusage); ^ procmail.c:188:55: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conflopt: nlog(conflicting);elog("options\n");elog(pmusage); ^ procmail.c:207:16: warning: passing arguments to 'cleanupenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cleanupenv(presenviron); ^ procmail.c:212:44: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] checkprivFrom_(euid,passinvk?auth_username(passinvk):0,override); ^ procmail.c:212:16: warning: passing arguments to 'checkprivFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] checkprivFrom_(euid,passinvk?auth_username(passinvk):0,override); ^ procmail.c:213:9: warning: passing arguments to 'doumask' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doumask(INIT_UMASK); /* allowed to set the From_ line? */ ^ procmail.c:214:23: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while((savstdout=rdup(STDOUT))<=STDERR) ^ procmail.c:215:11: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(savstdout); /* move stdout out of the way */ ^ procmail.c:216:26: warning: passing arguments to 'opena' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>(savstdout=opena(devnull))) ^ procmail.c:220:23: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fclose(stdout);rclose(STDOUT); /* just to make sure */ ^ procmail.c:221:12: warning: passing arguments to 'opena' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>opena(devnull)) ^ procmail.c:223:13: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { writeerr(devnull);syslog(LOG_EMERG,slogstr,errwwriting,devnull); ^ procmail.c:229:37: warning: passing arguments to 'allocbuffers' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setbuf(stdin,(char*)0);allocbuffers(linebuf,1); ^ procmail.c:245:11: warning: passing arguments to 'setcomsat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setcomsat(empty); /* turn on biff by default */ ^ procmail.c:246:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(0,(unsigned long)uid,buf);filled=0; ^ procmail.c:247:43: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!passinvk||!(chp2=(char*)auth_username(passinvk))) ^ procmail.c:252:23: warning: passing arguments to 'lmtp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] currcpt=rcpts=lmtp(&lastrcpt,chp2); ^ procmail.c:254:17: warning: passing arguments to 'lockblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lockblock(&themail); /* then no one can write to the block */ ^ procmail.c:262:18: warning: passing arguments to 'auth_freeid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] auth_freeid(*currcpt++); ^ procmail.c:264:4: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(rcpts);newid();gargv=&nullp; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:267:18: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(forkerr(pidchild,procmailn)) ^ procmail.c:270:11: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] waitfor(pidchild); ^ procmail.c:271:20: warning: passing arguments to 'lmtpresponse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lmtpresponse(lexitcode); ^ procmail.c:273:19: warning: passing arguments to 'auth_freeid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] auth_freeid(*currcpt++); ^ procmail.c:275:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(rcpts); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:281:10: warning: passing arguments to 'makeFrom' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makeFrom(fromwhom,chp2); ^ procmail.c:282:10: warning: passing arguments to 'readmail' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readmail(0,0L); /* read in the mail completely */ ^ procmail.c:286:17: warning: passing arguments to 'lockblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lockblock(&themail); ^ procmail.c:293:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(pidchild=sfork()) ~~~~~~~~^~~~~~~~ procmail.c:293:15: note: place parentheses around the assignment to silence this warning if(pidchild=sfork()) ^ ( ) procmail.c:293:15: note: use '==' to turn this assignment into an equality comparison if(pidchild=sfork()) ^ == procmail.c:294:17: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(forkerr(pidchild,procmailn)|| ^ procmail.c:295:17: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] waitfor(pidchild)!=EXIT_SUCCESS) ^ procmail.c:299:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ procmail.c:305:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(chp=(char*)argv[argc]); ~~~^~~~~~~~~~~~~~~~~~ procmail.c:305:14: note: place parentheses around the assignment to silence this warning while(chp=(char*)argv[argc]); ^ ( ) procmail.c:305:14: note: use '==' to turn this assignment into an equality comparison while(chp=(char*)argv[argc]); ^ == procmail.c:309:28: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(!(pass=auth_finduser(chp2,-1))) /* chp2 is the recipient */ ^ procmail.c:311:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(unkuser);logqnl(chp2);syslog(LOG_ERR,slogstr,unkuser,chp2); ^ procmail.c:311:28: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(unkuser);logqnl(chp2);syslog(LOG_ERR,slogstr,unkuser,chp2); ^ procmail.c:314:58: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dorcpt: if(enoughprivs(passinvk,euid,egid,auth_whatuid(pass), ^ procmail.c:315:18: warning: passing arguments to 'auth_whatgid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] auth_whatgid(pass))) ^ procmail.c:314:26: warning: passing arguments to 'enoughprivs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dorcpt: if(enoughprivs(passinvk,euid,egid,auth_whatuid(pass), ^ procmail.c:317:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(insufprivs); ^ procmail.c:328:17: warning: passing arguments to 'setcomsat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setcomsat(DEFcomsat); /* the internal flag */ ^ procmail.c:330:10: warning: passing arguments to 'setdef' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setdef(scomsat,DEFcomsat); ^ procmail.c:334:15: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Missing rcfile\n"); ^ procmail.c:372:22: warning: passing arguments to 'enoughprivs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] !enoughprivs(passinvk,euid,egid,stbuf.st_uid, ^ procmail.c:379:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(densppr);logqnl(rcfile); ^ procmail.c:379:30: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(densppr);logqnl(rcfile); ^ procmail.c:391:39: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { auth_identity*idpass=auth_finduser((char*)idhint,0); ^ procmail.c:393:23: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(auth_whatuid(passinvk)==auth_whatuid(idpass)) ^ procmail.c:393:47: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(auth_whatuid(passinvk)==auth_whatuid(idpass)) ^ procmail.c:398:28: warning: passing arguments to 'auth_whatgid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setuser: { gid=auth_whatgid(pass);uid=auth_whatuid(pass); ^ procmail.c:398:51: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Setuser: { gid=auth_whatgid(pass);uid=auth_whatuid(pass); ^ procmail.c:399:49: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(euid==ROOT_uid&&(chp=(char*)auth_username(pass))&&*chp) ^ procmail.c:405:12: warning: passing arguments to 'initdefenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initdefenv(pass,buf,!presenviron||!mailfilter); /* override */ ^ procmail.c:406:24: warning: passing arguments to 'auth_freeid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] endpwent();auth_freeid(spassinvk); /* environment by default */ ^ procmail.c:408:18: warning: passing arguments to 'buildpath' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(buildpath(orgmail,fdefault,(char*)0)) /* setup DEFAULT and ORGMAIL */ ^ procmail.c:415:22: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fdefault=tstrdup(buf);sgid=egid; ^ procmail.c:416:24: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chp=(char*)tgetenv(orgmail); ^ procmail.c:417:35: warning: passing arguments to 'screenmailbox' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(mailfilter||!screenmailbox(chp,egid,Deliverymode)) ^ procmail.c:419:16: warning: passing arguments to 'sputenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { sputenv(orgmail); /* nix delivering to system mailbox */ ^ procmail.c:423:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free((char*)fdefault),fdefault=empty; /* so panic */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:426:10: warning: passing arguments to 'doumask' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doumask(INIT_UMASK); ^ procmail.c:427:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(chp=(char*)argv[argc]) /* interpret command line specs first */ ~~~^~~~~~~~~~~~~~~~~~ procmail.c:427:12: note: place parentheses around the assignment to silence this warning while(chp=(char*)argv[argc]) /* interpret command line specs first */ ^ ( ) procmail.c:427:12: note: use '==' to turn this assignment into an equality comparison while(chp=(char*)argv[argc]) /* interpret command line specs first */ ^ == procmail.c:429:18: warning: passing arguments to 'asenvcpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!asenvcpy(chp)&&mailfilter) ^ procmail.c:436:17: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(0<=bopen(etcrc)) ^ procmail.c:437:13: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { yell(drcfile,etcrc); ^ procmail.c:442:9: warning: passing arguments to 'eputenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eputenv(defspath,buf); /* use the secure PATH */ ^ procmail.c:445:9: warning: passing arguments to 'eputenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eputenv(defpath,buf); /* switch back to the insecure PATH */ ^ procmail.c:458:17: warning: passing arguments to 'buildpath' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(buildpath(maildir,defmaildir,rcfile)) ^ procmail.c:460:12: warning: passing arguments to 'tryopen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(tryopen(0,rctype,dowarning)) ^ procmail.c:480:14: warning: passing arguments to 'buildpath' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(buildpath("default rcfile",pmrc,(char*)0)) ^ procmail.c:487:16: warning: passing arguments to 'tryopen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(tryopen(mailfilter==2,rctype,DEFverbose||mailfilter)) ^ procmail.c:493:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(ifstack.vals); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:495:12: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concon('\n');succeed=0; ^ procmail.c:498:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] setuid(uid); /* make sure we have enough space */ ^~~~~~ ~~~ procmail.c:500:17: warning: passing arguments to 'allocbuffers' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] allocbuffers(linebuf=len,1); /* to perform the lock & delivery */ ^ procmail.c:501:16: warning: passing arguments to 'writefolder' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(writefolder(chp,(char*)0,themail.p,filled,0,1)) /* default */ ^ procmail.c:504:40: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!succeed&&*(chp2=(char*)tgetenv(orgmail))&&strcmp(chp2,chp)) ^ procmail.c:506:16: warning: passing arguments to 'writefolder' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(writefolder(chp2,(char*)0,themail.p,filled,0,0)) /* don't panic */ ^ procmail.c:512:9: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unlock(&loclock);Terminate(); ^ procmail.c:97:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc,argv)int argc;const char*const argv[]; ^ procmail.c:516:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { elog(procmailn);elog(Version); ^ procmail.c:516:23: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { elog(procmailn);elog(Version); ^ procmail.c:517:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("\nLocking strategies:\tdotlocking"); ^ procmail.c:519:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(", fcntl()"); /* a peek under the hood */ ^ procmail.c:527:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("\nDefault rcfile:\t\t");elog(pmrc); ^ procmail.c:527:37: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("\nDefault rcfile:\t\t");elog(pmrc); ^ procmail.c:529:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("\n\tIt may be writable by your primary group"); ^ procmail.c:531:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("\nYour system mailbox:\t"); ^ procmail.c:532:37: warning: passing arguments to 'auth_finduid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(auth_mailboxname(auth_finduid(getuid(),0))); ^ procmail.c:532:24: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(auth_mailboxname(auth_finduid(getuid(),0))); ^ procmail.c:532:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(auth_mailboxname(auth_finduid(getuid(),0))); ^ procmail.c:533:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(newline); ^ procmail.c:552:13: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>bopen(buf)) /* try opening the rcfile */ ^ procmail.c:554:14: warning: passing arguments to 'readerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rerr: readerr(buf); ^ procmail.c:560:16: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>bopen(buf)) /* and try again */ ^ procmail.c:570:20: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] closerc();nlog(susprcf);logqnl(buf); ^ procmail.c:570:36: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] closerc();nlog(susprcf);logqnl(buf); ^ procmail.c:578:12: warning: passing arguments to 'setmaildir' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmaildir(curdir); ^ procmail.c:588:34: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { register char*chp=lastdirsep(buf),c; ^ procmail.c:609:7: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yell(drcfile,buf); ^ procmail.c:615:18: warning: passing arguments to 'buildpath' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(buildpath(maildir,defmaildir,(char*)0)) ^ procmail.c:618:15: warning: passing arguments to 'chderr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { chderr(buf); /* no, well, then try an initial chdir */ ^ procmail.c:619:13: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chp=tgetenv(home); ^ procmail.c:621:11: warning: passing arguments to 'chderr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chderr(chp),chp=curdir; /* that didn't work, use "." */ ^ procmail.c:623:16: warning: passing arguments to 'setmaildir' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setmaildir(chp); ^ procmail.c:546:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int tryopen(delay_setid,rctype,dowarning) ^ procmail.c:633:12: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { unlock(&loclock); /* unlock any local lockfile */ ^ procmail.c:638:13: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(testB('\n')); ^ procmail.c:640:17: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(testB('#')); /* no comment :-) */ ^ procmail.c:641:14: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(testB(':')) /* check for a recipe */ ^ procmail.c:646:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(buf,getb,0,skiprc)) ^ procmail.c:654:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(tolock); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:657:20: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { chp=skpspace(chp); ^ procmail.c:673:24: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tolock=tstrdup(chp),chp=strchr(chp,'\0')+1; ^ procmail.c:675:19: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concatenate(chp);skipped(chp); /* display leftovers */ ^ procmail.c:675:32: warning: passing arguments to 'skipped' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concatenate(chp);skipped(chp); /* display leftovers */ ^ procmail.c:678:17: warning: passing arguments to 'conditions' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] i=conditions(flags,prevcond,lastsucc,lastcond,skiprc!=0,nrcond); ^ procmail.c:698:27: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zombiecollect(),concon('\n'); ^ procmail.c:699:17: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] progrm: if(testB('!')) /* forward the mail */ ^ procmail.c:702:8: warning: passing arguments to 'sstrlcpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(strlcpy(buf,sendmail,linebuf)>=linebuf) ^ ./includes.h:511:32: note: expanded from macro 'strlcpy' #define strlcpy(d,s,z) sstrlcpy(d,s,z) ^ procmail.c:707:26: warning: passing arguments to 'simplesplit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!(q=simplesplit(chp+1,flagsendmail,buf+linebuf-1,&got))) ^ procmail.c:711:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(chp+1,getb,0,skiprc)) ^ procmail.c:716:30: warning: passing arguments to 'skipFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] startchar=(char*)skipFrom_(startchar,&tobesent); ^ procmail.c:722:15: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(testB('|')) /* pipe the mail */ ^ procmail.c:724:16: warning: passing arguments to 'getlline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(getlline(chp,buf2+linebuf)) /* get the command to start */ ^ procmail.c:727:17: warning: passing arguments to 'metaparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { metaparse(buf2); ^ procmail.c:735:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(chp=buf;i= *chp++;) ~^~~~~~~~ procmail.c:735:20: note: place parentheses around the assignment to silence this warning for(chp=buf;i= *chp++;) ^ ( ) procmail.c:735:20: note: use '==' to turn this assignment into an equality comparison for(chp=buf;i= *chp++;) ^ == procmail.c:737:18: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { chp=skpspace(chp+1); ^ procmail.c:741:20: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { chp=tstrdup(buf);sgetcp=buf2; ^ procmail.c:742:21: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(buf,sgetc,0,0)) ^ procmail.c:746:42: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strcpy(buf2,buf);strcpy(buf,chp);free(chp); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:751:21: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nolock: { nlog("Couldn't determine implicit lockfile from"); ^ procmail.c:752:16: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logqnl(buf); ^ procmail.c:755:11: warning: passing arguments to 'lcllock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lcllock(tolock,buf2); ^ procmail.c:761:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("copy-flag"),elog(ignrd); ^ procmail.c:761:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("copy-flag"),elog(ignrd); ^ procmail.c:761:39: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("copy-flag"),elog(ignrd); ^ procmail.c:762:17: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inittmout(buf); ^ procmail.c:765:21: warning: passing arguments to 'pipthrough' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(!pipthrough(buf,startchar,tobesent)) ^ procmail.c:766:18: warning: passing arguments to 'readmail' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readmail(1,tobesent),succeed=!pipw; ^ procmail.c:768:23: warning: passing arguments to 'pipthrough' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(!pipthrough(buf,startchar,tobesent)) ^ procmail.c:770:15: warning: passing arguments to 'readmail' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readmail(0,tobesent); ^ procmail.c:775:23: warning: passing arguments to 'pipthrough' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] succeed=!pipthrough(buf,startchar,tobesent); ^ procmail.c:776:22: warning: passing arguments to 'pipin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(!pipin(buf,startchar,tobesent,1)) /* regular program */ ^ procmail.c:786:15: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(testB(EOF)) ^ procmail.c:787:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Incomplete recipe\n"); ^ procmail.c:790:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(ofiltflag=flags[FILTER]) ~~~~~~~~~^~~~~~~~~~~~~~ procmail.c:790:17: note: place parentheses around the assignment to silence this warning if(ofiltflag=flags[FILTER]) ^ ( ) procmail.c:790:17: note: use '==' to turn this assignment into an equality comparison if(ofiltflag=flags[FILTER]) ^ == procmail.c:791:28: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flags[FILTER]=0,nlog(extrns),elog("filter-flag"),elog(ignrd); ^ procmail.c:791:41: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flags[FILTER]=0,nlog(extrns),elog("filter-flag"),elog(ignrd); ^ procmail.c:791:61: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flags[FILTER]=0,nlog(extrns),elog("filter-flag"),elog(ignrd); ^ procmail.c:792:18: warning: passing arguments to 'gobenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(chp=gobenv(buf,end)) /* can it be an environment name? */ ^ procmail.c:792:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(chp=gobenv(buf,end)) /* can it be an environment name? */ ~~~^~~~~~~~~~~~~~~~ procmail.c:792:11: note: place parentheses around the assignment to silence this warning if(chp=gobenv(buf,end)) /* can it be an environment name? */ ^ ( ) procmail.c:792:11: note: use '==' to turn this assignment into an equality comparison if(chp=gobenv(buf,end)) /* can it be an environment name? */ ^ == procmail.c:794:19: warning: passing arguments to 'getlline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { getlline(buf,buf+linebuf); ^ procmail.c:799:16: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(testB('=')) /* is it really an assignment? */ ^ procmail.c:804:10: warning: passing arguments to 'ungetb' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ungetb(c=getb()); ^ procmail.c:808:22: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Stdout = tstrdup(buf); ^ procmail.c:814:11: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] testB('{')&& ^ procmail.c:815:33: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (*chp++='{',*chp='\0',testB(' ')|| /* } } */ ^ procmail.c:816:12: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] testB('\t')|| ^ procmail.c:817:12: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] testB('\n'))) ^ procmail.c:819:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("locallockfile"),elog(ignrd); ^ procmail.c:819:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("locallockfile"),elog(ignrd); ^ procmail.c:819:43: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("locallockfile"),elog(ignrd); ^ procmail.c:821:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("deliver-body flag"),elog(ignrd); ^ procmail.c:821:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("deliver-body flag"),elog(ignrd); ^ procmail.c:821:47: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("deliver-body flag"),elog(ignrd); ^ procmail.c:823:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("deliver-head flag"),elog(ignrd); ^ procmail.c:823:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("deliver-head flag"),elog(ignrd); ^ procmail.c:823:47: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("deliver-head flag"),elog(ignrd); ^ procmail.c:825:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("ignore-write-error flag"),elog(ignrd); ^ procmail.c:825:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("ignore-write-error flag"),elog(ignrd); ^ procmail.c:825:53: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("ignore-write-error flag"),elog(ignrd); ^ procmail.c:827:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("raw-mode flag"),elog(ignrd); ^ procmail.c:827:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("raw-mode flag"),elog(ignrd); ^ procmail.c:827:43: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(extrns),elog("raw-mode flag"),elog(ignrd); ^ procmail.c:831:11: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { app_vali(ifstack,prevcond); /* push prevcond */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ procmail.c:832:4: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] app_vali(ifstack,lastcond); /* push lastcond */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ procmail.c:834:14: warning: passing arguments to 'lcllock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { lcllock(tolock,""); ^ procmail.c:840:11: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { yell("Forking",procmailn); ^ procmail.c:842:16: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inittmout(procmailn);onguard(); ^ procmail.c:845:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(loclock),loclock=0; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:847:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(globlock),globlock=0; /* clear up the */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:852:20: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(forkerr(pidchild,procmailn)) ^ procmail.c:857:24: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (excode=waitfor(pidchild))!=EXIT_SUCCESS) ^ procmail.c:859:12: warning: passing arguments to 'progerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] progerr(procmailn,excode,pwait&2); ^ procmail.c:873:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(chp,getb,0,skiprc)) ^ procmail.c:882:11: warning: passing arguments to 'lcllock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lcllock(tolock,buf); ^ procmail.c:883:17: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inittmout(buf); /* to break messed-up kernel locks */ ^ procmail.c:884:22: warning: passing arguments to 'writefolder' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(writefolder(buf,strchr(buf,'\0')+1,startchar,tobesent, ^ procmail.c:888:7: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(ifstack.vals); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ procmail.c:892:23: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logabstract(tgetenv(lastfolder)); ^ procmail.c:892:15: warning: passing arguments to 'logabstract' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logabstract(tgetenv(lastfolder)); ^ procmail.c:899:19: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(testB('}')) /* end block */ ^ procmail.c:907:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Closing brace unexpected\n"); /* stack empty */ ^ procmail.c:911:17: warning: passing arguments to 'gobenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!(chp=gobenv(buf,end))) ^ procmail.c:913:13: warning: passing arguments to 'getbl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getbl(buf,end); /* then a line */ ^ procmail.c:914:12: warning: passing arguments to 'skipped' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skipped(buf); /* display leftovers */ ^ procmail.c:920:10: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(testB('=')) /* removal or assignment? */ ^ procmail.c:922:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(++chp,getb,1,skiprc)) ^ procmail.c:929:14: warning: passing arguments to 'sputenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p=sputenv(buf); ^ procmail.c:931:10: warning: passing arguments to 'asenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asenv(p); ^ procmail.c:937:15: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(!testB(EOF)||(skiprc=0,poprc())); ^ 224 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments cstdio.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] cstdio.c:26:16: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { int ret=rread(rc,rcbuf,STDBUF); ^ cstdio.c:25:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void refill(offset)const int offset; /* refill the buffer */ ^ cstdio.c:43:9: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { app_vali(inced,rcbufp?rcbufp-rcbuf:0); /* save old */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ cstdio.c:44:2: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] app_valo(inced,blasttell);app_vali(inced,ifdepth);/* position, brace */ ^ ./misc.h:7:26: note: expanded from macro 'app_valo' #define app_valo(sp,val) app_val_type(sp,off_t,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ cstdio.c:44:28: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] app_valo(inced,blasttell);app_vali(inced,ifdepth);/* position, brace */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ cstdio.c:45:2: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] app_vali(inced,rc); /* depth & fd */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ cstdio.c:47:10: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(bopen(name)<0) /* try to open the new one */ ^ cstdio.c:49:17: warning: passing arguments to 'readerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rerr: readerr(name); ^ cstdio.c:37:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void pushrc(name)const char*const name; /* open include rcfile */ ^ In file included from cstdio.c:17: ./cstdio.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] pushrc P((const char*const name)), ^ cstdio.c:58:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(rc);rcbufp=rcbufend+1; /* make it look like EOF */ ^ cstdio.c:66:16: warning: passing arguments to 'readerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rerr: { readerr(name); /* skip irregularities */ ^ cstdio.c:71:47: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(orbp=rcbufp,orbe=rcbufend,orc=rc,bopen(name)<0) ^ cstdio.c:75:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(orc); /* success! drop the old and */ ^ cstdio.c:76:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(dp=incnamed->enext) /* fixup the name list */ ~~^~~~~~~~~~~~~~~~ cstdio.c:76:11: note: place parentheses around the assignment to silence this warning if(dp=incnamed->enext) /* fixup the name list */ ^ ( ) cstdio.c:76:11: note: use '==' to turn this assignment into an equality comparison if(dp=incnamed->enext) /* fixup the name list */ ^ == cstdio.c:77:28: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] incnamed->enext=dp->enext,free(dp); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ cstdio.c:55:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void changerc(name)const char*const name; /* change rcfile */ ^ In file included from cstdio.c:17: ./cstdio.h:5:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] changerc P((const char*const name)), ^ cstdio.c:84:21: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dp=incnamed;rclose(rc); ^ cstdio.c:85:17: warning: passing arguments to 'ropen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>(rc=ropen(dp->ename,O_RDONLY,0))) /* first reopen the current one */ ^ cstdio.c:90:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(acc_vali(inced,--i)); ^ cstdio.c:91:20: warning: passing arguments to 'ropen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>(fd=ropen(dp->ename,O_RDONLY,0))) /* reopen all (nested) others */ ^ cstdio.c:93:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Lost"),logqnl(dp->ename),exit(EX_NOINPUT); /* panic */ ^ cstdio.c:93:21: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Lost"),logqnl(dp->ename),exit(EX_NOINPUT); /* panic */ ^ cstdio.c:101:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(rc),rc= -1,last=incnamed,incnamed=last->enext,free(last); ^ cstdio.c:101:59: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(rc),rc= -1,last=incnamed,incnamed=last->enext,free(last); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ cstdio.c:107:33: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ifstack.filled=ifdepth,nlog("Missing closing brace\n"); ^ cstdio.c:124:29: warning: passing arguments to 'ropen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rcbufp=rcbufend=0;rc=ropen(name,O_RDONLY,0); ^ cstdio.c:128:21: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(md=(char*)tgetenv(maildir))&& ^ cstdio.c:136:18: warning: passing arguments to 'newdynstring' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newdynstring(&incnamed,md); ^ cstdio.c:123:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int bopen(name)const char*const name; /* my fopen */ ^ In file included from cstdio.c:17: ./cstdio.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] bopen P((const char*const name)), ^ cstdio.c:141:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int getbl(p,end)char*p,*end; /* my gets */ ^ In file included from cstdio.c:17: ./cstdio.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] getbl P((char*p,char*end)), ^ cstdio.c:160:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ungetb(x)const int x; /* only for pushing back original characters */ ^ In file included from cstdio.c:17: ./cstdio.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] ungetb P((const int x)), ^ cstdio.c:165:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int testB(x)const int x; /* fgetc that only succeeds if it matches */ ^ In file included from cstdio.c:17: ./cstdio.h:15:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] testB P((const int x)), ^ cstdio.c:209:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(exceededlb);setoverflow(); ^ cstdio.c:194:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int getlline(target,end)char*target,*end; ^ In file included from cstdio.c:17: ./cstdio.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] getlline P((char*target,char*end)); ^ cstdio.c:219:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void pushfd(fd)int fd; ^ In file included from cstdio.c:17: ./cstdio.h:25:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] pushfd P((int fd)); ^ cstdio.c:226:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(rc);rc=origfd; ^ cstdio.c:252:24: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if((retcode=waitfor(childserverpid))==EXIT_SUCCESS) ^ cstdio.c:270:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int readL(p,len)char*p;const int len; ^ In file included from cstdio.c:17: ./cstdio.h:29:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] readL P((char*,const int)), ^ cstdio.c:296:21: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(0>(got=rread(rc,p,len))) ^ cstdio.c:286:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int readLe(p,len)char*p;int len; ^ In file included from cstdio.c:17: ./cstdio.h:30:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] readLe P((char*,int)); ^ 50 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments common.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] common.c:28:11: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newargv=malloc(i*sizeof*p); /* no shell script? -> trouble */ ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ common.c:29:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); ~~~~^~~~~~~~~ common.c:29:44: note: place parentheses around the assignment to silence this warning for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); ^ ( ) common.c:29:44: note: use '==' to turn this assignment into an equality comparison for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); ^ == common.c:30:27: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] execv(*newargv,newargv);free(newargv);nlog("Failed to execute"); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ common.c:30:45: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] execv(*newargv,newargv);free(newargv);nlog("Failed to execute"); ^ common.c:31:9: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logqnl(*argv); ^ common.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void shexec(argv)const char*const*argv; ^ In file included from common.c:16: ./common.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] shexec P((const char*const*argv)) __attribute__((noreturn)), ^ common.c:36:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { while(p=strpbrk(p,"\t\n\v\f\r")) ~^~~~~~~~~~~~~~~~~~~~~~~~ common.c:36:10: note: place parentheses around the assignment to silence this warning { while(p=strpbrk(p,"\t\n\v\f\r")) ^ ( ) common.c:36:10: note: use '==' to turn this assignment into an equality comparison { while(p=strpbrk(p,"\t\n\v\f\r")) ^ == common.c:35:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void detab(p)char*p; ^ In file included from common.c:16: ./common.h:5:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] detab P((char*p)); ^ common.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*skpspace(chp)const char*chp; ^ In file included from common.c:16: ./common.h:7:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *skpspace P((const char*chp)); ^ common.c:60:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int waitfor(pid)const pid_t pid; /* wait for a specific process */ ^ In file included from common.c:16: ./common.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] waitfor Q((const pid_t pid)); ^ 14 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments exopen.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] exopen.c:69:31: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *p=UNIQ_PREFIX,dot=ultoan((unsigned long)thepid,p+1); ^ exopen.c:76:14: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ssleep(1); /* tap tap tap... */ ^ exopen.c:80:15: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { dot=ultstr(0,(unsigned long)t,p); /* time.pid_s.hostname */ ^ exopen.c:82:15: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dot=ultstr(0,(unsigned long)thepid,dot+1); ^ exopen.c:87:18: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] host=1+ultoan((unsigned long)t,dot+1); /* _pid%time.hostname */ ^ exopen.c:89:2: warning: passing arguments to 'sstrlcpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcpy(host,safehost(),end-host); ^ ./includes.h:511:32: note: expanded from macro 'strlcpy' #define strlcpy(d,s,z) sstrlcpy(d,s,z) ^ exopen.c:97:15: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] op=lastdirsep(full); ^ exopen.c:113:14: warning: passing arguments to 'ropen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (0>(i=ropen(full,O_WRONLY|O_CREAT|O_EXCL,mode))&&errno==EEXIST))&& ^ exopen.c:116:6: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] nice(nicediff); /* put back the priority to the old level */ ^~~~ ~~~~~~~~ exopen.c:119:10: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeerr(full); /* for casual users */ ^ exopen.c:135:15: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(i);unlink(full); /* forget it, no permission */ ^ exopen.c:140:12: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rwrite(i,"0",1); /* pid 0, `works' across networks */ ^ exopen.c:143:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(i); ^ exopen.c:54:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int unique(full,p,len,mode,verbos,flags)char*const full;char*p; ^ In file included from exopen.c:17: ./exopen.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] unique Q((const char*const full,char*p,const size_t len,const mode_t mode, ^ exopen.c:149:11: warning: passing arguments to 'hlink' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fd=hlink(old,newn);serrno=errno;unlink(old); ^ exopen.c:150:17: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(fd>0)rclose(fd-1); ^ exopen.c:147:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int myrename(old,newn)const char*const old,*const newn; ^ In file included from exopen.c:17: ./exopen.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] myrename P((const char*const old,const char*const newn)), ^ exopen.c:156:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rlink(old,newn,st)const char*const old,*const newn;struct stat*st; ^ In file included from exopen.c:17: ./exopen.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] rlink P((const char*const old,const char*const newn,struct stat*st)), ^ exopen.c:183:14: warning: passing arguments to 'ropen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 0<=(fd=ropen(newn,O_WRONLY|O_CREAT|O_EXCL,stbuf.st_mode))) ^ exopen.c:177:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int hlink(old,newn)const char*const old,*const newn; ^ In file included from exopen.c:17: ./exopen.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] hlink P((const char*const old,const char*const newn)); ^ 24 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments goodies.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] goodies.c:28:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static const char*evalenv(skipping) /* expects the variable name in buf2 */ ^ goodies.c:66:19: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] early_eof: nlog(unexpeof); ^ goodies.c:71:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(exceededlb);setoverflow(); ^ goodies.c:115:22: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sgetcp=p=tstrdup(startb);sAll_args=All_args; ^ goodies.c:122:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(p);sgetcp=save; /* chopped up */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ goodies.c:124:25: warning: passing arguments to 'fromprog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] startb=fromprog( ^ goodies.c:138:23: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { case EOF:nlog(unexpeof); ^ goodies.c:203:36: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(EOF!=(i=fgetc())&&alphanum(i)) ^ goodies.c:209:7: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(numeric(*buf2)&&buf2[1]) ^ ./includes.h:549:29: note: expanded from macro 'numeric' #define numeric(x) (alphanum((unsigned char)(x))>1) ^ goodies.c:226:20: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] badsub: nlog("Bad substitution of");logqnl(buf2); ^ goodies.c:226:50: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] badsub: nlog("Bad substitution of");logqnl(buf2); ^ goodies.c:251:23: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '$':ultstr(0,(unsigned long)thepid,startb=num); ^ goodies.c:253:22: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '?':ltstr(0,(long)lexitcode,startb=num); ^ goodies.c:255:23: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '#':ultstr(0,(unsigned long)crestarg,startb=num); ^ goodies.c:257:22: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '=':ltstr(0,lastscore,startb=num); ^ goodies.c:262:38: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '-':startb=(char*)tgetenv(lastfolder); /* $- =$LASTFOLDER */ ^ goodies.c:267:7: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(numeric(i)) /* $n positional argument */ ^ ./includes.h:549:29: note: expanded from macro 'numeric' #define numeric(x) (alphanum((unsigned char)(x))>1) ^ goodies.c:273:15: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(alphanum(i)) /* $name */ ^ goodies.c:279:39: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(EOF!=(i=fgetc())&&alphanum(i)); ^ goodies.c:309:24: warning: passing arguments to 'simplesplit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ ^ goodies.c:309:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ goodies.c:309:12: note: place parentheses around the assignment to silence this warning if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ ^ ( ) goodies.c:309:12: note: use '==' to turn this assignment into an equality comparison if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ ^ == goodies.c:316:11: warning: passing arguments to 'sstrlcpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(strlcpy(p,startb,len)>=len) /* simply copy it */ ^ ./includes.h:511:32: note: expanded from macro 'strlcpy' #define strlcpy(d,s,z) sstrlcpy(d,s,z) ^ goodies.c:50:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int readparse(p,fpgetc,sarg,skipping)register char*p;int(*const fpgetc)(); ^ In file included from goodies.c:23: ./goodies.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] readparse P((char*p,int(*const fpgetc)(),const int sarg,int skipping)); ^ goodies.c:355:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*simplesplit(to,from,fencepost,gotp)char*to;const char*from,*fencepost; ^ In file included from goodies.c:23: ./goodies.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *simplesplit P((char*to,const char*from,const char*fencepost,int*gotp)); ^ goodies.c:375:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void concatenate(p)register char*p; ^ In file included from goodies.c:23: ./goodies.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] concatenate P((char*p)), ^ goodies.c:385:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { if(sh=!!strpbrk(p,shellmetas)) ~~^~~~~~~~~~~~~~~~~~~~~~~~ goodies.c:385:8: note: place parentheses around the assignment to silence this warning { if(sh=!!strpbrk(p,shellmetas)) ^ ( ) goodies.c:385:8: note: use '==' to turn this assignment into an equality comparison { if(sh=!!strpbrk(p,shellmetas)) ^ == goodies.c:388:22: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { sgetcp=p=tstrdup(p); ^ goodies.c:395:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free((char*)p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ goodies.c:384:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void metaparse(p)const char*p; /* result in buf */ ^ In file included from goodies.c:23: ./goodies.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] metaparse P((const char*p)), ^ goodies.c:401:22: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { *dest=' ';ultstr(minwidth-1,-val,dest+1); ^ goodies.c:406:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(minwidth,val,dest); /* business as usual */ ^ goodies.c:399:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ltstr(minwidth,val,dest)const int minwidth;const long val;char*dest; ^ In file included from goodies.c:23: ./goodies.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] ltstr P((const int minwidth,const long val,char*dest)); ^ 37 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments locking.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] locking.c:30:9: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { free(name);return 1; /* they're equal, save yourself some effort */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ locking.c:32:12: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unlock(lockp); /* unlock any previous lockfile FIRST */ ^ locking.c:35:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { free(name);return 1; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ locking.c:42:9: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { yell("Bypassed locking",name); ^ locking.c:43:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(name);return 0; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ locking.c:49:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { yell("Locking",name); /* in order to cater for clock skew: get */ ^ locking.c:50:16: warning: passing arguments to 'xcreat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!xcreat(name,LOCKperm,&t,locktype)) /* time t from the filesystem */ ^ locking.c:64:21: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] triedforce=1,nlog("Forced unlock denied on"),logqnl(name); ^ locking.c:64:55: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] triedforce=1,nlog("Forced unlock denied on"),logqnl(name); ^ locking.c:66:15: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Forcing lock on");logqnl(name);suspend(); ^ locking.c:66:41: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Forcing lock on");logqnl(name);suspend(); ^ locking.c:85:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Truncating");logqnl(name);elog(" and retrying lock\n"); ^ locking.c:85:33: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Truncating");logqnl(name);elog(" and retrying lock\n"); ^ locking.c:85:44: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Truncating");logqnl(name);elog(" and retrying lock\n"); ^ locking.c:92:16: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] faillock: nlog("Lock failure on");logqnl(name); ^ locking.c:92:42: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] faillock: nlog("Lock failure on");logqnl(name); ^ locking.c:96:12: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ds: ssleep((unsigned)locksleep); ^ locking.c:100:15: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(whilstwfor),elog("lockfile"),logqnl(name); ^ locking.c:100:32: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(whilstwfor),elog("lockfile"),logqnl(name); ^ locking.c:100:51: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(whilstwfor),elog("lockfile"),logqnl(name); ^ locking.c:101:9: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(name); /* drop the preallocated buffer */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ locking.c:106:6: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] setegid(gid); /* we put back our regular permissions */ ^~~~~~~ ~~~ locking.c:25:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int lockit(name,lockp)char*name;char**const lockp; ^ In file included from locking.c:20: ./locking.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] lockit P((char*name,char**const lockp)), ^ locking.c:118:17: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lckfile=tstrdup(noext); ^ locking.c:121:10: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lckfile=malloc(len+strlen(lockext)+1); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ locking.c:125:13: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Deadlock attempted on");logqnl(lckfile); ^ locking.c:125:45: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Deadlock attempted on");logqnl(lckfile); ^ locking.c:126:2: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(lckfile); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ locking.c:113:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int lcllock(noext,withext) /* lock a local lockfile */ ^ In file included from locking.c:20: ./locking.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] lcllock P((const char*const noext,const char*const withext)), ^ locking.c:139:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] setegid(sgid); /* try and get some extra permissions */ ^~~~~~~ ~~~~ locking.c:140:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yell("Unlocking",*lockp); ^ locking.c:142:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Couldn't unlock"),logqnl(*lockp); ^ locking.c:142:32: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Couldn't unlock"),logqnl(*lockp); ^ locking.c:144:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] setegid(gid); /* we put back our regular permissions */ ^~~~~~~ ~~~ locking.c:146:2: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(*lockp); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ locking.c:135:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void unlock(lockp)char**const lockp; ^ In file included from locking.c:20: ./locking.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] unlock P((char**const lockp)); ^ locking.c:155:15: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] i=lastdirsep(name)-name; ^ locking.c:156:12: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] memcpy(p=malloc(i+UNIQnamelen),name,i); /* try & rename */ ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ locking.c:157:12: warning: passing arguments to 'unique' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(unique(p,p+i,i+UNIQnamelen,mode,verbose,chownit)) /* a unique filename */ ^ locking.c:162:16: warning: passing arguments to 'myrename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] j=myrename(p,name); ^ locking.c:164:3: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ locking.c:152:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int xcreat(name,mode,tim,chownit)const char*const name;const mode_t mode; ^ In file included from locking.c:20: ./locking.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] xcreat Q((const char*const name,const mode_t mode,time_t*const tim, ^ locking.c:194:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Acquiring kernel-lock\n"); ^ locking.c:191:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int fdlock(fd)int fd; ^ In file included from locking.c:20: ./locking.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] fdlock P((int fd)), ^ 49 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments mailfold.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] mailfold.c:40:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static const char*fifrom(fromw,lbound,ubound) ^ mailfold.c:52:20: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doesc=0,rwrite(s,esc,STRLEN(esc)),lastdump++; /* escape it */ ^ mailfold.c:49:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static long getchunk(s,fromw,len)const int s;const char*fromw;const long len; ^ mailfold.c:87:58: warning: passing arguments to 'fdlock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(ft_lock(type)&&(lseek(s,(off_t)0,SEEK_END),fdlock(s))) ^ mailfold.c:88:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Kernel-lock failed\n"); ^ mailfold.c:100:11: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rwrite(s,source++,1);len--;part--; /* set the trap */ ^ mailfold.c:103:14: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ssleep(1); /* ...what a difference this (tea) second makes... */ ^ mailfold.c:110:27: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jin: while(part&&(i=rwrite(s,source,BLKSIZ(fd=unique(buf,chp,linebuf,NORMperm,verbose,doFD|doMAILDIR))) ^ mailfold.c:275:17: warning: passing arguments to 'rlink' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!rlink(buf,buf2,0)) ^ mailfold.c:287:15: warning: passing arguments to 'setlastfolder' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlastfolder(buf2); ^ mailfold.c:298:12: warning: passing arguments to 'unique' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!unique(buf2,chp2,linebuf,NORMperm,verbose,0)|| ^ mailfold.c:300:15: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nfail: { nlog("Couldn't create or rename temp file");logqnl(buf); ^ mailfold.c:300:61: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nfail: { nlog("Couldn't create or rename temp file");logqnl(buf); ^ mailfold.c:307:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(linkfolder); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ mailfold.c:320:24: warning: passing arguments to 'foldertype' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] switch(type=foldertype(0,1,&mode,0)) ^ mailfold.c:334:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(linkfolder); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ mailfold.c:201:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int writefolder(boxname,linkfolder,source,len,ignwerr,dolock) ^ In file included from mailfold.c:29: ./mailfold.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] writefolder P((char*boxname,char*linkfolder,const char*source,long len, ^ mailfold.c:344:12: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(eqFrom_(chp=themail.p)) /* any "From " header */ ^ mailfold.c:345:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { if(chp=strchr(themail.p,'\n')) ~~~^~~~~~~~~~~~~~~~~~~~~~~ mailfold.c:345:11: note: place parentheses around the assignment to silence this warning { if(chp=strchr(themail.p,'\n')) ^ ( ) mailfold.c:345:11: note: use '==' to turn this assignment into an equality comparison { if(chp=strchr(themail.p,'\n')) ^ == mailfold.c:349:9: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(themail.p);elog(newline);*chp='\n'; /* (any length) */ ^ mailfold.c:349:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(themail.p);elog(newline);*chp='\n'; /* (any length) */ ^ mailfold.c:353:15: warning: passing arguments to 'egrepin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (chp=egrepin(NSUBJECT,chp,(long)(thebody-chp),0))) ^ mailfold.c:358:60: warning: passing arguments to 'detab' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ((char*)tmemmove(buf,chp2,subjlen))[subjlen]='\0';detab(buf); ^ mailfold.c:359:9: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(" ");elog(buf);elog(newline); ^ mailfold.c:359:19: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(" ");elog(buf);elog(newline); ^ mailfold.c:359:29: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(" ");elog(buf);elog(newline); ^ mailfold.c:362:10: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(sfolder);strlcpy(buf,lstfolder,MAXfoldlen);detab(buf);elog(buf); ^ mailfold.c:362:20: warning: passing arguments to 'sstrlcpy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(sfolder);strlcpy(buf,lstfolder,MAXfoldlen);detab(buf);elog(buf); ^ ./includes.h:511:32: note: expanded from macro 'strlcpy' #define strlcpy(d,s,z) sstrlcpy(d,s,z) ^ mailfold.c:362:59: warning: passing arguments to 'detab' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(sfolder);strlcpy(buf,lstfolder,MAXfoldlen);detab(buf);elog(buf); ^ mailfold.c:362:69: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(sfolder);strlcpy(buf,lstfolder,MAXfoldlen);detab(buf);elog(buf); ^ mailfold.c:364:13: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do elog(TABCHAR); ^ mailfold.c:366:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(7,lastdump,buf);elog(buf);elog(newline); ^ mailfold.c:366:33: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(7,lastdump,buf);elog(buf);elog(newline); ^ mailfold.c:366:43: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(7,lastdump,buf);elog(buf);elog(newline); ^ mailfold.c:339:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void logabstract(lstfolder)const char*const lstfolder; ^ In file included from mailfold.c:29: ./mailfold.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] logabstract P((const char*const lstfolder)), ^ mailfold.c:372:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void concon(ch)const int ch; /* flip between concatenated and split fields */ ^ In file included from mailfold.c:29: ./mailfold.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] concon P((const int ch)), ^ mailfold.c:388:30: warning: passing arguments to 'makeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dfilled=mailread=0;makeblock(&new,0); ^ mailfold.c:389:9: warning: passing arguments to 'readdyn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readdyn(&new,&dfilled,thebody-themail.p); ^ mailfold.c:393:16: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resizeblock(&themail,filled+=dfilled,1); ^ mailfold.c:394:14: warning: passing arguments to 'freeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freeblock(&new); ^ mailfold.c:397:16: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { resizeblock(&new,filled-tobesent+dfilled,0); ^ mailfold.c:399:14: warning: passing arguments to 'freeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freeblock(&themail); ^ mailfold.c:410:14: warning: passing arguments to 'makeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makeblock(&new,filled); ^ mailfold.c:413:14: warning: passing arguments to 'freeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freeblock(&themail); ^ mailfold.c:416:9: warning: passing arguments to 'readdyn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readdyn(&themail,&filled,filled+tobesent); ^ mailfold.c:423:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(thebody=strchr(thebody,'\n')) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ mailfold.c:423:15: note: place parentheses around the assignment to silence this warning while(thebody=strchr(thebody,'\n')) ^ ( ) mailfold.c:423:15: note: use '==' to turn this assignment into an equality comparison while(thebody=strchr(thebody,'\n')) ^ == mailfold.c:425:27: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { case '\t':case ' ':app_vall(confield,(long)(thebody-1-themail.p)); ^ ./misc.h:10:26: note: expanded from macro 'app_vall' #define app_vall(sp,val) app_val_type(sp,long,long,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) ^ mailfold.c:435:17: warning: passing arguments to 'egrepin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (chp=egrepin("^Content-Length:",themail.p, ^ mailfold.c:463:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(places,cntlen,num); /* our preferred size */ ^ mailfold.c:381:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void readmail(rhead,tobesent)int rhead;const long tobesent; ^ In file included from mailfold.c:29: ./mailfold.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] readmail P((int rhead,const long tobesent)); ^ 101 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments foldinfo.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] foldinfo.c:61:18: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *p++='.';ultoan((unsigned long)stbuf->st_ino,p); /* i-node numbered */ ^ foldinfo.c:63:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Renaming bogus mailbox \"");elog(name);elog("\" info"); ^ foldinfo.c:63:44: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Renaming bogus mailbox \"");elog(name);elog("\" info"); ^ foldinfo.c:63:55: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Renaming bogus mailbox \"");elog(name);elog("\" info"); ^ foldinfo.c:64:12: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logqnl(buf2); ^ foldinfo.c:54:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rnmbogus(name,stbuf,i,dolog)const char*const name; /* move a file */ ^ foldinfo.c:77:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static mode_t trymkdir(dir,paranoid,i)const char*const dir; ^ foldinfo.c:101:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int mkmaildir(buffer,chp,paranoid)char*const buffer,*const chp; ^ foldinfo.c:136:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Internal error: improper type ("); ^ foldinfo.c:137:7: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ltstr(0,type,buf2);elog(buf2); ^ foldinfo.c:137:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ltstr(0,type,buf2);elog(buf2); ^ foldinfo.c:138:6: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(") passed to foldertype for folder ");logqnl(buf); ^ foldinfo.c:138:51: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(") passed to foldertype for folder ");logqnl(buf); ^ foldinfo.c:149:34: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] memcpy(buf2,buf,i=lastdirsep(buf)-buf),buf2[i]='\0'; ^ foldinfo.c:153:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Unable to treat as directory");logqnl(buf); /* we can't make it */ ^ foldinfo.c:153:49: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Unable to treat as directory");logqnl(buf); /* we can't make it */ ^ foldinfo.c:155:26: warning: passing arguments to 'skipped' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { *chp='\0';skipped(buf);type=ft_CANTCREATE; ^ foldinfo.c:112:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int foldertype(type,forcedir,modep,paranoid)int type,forcedir; ^ In file included from foldinfo.c:20: ./foldinfo.h:19:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] foldertype Q((int type,int forcedir,mode_t*const modep, ^ foldinfo.c:184:23: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ch= *(chp=lastdirsep(buf)); ^ foldinfo.c:192:7: warning: | has lower precedence than ==; == will be evaluated first [-Wparentheses] <<1| /* note it in bit 1 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foldinfo.c:192:7: note: place parentheses around the '==' expression to silence this warning <<1| /* note it in bit 1 */ ^ foldinfo.c:192:7: note: place parentheses around the | expression to evaluate it first <<1| /* note it in bit 1 */ ^ foldinfo.c:199:12: warning: passing arguments to 'doumask' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doumask(GROUPW_UMASK); /* make it group-writable */ ^ foldinfo.c:206:14: warning: passing arguments to 'checkroot' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] checkroot('g',(unsigned long)sgid); ^ foldinfo.c:253:27: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { int i=lastdirsep(buf)-buf; ^ foldinfo.c:266:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Autoforwarding mailbox found\n"); ^ foldinfo.c:275:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(enfperm);logqnl(buf); ^ foldinfo.c:275:28: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(enfperm);logqnl(buf); ^ foldinfo.c:284:19: warning: passing arguments to 'xcreat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(!xcreat(buf,NORMperm,(time_t*)0,doCHOWN|doCHECK)) /* create */ ^ foldinfo.c:290:16: warning: passing arguments to 'xcreat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!xcreat(buf,NORMperm,(time_t*)0,doCHECK)) /* try again */ ^ foldinfo.c:294:13: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't create");logqnl(buf); ^ foldinfo.c:294:39: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't create");logqnl(buf); ^ foldinfo.c:301:24: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] defdeflock=tstrdup(buf); ^ foldinfo.c:304:25: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { int i=lastdirsep(buf)-buf; ^ foldinfo.c:172:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int screenmailbox(chp,egid,Deliverymode) ^ In file included from foldinfo.c:20: ./foldinfo.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] screenmailbox Q((char*chp,const gid_t egid,const int Deliverymode)); ^ 35 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments misc.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] misc.c:51:20: warning: passing arguments to 'frealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ ^ misc.c:51:40: warning: passing arguments to 'fmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ ^ misc.c:51:6: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:51:6: note: place parentheses around the assignment to silence this warning if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ ^ ( ) misc.c:51:6: note: use '==' to turn this assignment into an equality comparison if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ ^ == misc.c:67:12: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rwrite(STDERR,old,lold); ^ misc.c:71:12: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rwrite(STDERR,newt,lnew); ^ misc.c:35:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void elog(newt)const char*const newt; ^ In file included from misc.c:17: ./misc.h:25:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] elog P((const char*const newt)), ^ misc.c:80:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(savstdout);closelog();closerc(); ^ misc.c:90:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(insufprivs); ^ misc.c:84:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void checkroot(c,Xid)const int c;const unsigned long Xid; ^ In file included from misc.c:17: ./misc.h:28:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] checkroot P((const int c,const unsigned long Xid)), ^ misc.c:99:6: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] setruid(uid); ^~~~~~~~~~~~ ./includes.h:376:22: note: expanded from macro 'setruid' #define setruid(uid) setreuid(uid,-1) ^~~~~~~~ ~~~~~~ misc.c:102:6: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] setegid(gid); ^~~~~~~ ~~~ misc.c:111:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(errwwriting);logqnl(line); ^ misc.c:111:27: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(errwwriting);logqnl(line); ^ misc.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void writeerr(line)const char*const line; ^ In file included from misc.c:17: ./misc.h:30:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] writeerr P((const char*const line)), ^ misc.c:116:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Failed forking");logqnl(a); ^ misc.c:116:35: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Failed forking");logqnl(a); ^ misc.c:114:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int forkerr(pid,a)const pid_t pid;const char*const a; ^ In file included from misc.c:17: ./misc.h:49:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] forkerr Q((const pid_t pid,const char*const a)), ^ misc.c:124:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(okay?"Non-zero exitcode (":"Program failure ("); ^ misc.c:125:8: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ltstr(0,(long)xitcode,num);elog(num);elog(okay?") from":") of"); ^ misc.c:126:9: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logqnl(line); ^ misc.c:122:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void progerr(line,xitcode,okay)const char*const line;int xitcode,okay; ^ In file included from misc.c:17: ./misc.h:31:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] progerr P((const char*const line,int xitcode,int okay)), ^ misc.c:130:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't chdir to");logqnl(dir); ^ misc.c:130:35: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't chdir to");logqnl(dir); ^ misc.c:129:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void chderr(dir)const char*const dir; ^ In file included from misc.c:17: ./misc.h:32:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] chderr P((const char*const dir)), ^ misc.c:134:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't read");logqnl(file); ^ misc.c:134:31: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't read");logqnl(file); ^ misc.c:133:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void readerr(file)const char*const file; ^ In file included from misc.c:17: ./misc.h:33:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] readerr P((const char*const file)), ^ misc.c:141:15: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(buf,sgetc,2,0)) ^ misc.c:144:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bad: nlog(name);elog(toolong);elog(newline); ^ misc.c:148:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(name);elog(notabsolute);elog(newline); ^ misc.c:137:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int buildpath(name,path,file)const char*name,*const path,*const file; ^ In file included from misc.c:17: ./misc.h:50:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] buildpath P((const char*name,const char*const path,const char*const file)), ^ misc.c:168:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGUSR1,verboff); ^ misc.c:175:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGUSR2,verbon); ^ misc.c:181:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(a),logqnl(b); ^ misc.c:181:20: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(a),logqnl(b); ^ misc.c:179:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void yell(a,b)const char*const a,*const b; /* log if VERBOSE=on */ ^ In file included from misc.c:17: ./misc.h:38:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] yell P((const char*const a,const char*const b)), ^ misc.c:200:38: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("[");oldtime=newtime;ultstr(0,(unsigned long)thepid,num);elog(num); ^ misc.c:194:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void nlog(a)const char*const a; ^ In file included from misc.c:17: ./misc.h:39:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] nlog P((const char*const a)), ^ misc.c:206:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void logqnl(a)const char*const a; ^ In file included from misc.c:17: ./misc.h:40:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] logqnl P((const char*const a)), ^ misc.c:210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void skipped(x)const char*const x; ^ In file included from misc.c:17: ./misc.h:41:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] skipped P((const char*const x)), ^ misc.c:217:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(p= *gargv) ~^~~~~~~~ misc.c:217:10: note: place parentheses around the assignment to silence this warning while(p= *gargv) ^ ( ) misc.c:217:10: note: use '==' to turn this assignment into an equality comparison while(p= *gargv) ^ == misc.c:235:19: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return tmemmove(malloc(i),a,i); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ misc.c:232:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*tstrdup(a)const char*const a; ^ In file included from misc.c:17: ./misc.h:57:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *tstrdup P((const char*const a)), ^ misc.c:240:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(a); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ misc.c:238:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*cstr(a,b)char*const a;const char*const b; /* dynamic buffer management */ ^ In file included from misc.c:17: ./misc.h:58:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *cstr P((char*const a,const char*const b)), ^ misc.c:264:6: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(i=(lcking&~lck__NOMSG)>>1) ~^~~~~~~~~~~~~~~~~~~~~~~~ misc.c:264:6: note: place parentheses around the assignment to silence this warning if(i=(lcking&~lck__NOMSG)>>1) ^ ( ) misc.c:264:6: note: use '==' to turn this assignment into an equality comparison if(i=(lcking&~lck__NOMSG)>>1) ^ == misc.c:284:12: warning: passing arguments to 'sendcomsat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendcomsat(lstfolder); ^ misc.c:287:26: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { lstfolder=tgetenv(lastfolder); ^ misc.c:288:12: warning: passing arguments to 'sendcomsat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendcomsat(0); ^ misc.c:290:17: warning: passing arguments to 'logabstract' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logabstract(lstfolder); ^ misc.c:293:10: warning: passing arguments to 'exectrap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] exectrap(traps); ^ misc.c:296:23: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nextexit=2;unlock(&loclock);unlock(&globlock); ^ misc.c:296:40: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nextexit=2;unlock(&loclock);unlock(&globlock); ^ misc.c:305:9: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { ssleep((unsigned)suspendv); ^ misc.c:321:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { qsignal(SIGTERM,srequeue);qsignal(SIGINT,sbounce); ^ misc.c:321:36: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { qsignal(SIGTERM,srequeue);qsignal(SIGINT,sbounce); ^ misc.c:322:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGHUP,sbounce);qsignal(SIGQUIT,slose); ^ misc.c:322:34: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGHUP,sbounce);qsignal(SIGQUIT,slose); ^ misc.c:326:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void squeeze(target)char*target; ^ misc.c:354:15: warning: passing arguments to 'bregcomp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bregcomp(expr,!casesens)),(const uchar*)source,(const uchar*)source, ^ misc.c:353:34: warning: passing arguments to 'bregexec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { source=(const char*)bregexec((struct eps*)(expr=(char*) ^ misc.c:356:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(expr); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ misc.c:350:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*egrepin(expr,source,len,casesens)char*expr;const char*source; ^ In file included from misc.c:17: ./misc.h:59:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *egrepin P((char*expr,const char*source,const long len,int casesens)); ^ misc.c:364:26: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] passinvk&&auth_whatuid(passinvk)==uid|| ^ misc.c:361:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int enoughprivs(passinvk,euid,egid,uid,gid)const auth_identity*const passinvk; ^ In file included from misc.c:17: ./misc.h:52:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] enoughprivs Q((const auth_identity*const passinvk,const uid_t euid, ^ misc.c:371:8: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] curr=malloc(ioffsetof(struct dynstring,ename[0])+(len=strlen(chp)+1)); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ misc.c:368:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*newdynstring(adrp,chp)struct dynstring**const adrp; ^ In file included from misc.c:17: ./misc.h:61:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *newdynstring P((struct dynstring**const adrp,const char*const chp)); ^ misc.c:379:24: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sp->vals=sp->vals?realloc(sp->vals,len):malloc(len); /* expand */ ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ misc.c:379:46: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sp->vals=sp->vals?realloc(sp->vals,len):malloc(len); /* expand */ ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ misc.c:376:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*app_val_(sp,size)struct dyna_array*const sp;int size; ^ In file included from misc.c:17: ./misc.h:46:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *app_val_ P((struct dyna_array*const sp,int size)), ^ misc.c:397:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ misc.c:402:13: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concon(' '); ^ misc.c:422:16: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!testB('*')) /* marks a condition, new syntax */ ^ misc.c:424:14: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(testB('#')) /* line starts with a comment? */ ^ misc.c:428:14: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(testB('\n')) /* skip empty lines */ ^ misc.c:432:28: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(skippedempty&&testB(':')) ^ misc.c:439:18: warning: passing arguments to 'getlline' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(getlline(buf2,buf2+linebuf)) ^ misc.c:458:34: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(chp2>buf2&&*(chp2=skpspace(chp2))=='^') ^ misc.c:465:17: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chp2=skpspace(chp3); ^ misc.c:473:16: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(alphanum(*(chp2=chp))==1) ^ misc.c:475:22: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(alphanum(*++chp2)); ^ misc.c:476:33: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!strncmp(chp3=skpspace(chp2),"??",2)) ^ misc.c:491:19: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] docon: concon(' '); ^ misc.c:494:46: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ltobesent=strlen(lstartchar=(char*)tgetenv(chp)); ^ misc.c:495:26: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] partition: chp2=skpspace(chp3+2);chp++;sizecheck=ltobesent; ^ misc.c:531:15: warning: passing arguments to 'bregcomp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] re=bregcomp(chp,igncase);chp=lstartchar; ^ misc.c:533:27: warning: passing arguments to 'bregexec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(weight&&!bregexec(re,(const uchar*)chp, ^ misc.c:543:20: warning: passing arguments to 'bregexec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (chp2=bregexec(re,(const uchar*)lstartchar, ^ misc.c:562:4: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(re); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ misc.c:570:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(buf,sgetc,2,0)&&(i=0,1)) ^ misc.c:572:25: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strcpy(buf2,skpspace(buf)); ^ misc.c:574:41: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '!':negate^=1;chp2=skpspace(chp); ^ misc.c:577:35: warning: passing arguments to 'metaparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '?':pwait=2;metaparse(chp);inittmout(buf);ignwerr=1; ^ misc.c:577:50: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '?':pwait=2;metaparse(chp);inittmout(buf);ignwerr=1; ^ misc.c:578:11: warning: passing arguments to 'pipin' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pipin(buf,lstartchar,ltobesent,0); ^ misc.c:594:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(readparse(buf,sgetc,2,0)&&(i=0,1)) ^ misc.c:599:21: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skipped(skpspace(chp));strcpy(buf2,buf); ^ misc.c:629:30: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Score: ");ltstr(7,(long)(score-lscore),num); ^ misc.c:632:10: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ltstr(7,iscore,num); ^ misc.c:385:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int conditions(flags,prevcond,lastsucc,lastcond,skipping,nrcond)char flags[]; ^ In file included from misc.c:17: ./misc.h:54:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] conditions P((char flags[],const int prevcond,const int lastsucc, ^ 119 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments pipes.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] pipes.c:44:16: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { lastexec=cstr(lastexec,progname);toutflag=0; ^ pipes.c:43:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void inittmout(progname)const char*const progname; ^ In file included from pipes.c:18: ./pipes.h:5:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] inittmout P((const char*const progname)), ^ pipes.c:50:38: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { alarm(0);alrmtime=0;toutflag=1;nlog("Timeout, "); /* careful, killing */ ^ pipes.c:51:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(pidchild>0&&!kill(pidchild,SIGTERM)?"terminating":"was waiting for"); ^ pipes.c:52:9: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logqnl(lastexec);signal(SIGALRM,(void(*)())ftimeout); ^ pipes.c:66:15: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(dump(PWRB,ft_PIPE,backblock,backlen)) /* pump data back via */ ^ pipes.c:67:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(rescdata),elog("failed\n"); /* the backpipe */ ^ pipes.c:67:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(rescdata),elog("failed\n"); /* the backpipe */ ^ pipes.c:69:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(rescdata),elog("succeeded\n"); ^ pipes.c:69:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(rescdata),elog("succeeded\n"); ^ pipes.c:74:35: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { lexitcode=EX_UNAVAILABLE;qsignal(SIGTERM,stermchild); ^ pipes.c:75:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGINT,stermchild);qsignal(SIGHUP,stermchild); ^ pipes.c:75:37: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGINT,stermchild);qsignal(SIGHUP,stermchild); ^ pipes.c:76:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGQUIT,stermchild);shutdesc(); ^ pipes.c:80:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(STDIN);rdup(pip);rclose(pip); ^ pipes.c:80:21: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(STDIN);rdup(pip);rclose(pip); ^ pipes.c:80:33: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(STDIN);rdup(pip);rclose(pip); ^ pipes.c:79:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void getstdin(pip)const int pip; ^ pipes.c:94:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yell(executing,newname);newargv[3]=0;newargv[2]=newname; ^ pipes.c:95:44: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newargv[1]=shellflags;*newargv=tgetenv(shell);shexec(newargv); ^ pipes.c:95:58: warning: passing arguments to 'shexec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newargv[1]=shellflags;*newargv=tgetenv(shell);shexec(newargv); ^ pipes.c:100:13: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(executing);elog(oquote); ^ pipes.c:100:29: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(executing);elog(oquote); ^ pipes.c:105:9: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { elog(comma); ^ pipes.c:107:9: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(p); ^ pipes.c:114:12: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { elog(comma); ^ pipes.c:115:19: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] No_1st_comma: elog(*walkargs); /* expand it */ ^ pipes.c:124:6: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(cquote); /* allocate argv array */ ^ pipes.c:126:10: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newargv=malloc(argc*sizeof*newargv);p=newname;argc=0; ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ pipes.c:133:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(newargv[argc]= *walkargs++) ~~~~~~~~~~~~~^~~~~~~~~~~~~ pipes.c:133:27: note: place parentheses around the assignment to silence this warning while(newargv[argc]= *walkargs++) ^ ( ) pipes.c:133:27: note: use '==' to turn this assignment into an equality comparison while(newargv[argc]= *walkargs++) ^ == pipes.c:138:24: warning: passing arguments to 'shexec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] newargv[argc]=0;shexec(newargv); ^ pipes.c:83:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void callnewprog(newname)const char*const newname; ^ pipes.c:157:11: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pip: rpipe(pbackfd); ^ pipes.c:158:8: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rpipe(pinfd); /* main pipes setup */ ^ pipes.c:162:25: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] childsetup();rclose(PRDI);rclose(PRDB); ^ pipes.c:162:38: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] childsetup();rclose(PRDI);rclose(PRDB); ^ pipes.c:163:11: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rpipe(poutfd);rclose(STDOUT); ^ pipes.c:163:26: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rpipe(poutfd);rclose(STDOUT); ^ pipes.c:165:15: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); ^ pipes.c:165:28: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); ^ pipes.c:165:39: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); ^ pipes.c:165:52: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); ^ pipes.c:168:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRI);rclose(PRDO); ^ pipes.c:168:25: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRI);rclose(PRDO); ^ pipes.c:169:16: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(forkerr(pidfilt,line)) ^ pipes.c:170:8: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRO),stermchild(); ^ pipes.c:171:13: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(dump(PWRO,ft_PIPE,source,len)&&!ignwerr) /* send in the text */ ^ pipes.c:172:10: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeerr(line),lexitcode=EX_IOERR,stermchild(); /* to be filtered */ ^ pipes.c:174:27: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(pwait&&(excode=waitfor(pidfilt))!=EXIT_SUCCESS) ^ pipes.c:182:20: warning: passing arguments to 'progerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] perr: progerr(line,excode,pwait==4); /* I'm going to tell my mommy! */ ^ pipes.c:186:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRB);exit(EXIT_SUCCESS); /* allow parent to proceed */ ^ pipes.c:188:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRB);rclose(PWRI);getstdin(PRDI); ^ pipes.c:188:22: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRB);rclose(PWRI);getstdin(PRDI); ^ pipes.c:189:13: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(forkerr(pidchild,procmailn)) ^ pipes.c:193:46: warning: passing arguments to 'primeStdout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *eq='=';name=Stdout;Stdout=0;primeStdout(name);free(name); ^ pipes.c:193:53: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *eq='=';name=Stdout;Stdout=0;primeStdout(name);free(name); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ pipes.c:194:15: warning: passing arguments to 'makeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makeblock(&temp,Stdfilled); ^ pipes.c:196:13: warning: passing arguments to 'readdyn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readdyn(&temp,&Stdfilled,Stdfilled+backlen+1); ^ pipes.c:197:13: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Stdout=realloc(Stdout,Stdfilled+1); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ pipes.c:199:15: warning: passing arguments to 'freeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freeblock(&temp); ^ pipes.c:200:15: warning: passing arguments to 'retStdout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] retStdout(Stdout,pwait&&pipw,!backblock); ^ pipes.c:143:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int pipthrough(line,source,len)char*line,*source;const long len; ^ In file included from pipes.c:18: ./pipes.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] pipthrough P((char*line,char*source,const long len)); ^ pipes.c:239:8: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rpipe(poutfd); ^ pipes.c:241:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRO),shutdesc(),getstdin(PRDO),callnewprog(line); ^ pipes.c:242:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PRDO); ^ pipes.c:243:13: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(forkerr(pidchild,line)) ^ pipes.c:244:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rclose(PWRO); ^ pipes.c:247:15: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if((len=dump(PWRO,ft_PIPE,source,len))&&(!ignwerr||(len=0))) ^ pipes.c:248:14: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeerr(line); /* pipe was shut in our face, get mad */ ^ pipes.c:250:31: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(pwait&&(excode=waitfor(pidchild))!=EXIT_SUCCESS) ^ pipes.c:252:12: warning: passing arguments to 'progerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] progerr(line,excode,pwait&2); ^ pipes.c:259:17: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concatenate(line); ^ pipes.c:261:19: warning: passing arguments to 'setlastfolder' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlastfolder(line); ^ pipes.c:206:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long pipin(line,source,len,asgnlastf)char*const line;char*source;long len; ^ In file included from pipes.c:18: ./pipes.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] pipin P((char*const line,char*source,long len,int asgnlastf)); ^ pipes.c:268:22: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>=(got=rread(STDIN,p,left))) /* read mail */ ^ pipes.c:265:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char*read_read(p,left,data)char*p;long left;void*data; ^ pipes.c:280:13: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(1==rread(STDIN,buf,1)) /* backup pipe closed? */ ^ pipes.c:281:16: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { resizeblock(mb,oldfilled,0); ^ pipes.c:289:14: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pipw=waitfor(pidchild); /* reap your child in any case */ ^ pipes.c:274:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int read_cleanup(mb,filledp,origfilled,data)memblk*mb; ^ pipes.c:296:18: warning: passing arguments to 'read2blk' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { return read2blk(mb,filled,&read_read,&read_cleanup,&oldfilled); ^ pipes.c:295:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*readdyn(mb,filled,oldfilled)memblk*const mb;long*const filled,oldfilled; ^ In file included from pipes.c:18: ./pipes.h:14:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *readdyn P((struct memblk*const mb,long*const filled,long oldfilled)), ^ pipes.c:301:9: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concon('\n');rpipe(pinfd);inittmout(name); ^ pipes.c:301:21: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concon('\n');rpipe(pinfd);inittmout(name); ^ pipes.c:303:37: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { Stdout=name;childsetup();rclose(PRDI);rpipe(poutfd);rclose(STDOUT); ^ pipes.c:303:49: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { Stdout=name;childsetup();rclose(PRDI);rpipe(poutfd);rclose(STDOUT); ^ pipes.c:303:64: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { Stdout=name;childsetup();rclose(PRDI);rpipe(poutfd);rclose(STDOUT); ^ pipes.c:305:8: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRO),rdup(PWRI),rclose(PWRI),getstdin(PRDO),callnewprog(name); ^ pipes.c:305:19: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRO),rdup(PWRI),rclose(PWRI),getstdin(PRDO),callnewprog(name); ^ pipes.c:305:32: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRO),rdup(PWRI),rclose(PWRI),getstdin(PRDO),callnewprog(name); ^ pipes.c:306:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRI);rclose(PRDO); ^ pipes.c:306:25: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRI);rclose(PRDO); ^ pipes.c:307:16: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(forkerr(pidfilt,name)) ^ pipes.c:308:8: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRO),stermchild(); ^ pipes.c:309:10: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dump(PWRO,ft_PIPE,themail.p,filled);waitfor(pidfilt);exit(lexitcode); ^ pipes.c:309:49: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dump(PWRO,ft_PIPE,themail.p,filled);waitfor(pidfilt);exit(lexitcode); ^ pipes.c:311:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(PWRI);p=dest; ^ pipes.c:312:14: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!forkerr(pidchild,name)) ^ pipes.c:313:18: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { name=tstrdup(name); ^ pipes.c:314:22: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(0<(i=rread(PRDI,p,(int)max))&&(p+=i,max-=i)); /* read its lips */ ^ pipes.c:315:16: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0opc); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ regexp.c:373:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Invalid regexp"),logqnl(a); ^ regexp.c:373:35: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Invalid regexp"),logqnl(a); ^ regexp.c:363:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct eps*bregcomp(a,ign_case)const char*const a;const unsigned ign_case; ^ In file included from regexp.c:19: ./regexp.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] bregcomp P((const char*const a,const unsigned ign_case)); ^ regexp.c:431:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(thiss= *(reg= &PC(oldthis=thiss,th1))) /* wipe out list till you */ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ regexp.c:431:14: note: place parentheses around the assignment to silence this warning while(thiss= *(reg= &PC(oldthis=thiss,th1))) /* wipe out list till you */ ^ ( ) regexp.c:431:14: note: use '==' to turn this assignment into an equality comparison while(thiss= *(reg= &PC(oldthis=thiss,th1))) /* wipe out list till you */ ^ == regexp.c:428:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static struct eps*cleantail(start,thiss,th1)const char*const start; ^ regexp.c:601:16: warning: passing arguments to 'primeStdout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] primeStdout(amatch);p=realloc(Stdout,(Stdfilled+=len)+1); ^ regexp.c:601:27: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] primeStdout(amatch);p=realloc(Stdout,(Stdfilled+=len)+1); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ regexp.c:602:56: warning: passing arguments to 'retbStdout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmemmove(q=p+Stdfilled-(int)len,bom,len);retbStdout(p); ^ regexp.c:604:6: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yell("Matched",q); ^ regexp.c:439:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*bregexec(code,text,str,len,ign_case)struct eps*code; ^ In file included from regexp.c:19: ./regexp.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] bregexec Q((struct eps*code,const uchar*const text,const uchar*str,size_t len, ^ 22 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments robust.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] robust.c:27:18: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nextexit=2;nlog(outofmem);elog("\n"); ^ robust.c:27:33: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nextexit=2;nlog(outofmem);elog("\n"); ^ robust.c:31:46: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { buf[linebuf-1]=buf2[linebuf-1]='\0';elog("buffer 0:");logqnl(buf); ^ robust.c:31:66: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { buf[linebuf-1]=buf2[linebuf-1]='\0';elog("buffer 0:");logqnl(buf); ^ robust.c:32:10: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("buffer 1:");logqnl(buf2); ^ robust.c:32:30: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog("buffer 1:");logqnl(buf2); ^ robust.c:25:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void nomemerr(len)const size_t len; ^ In file included from robust.c:14: ./robust.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] nomemerr Q((const size_t len)) __attribute__((noreturn)), ^ robust.c:42:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=malloc(1)) ~^~~~~~~~~~ robust.c:42:7: note: place parentheses around the assignment to silence this warning if(p=malloc(1)) ^ ( ) robust.c:42:7: note: use '==' to turn this assignment into an equality comparison if(p=malloc(1)) ^ == robust.c:49:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=malloc(len)) ~^~~~~~~~~~~~ robust.c:49:7: note: place parentheses around the assignment to silence this warning if(p=malloc(len)) ^ ( ) robust.c:49:7: note: use '==' to turn this assignment into an equality comparison if(p=malloc(len)) ^ == robust.c:54:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=malloc(len)) /* some other process has paniced (and died 8-) */ ~^~~~~~~~~~~~ robust.c:54:10: note: place parentheses around the assignment to silence this warning if(p=malloc(len)) /* some other process has paniced (and died 8-) */ ^ ( ) robust.c:54:10: note: use '==' to turn this assignment into an equality comparison if(p=malloc(len)) /* some other process has paniced (and died 8-) */ ^ == robust.c:46:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*tmalloc(len)const size_t len; /* this malloc can survive a temporary */ ^ In file included from robust.c:14: ./robust.h:5:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *tmalloc Q((const size_t len)), ^ robust.c:65:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=realloc(old,len)) ~^~~~~~~~~~~~~~~~~ robust.c:65:7: note: place parentheses around the assignment to silence this warning if(p=realloc(old,len)) ^ ( ) robust.c:65:7: note: use '==' to turn this assignment into an equality comparison if(p=realloc(old,len)) ^ == robust.c:70:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=realloc(old,len)) ~^~~~~~~~~~~~~~~~~ robust.c:70:10: note: place parentheses around the assignment to silence this warning if(p=realloc(old,len)) ^ ( ) robust.c:70:10: note: use '==' to turn this assignment into an equality comparison if(p=realloc(old,len)) ^ == robust.c:62:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*trealloc(old,len)void*const old;const size_t len; ^ In file included from robust.c:14: ./robust.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *trealloc Q((void*const old,const size_t len)), ^ robust.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*fmalloc(len)const size_t len; /* 'fragile' malloc */ ^ In file included from robust.c:14: ./robust.h:7:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *fmalloc Q((const size_t len)), ^ robust.c:84:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*frealloc(old,len)void*const old;const size_t len; /* 'fragile' realloc */ ^ In file included from robust.c:14: ./robust.h:8:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *frealloc Q((void*const old,const size_t len)), ^ robust.c:90:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tfree(p)void*const p; ^ In file included from robust.c:14: ./robust.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] tfree P((void*const p)), ^ robust.c:98:23: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zombiecollect();elog(empty);r=noforkretry; /* flush log, just in case */ ^ robust.c:103:16: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(waitfor((pid_t)0)==NO_PROCESS) ^ robust.c:112:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(empty); /* flush stderr */ ^ robust.c:115:16: warning: passing arguments to 'opena' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(0>(i=opena(file))) /* error? keep the old LOGFILE */ ^ robust.c:116:14: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeerr(file),syslog(LOG_NOTICE,slogstr,errwwriting,file); ^ robust.c:118:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(STDERR),rdup(i),rclose(i),logopened=1; ^ robust.c:118:25: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(STDERR),rdup(i),rclose(i),logopened=1; ^ robust.c:118:35: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(STDERR),rdup(i),rclose(i),logopened=1; ^ robust.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void opnlog(file)const char*file; ^ In file included from robust.c:14: ./robust.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] opnlog P((const char*file)), ^ robust.c:122:7: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { yell("Opening",a); ^ robust.c:124:15: warning: passing arguments to 'ropen' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return ropen(a,O_WRONLY|O_APPEND|O_CREAT,NORMperm); ^ robust.c:121:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int opena(a)const char*const a; ^ In file included from robust.c:14: ./robust.h:16:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] opena P((const char*const a)), ^ robust.c:132:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ropen(name,mode,mask)const char*const name;const int mode; ^ In file included from robust.c:14: ./robust.h:17:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] ropen Q((const char*const name,const mode,const mode_t mask)), ^ robust.c:142:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rpipe(fd)int fd[2]; ^ In file included from robust.c:14: ./robust.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] rpipe P((int fd[2])), ^ robust.c:153:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rdup(p)const int p; ^ In file included from robust.c:14: ./robust.h:19:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] rdup P((const int p)), ^ robust.c:162:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rclose(fd)const int fd; /* a SysV secure close (signal immune) */ ^ In file included from robust.c:14: ./robust.h:20:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] rclose P((const int fd)), ^ robust.c:168:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rread(fd,a,len)const int fd,len;void*const a; /* a SysV secure read */ ^ In file included from robust.c:14: ./robust.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] rread P((const int fd,void*const a,const int len)), ^ robust.c:174:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rwrite(fd,a,len)const int fd,len;const void*const a; ^ In file included from robust.c:14: ./robust.h:22:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] rwrite P((const int fd,const void*const a,const int len)); ^ robust.c:186:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else /* set it manually again, to avoid problems with */ ^ robust.c:180:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ssleep(seconds)const unsigned seconds; ^ In file included from robust.c:14: ./robust.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] ssleep P((const unsigned seconds)), ^ robust.c:190:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void doumask(mask)const mode_t mask; ^ In file included from robust.c:14: ./robust.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] doumask Q((const mode_t mask)); ^ 54 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments sublib.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] sublib.c:148:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] size_t sstrlcat(dst,src,size)char *dst;const char*src;size_t size; ^ In file included from sublib.c:14: ./sublib.h:25:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] sstrlcat Q((char *dst,const char*src,size_t size)), ^ sublib.c:161:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] size_t sstrlcpy(dst,src,size)char *dst;const char*src;size_t size; ^ In file included from sublib.c:14: ./sublib.h:26:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] sstrlcpy Q((char *dst,const char*src,size_t size)); ^ 4 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments acommon.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] acommon.c:32:16: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!(name=malloc(strlen(names.nodename)+1))) ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ acommon.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*ultoan(val,dest)unsigned long val;char*dest; /* convert to a number */ ^ In file included from acommon.c:14: ./acommon.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *ultoan P((unsigned long val,char*dest)), ^ acommon.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*ultstr(minwidth,val,dest)int minwidth;unsigned long val;char*dest; ^ In file included from acommon.c:14: ./acommon.h:7:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *ultstr P((int minwidth,unsigned long val,char*dest)); ^ 5 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments mcommon.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] mcommon.c:20:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void qsignal(sig,action)const int sig;void(*action)P((void)); ^ In file included from mcommon.c:12: ./mcommon.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] qsignal P((const int sig,void(*action)(void))); ^ 2 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments lastdirsep.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] lastdirsep.c:18:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(p=strpbrk(filename,dirsep)) ~^~~~~~~~~~~~~~~~~~~~~~~~~ lastdirsep.c:18:10: note: place parentheses around the assignment to silence this warning while(p=strpbrk(filename,dirsep)) ^ ( ) lastdirsep.c:18:10: note: use '==' to turn this assignment into an equality comparison while(p=strpbrk(filename,dirsep)) ^ == lastdirsep.c:16:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*lastdirsep(filename)const char*filename; /* finds the next character */ ^ In file included from lastdirsep.c:12: ./lastdirsep.h:4:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *lastdirsep P((const char*filename)); ^ 3 warnings generated. clang -c -DPROCMAIL -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments authenticate.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] authenticate.c:62:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void castlower(str)register char*str; /* and I'll take the low road */ ^ authenticate.c:68:28: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static const struct passwd*cgetpwnam(user,sock)const char*const user; ^ authenticate.c:73:28: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static const struct passwd*cgetpwuid(uid,sock)const uid_t uid;const int sock; ^ authenticate.c:80:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=strchr(user,'@')) /* does the username contain an @? */ ~^~~~~~~~~~~~~~~~~ authenticate.c:80:10: note: place parentheses around the assignment to silence this warning if(p=strchr(user,'@')) /* does the username contain an @? */ ^ ( ) authenticate.c:80:10: note: use '==' to turn this assignment into an equality comparison if(p=strchr(user,'@')) /* does the username contain an @? */ ^ == authenticate.c:88:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(authi.mbox),authi.mbox=0; /* clear the reference */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:77:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] /*const*/auth_identity*auth_finduser(user,sock)char*const user;const int sock; ^ In file included from authenticate.c:39: ./authenticate.h:14:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *auth_finduser P((char*const user,const int sock)), ^ authenticate.c:97:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(authi.mbox),authi.mbox=0; /* nix old mailbox reference */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:92:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] /*const*/auth_identity*auth_finduid(uid,sock)const uid_t uid;const int sock; ^ In file included from authenticate.c:39: ./authenticate.h:15:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *auth_finduid Q((const uid_t uid,const int sock)); ^ authenticate.c:123:9: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (pass=malloc(sizeof*pass))->pw=0;pass->mbox=0;return pass; ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ authenticate.c:130:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(newpass->mbox),newpass->mbox=0; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:133:38: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { np=(struct passwd*)(newpass->pw=malloc(sizeof*np)); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ authenticate.c:137:19: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] np->pw_name=cstr(np->pw_name,op->pw_name); ^ authenticate.c:138:18: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] np->pw_dir=cstr(np->pw_dir,op->pw_dir); ^ authenticate.c:139:20: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] np->pw_shell=cstr(np->pw_shell,op->pw_shell); ^ authenticate.c:126:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void auth_copyid(newpass,oldpass)auth_identity*newpass; ^ In file included from authenticate.c:39: ./authenticate.h:32:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] auth_copyid P((auth_identity*newpass,const auth_identity*oldpass)), ^ authenticate.c:148:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=(struct passwd*)pass->pw) ~^~~~~~~~~~~~~~~~~~~~~~~~~ authenticate.c:148:7: note: place parentheses around the assignment to silence this warning if(p=(struct passwd*)pass->pw) ^ ( ) authenticate.c:148:7: note: use '==' to turn this assignment into an equality comparison if(p=(struct passwd*)pass->pw) ^ == authenticate.c:146:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void auth_zeroout(pass)auth_identity*pass; ^ authenticate.c:170:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=(struct passwd*)pass->pw) ~^~~~~~~~~~~~~~~~~~~~~~~~~ authenticate.c:170:7: note: place parentheses around the assignment to silence this warning if(p=(struct passwd*)pass->pw) ^ ( ) authenticate.c:170:7: note: use '==' to turn this assignment into an equality comparison if(p=(struct passwd*)pass->pw) ^ == authenticate.c:171:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:171:23: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:171:39: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:171:57: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:173:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(pass->mbox); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:174:3: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(pass); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ authenticate.c:167:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void auth_freeid(pass)auth_identity*pass; ^ In file included from authenticate.c:39: ./authenticate.h:33:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] auth_freeid P((auth_identity*pass)), ^ authenticate.c:177:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int auth_filledid(pass)const auth_identity*pass; ^ In file included from authenticate.c:39: ./authenticate.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] auth_filledid P((const auth_identity*pass)); ^ authenticate.c:192:22: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!(pass->mbox=malloc(STRLEN(mailspooldir)+MAILSPOOLHASH*2+ ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ authenticate.c:182:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*auth_mailboxname(pass)auth_identity*const pass; ^ In file included from authenticate.c:39: ./authenticate.h:24:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *auth_mailboxname P((auth_identity*const pass)), ^ authenticate.c:212:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] uid_t auth_whatuid(pass)const auth_identity*const pass; ^ In file included from authenticate.c:39: ./authenticate.h:29:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] auth_whatuid P((const auth_identity*const pass)), ^ authenticate.c:216:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] uid_t auth_whatgid(pass)const auth_identity*const pass; ^ In file included from authenticate.c:39: ./authenticate.h:30:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] auth_whatgid P((const auth_identity*const pass)); ^ authenticate.c:220:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*auth_homedir(pass)const auth_identity*const pass; ^ In file included from authenticate.c:39: ./authenticate.h:25:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *auth_homedir P((const auth_identity*const pass)), ^ authenticate.c:224:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*auth_shell(pass)const auth_identity*const pass; ^ In file included from authenticate.c:39: ./authenticate.h:26:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *auth_shell P((const auth_identity*const pass)), ^ authenticate.c:228:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*auth_username(pass)const auth_identity*const pass; ^ In file included from authenticate.c:39: ./authenticate.h:27:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *auth_username P((const auth_identity*const pass)); ^ authenticate.c:235:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(authi.mbox),authi.mbox=0; /* discard the mailbox reference */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ 45 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments lmtp.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] lmtp.c:78:33: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(already&&already!=rwrite(savstdout,bufcur=buf2,already)|| ^ lmtp.c:79:23: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] len&&len!=rwrite(savstdout,buffer,len)) ^ lmtp.c:74:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void bufwrite(buffer,len,flush) ^ lmtp.c:88:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int unexpect(str)const char*str; ^ lmtp.c:114:12: warning: passing arguments to 'ungetb' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { ungetb(c); ^ lmtp.c:167:19: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return tstrdup(buf); ^ lmtp.c:190:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(path); /* no local part */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ lmtp.c:175:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char *extractaddress(path)char *path; ^ lmtp.c:245:9: warning: passing arguments to 'pushfd' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pushfd(STDIN);overread=0;overlen=0;nliseol=1; ^ lmtp.c:247:17: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] currcpt=rcpts=malloc(INITIAL_RCPTS*sizeof*rcpts); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ lmtp.c:323:20: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jumpout: rpipe(pipefds); ^ lmtp.c:333:10: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(pipefds[0]); ^ lmtp.c:336:12: warning: passing arguments to 'makeFrom' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makeFrom(from+1,invoker); ^ lmtp.c:338:4: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(from); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ lmtp.c:339:25: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(size&&!resizeblock(&themail,size+=filled+3,1))/* try for */ ^ lmtp.c:343:13: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(rwrite(pipefds[1],&status,sizeof(status))!=sizeof(status)) ^ lmtp.c:351:14: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(pipefds[1]); ^ lmtp.c:352:19: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!forkerr(childserverpid,buf)) ^ lmtp.c:354:9: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rread(pipefds[0],&status,sizeof(status)); ^ lmtp.c:356:13: warning: passing arguments to 'pushfd' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { pushfd(pipefds[0]); /* pick up what the child */ ^ lmtp.c:362:14: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(pipefds[0]); ^ lmtp.c:386:14: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rcpts=realloc(rcpts,(num+INCR_RCPTS)*sizeof*rcpts); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ lmtp.c:397:31: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!(temp=auth_finduser(mailbox,0))) ^ lmtp.c:399:4: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(path); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ lmtp.c:402:19: warning: passing arguments to 'auth_copyid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] auth_copyid(*currcpt=auth_newid(),temp); ^ lmtp.c:403:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(path); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ lmtp.c:438:20: warning: passing arguments to 'readmail' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] deliver: readmail(2,0L); /* fix up things */ ^ lmtp.c:440:11: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rcpts=realloc(rcpts,(currcpt-rcpts)*sizeof*rcpts); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ lmtp.c:483:26: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(!resizeblock(&themail,size=filled+length+BLKSIZ,1)) ^ lmtp.c:486:18: warning: passing arguments to 'readLe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { i=readLe(buf,linebuf); ^ lmtp.c:491:26: warning: passing arguments to 'readLe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(length&&0>readLe(buf,length)) ^ lmtp.c:500:23: warning: passing arguments to 'readLe' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { int i=readLe(themail.p+filled,length); ^ lmtp.c:520:18: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resizeblock(&themail,(filled-=in-out)+1,1); ^ lmtp.c:538:31: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!(temp=auth_finduser(mailbox,0))) ^ lmtp.c:540:4: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(path); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ lmtp.c:543:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(path); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ lmtp.c:551:14: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { rwrite(ctopfd,cQUIT,STRLEN(cQUIT)); ^ lmtp.c:552:14: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(ctopfd); ^ lmtp.c:237:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct auth_identity **lmtp(lrout,invoker) ^ In file included from lmtp.c:23: ./lmtp.h:6:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] **lmtp P((struct auth_identity***lrout,char*invoker)); ^ lmtp.c:587:20: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(0>(i=rwrite(ctopfd,overread,overlen))) ^ lmtp.c:597:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(overread); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ lmtp.c:633:17: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(len!=rwrite(savstdout,message,len)) ^ lmtp.c:622:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void lmtpresponse(retcode)int retcode; ^ In file included from lmtp.c:23: ./lmtp.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] lmtpresponse P((int retcode)); ^ lmtp.c:652:22: warning: passing arguments to 'readL' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(0>=(got=readL(p,left))) /* read mail */ ^ lmtp.c:702:22: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmemmove(overread=malloc(overlen),in,overlen); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ lmtp.c:719:22: warning: passing arguments to 'readL' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(0>=(got=readL(p,left))) /* read mail */ ^ lmtp.c:758:22: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmemmove(overread=malloc(overlen),in,overlen); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ lmtp.c:774:11: warning: passing arguments to 'read2blk' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] read2blk(&themail,&filled,nliseol?&lmtp_read_nl:&lmtp_read_crnl, ^ 50 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments memblk.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] memblk.c:33:19: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { mb->len=0;mb->p=malloc(1);set_fd(mb,-1); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ memblk.c:35:17: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resizeblock(mb,len,0); ^ memblk.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void makeblock(mb,len)memblk*const mb;const long len; ^ In file included from memblk.c:16: ./memblk.h:14:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] makeblock P((memblk*const,const long)), /* create block of the given length */ ^ memblk.c:47:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(mb->p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ memblk.c:38:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void freeblock(mb)memblk*const mb; ^ In file included from memblk.c:16: ./memblk.h:15:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] freeblock P((memblk*const)), /* deallocate it */ ^ memblk.c:50:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void lockblock(mb)memblk*const mb; ^ In file included from memblk.c:16: ./memblk.h:16:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] lockblock P((memblk*const)); /* protect this block from future changes */ ^ memblk.c:71:22: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mb->len=0;mb->p=malloc(1);set_fd(mb,-1); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ memblk.c:120:16: warning: passing arguments to 'frealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p=frealloc(mb->p,(size_t)(len+1)); ^ memblk.c:126:12: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mb->p=realloc(mb->p,len+1); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ memblk.c:65:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int resizeblock(mb,len,nonfatal)memblk*const mb;const long len; ^ In file included from memblk.c:16: ./memblk.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] resizeblock P((memblk*const,const long,const int)); /* change the size */ ^ memblk.c:142:29: warning: passing arguments to 'nomemerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lcking|=lck_MEMORY,nomemerr(filled); ^ memblk.c:151:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) ^ memblk.c:151:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memblk.c:151:12: note: place parentheses around the assignment to silence this warning if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) ^ ( ) memblk.c:151:12: note: use '==' to turn this assignment into an equality comparison if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) ^ == memblk.c:163:35: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(cleanup_func&&(*cleanup_func)(mb,&filled,origfilled,data)) ^ memblk.c:133:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*read2blk(mb,filledp,read_func,cleanup_func,data)memblk*const mb; ^ In file included from memblk.c:16: ./memblk.h:20:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *read2blk P((memblk*const,long*const,read_func_type*,cleanup_func_type*,void*)); ^ 20 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments variables.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] variables.c:57:7: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yell("Assigning",a);remove=0; ^ variables.c:63:45: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { split=curr->ename;*last=curr->enext;free(curr); /* earlier? */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ variables.c:70:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { while(*preenv=preenv[1]) /* wipe this entry out of the environment */ ~~~~~~~^~~~~~~~~~ variables.c:70:22: note: place parentheses around the assignment to silence this warning { while(*preenv=preenv[1]) /* wipe this entry out of the environment */ ^ ( ) variables.c:70:22: note: use '==' to turn this assignment into an equality comparison { while(*preenv=preenv[1]) /* wipe this entry out of the environment */ ^ == variables.c:76:14: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] environ=realloc(environ,i); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ variables.c:78:33: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] alloced=1,environ=tmemmove(malloc(i),environ,i-sizeof*environ); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ variables.c:81:62: warning: passing arguments to 'newdynstring' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] preenv[1]=0;*(lastenv=preenv)=(char*)(split=newdynstring(&myenv,a)); ^ variables.c:54:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*sputenv(a)const char*const a; ^ In file included from variables.c:25: ./variables.h:4:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *sputenv P((const char*const a)), ^ variables.c:87:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void primeStdout(varname)const char*const varname; /* changes are allowed! */ ^ In file included from variables.c:25: ./variables.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] primeStdout P((const char*const varname)), ^ variables.c:99:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(newmyenv);*lastenv=Stdout=0; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ variables.c:104:13: warning: passing arguments to 'retbStdout' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] retbStdout(newmyenv); ^ variables.c:110:15: warning: passing arguments to 'asenvtext' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asenvtext(p+1); /* we always have to update the pointers for these */ ^ variables.c:112:11: warning: passing arguments to 'asenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asenv(p+1); /* invoke any magic */ ^ variables.c:94:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void retStdout(newmyenv,fail,unset) /* see note on primeStdout() */ ^ In file included from variables.c:25: ./variables.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] retStdout P((char*const newmyenv,const int fail,const int unset)), ^ variables.c:115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void retbStdout(newmyenv)char*const newmyenv; /* see note on primeStdout() */ ^ In file included from variables.c:25: ./variables.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] retbStdout P((char*const newmyenv)), ^ variables.c:125:5: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p=realloc(Stdout,(Stdfilled=len+1+strlen(value))+1); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ variables.c:121:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void appendlastvar(value)const char*const value; ^ In file included from variables.c:25: ./variables.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] appendlastvar P((const char*const value)), ^ variables.c:131:19: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] return readparse(dst,sgetc,2,0)?0:sputenv(buf); ^ variables.c:129:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*eputenv(src,dst)const char*const src;char*const dst; ^ In file included from variables.c:25: ./variables.h:5:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *eputenv P((const char*const src,char*const dst)), ^ variables.c:134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void setdef(name,value)const char*const name,*const value; ^ In file included from variables.c:25: ./variables.h:15:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] setdef P((const char*const name,const char*const value)), ^ variables.c:142:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*tgetenv(a)const char*const a; ^ In file included from variables.c:25: ./variables.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *tgetenv P((const char*const a)); ^ variables.c:159:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(ep=emax;p= *ep;ep++) /* scan for this keeper */ ~^~~~~ variables.c:159:15: note: place parentheses around the assignment to silence this warning for(ep=emax;p= *ep;ep++) /* scan for this keeper */ ^ ( ) variables.c:159:15: note: use '==' to turn this assignment into an equality comparison for(ep=emax;p= *ep;ep++) /* scan for this keeper */ ^ == variables.c:184:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(pp=ld_;p= *pp;pp++) /* does it start with LD_ or similar? */ ~^~~~~ variables.c:184:18: note: place parentheses around the assignment to silence this warning for(pp=ld_;p= *pp;pp++) /* does it start with LD_ or similar? */ ^ ( ) variables.c:184:18: note: use '==' to turn this assignment into an equality comparison for(pp=ld_;p= *pp;pp++) /* does it start with LD_ or similar? */ ^ == variables.c:151:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void cleanupenv(preserve)int preserve; ^ In file included from variables.c:25: ./variables.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] cleanupenv P((int preserve)), ^ variables.c:195:21: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { p=auth_username(pass); ^ variables.c:199:18: warning: passing arguments to 'auth_shell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p=auth_shell(pass); ^ variables.c:203:30: warning: passing arguments to 'auth_homedir' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setdef(home,auth_homedir(pass));setdef(orgmail,auth_mailboxname(pass)); ^ variables.c:203:69: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setdef(home,auth_homedir(pass));setdef(orgmail,auth_mailboxname(pass)); ^ variables.c:209:10: warning: passing arguments to 'setlgcs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlgcs(tgetenv(lgname)); /* make sure sendcomsat has a copy */ ^ variables.c:191:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void initdefenv(pass,fallback,do_presets)auth_identity*pass; ^ In file included from variables.c:25: ./variables.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] initdefenv Q((auth_identity*pass,const char*fallback,int do_presets)), ^ variables.c:227:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int alphanum(c)const unsigned c; ^ In file included from variables.c:25: ./variables.h:23:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] alphanum P((const unsigned c)); ^ variables.c:247:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void setmaildir(newdir)const char*const newdir; /* destroys buf2 */ ^ In file included from variables.c:25: ./variables.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] setmaildir P((const char*const newdir)), ^ variables.c:255:10: warning: passing arguments to 'setlfcs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlfcs(folder); ^ variables.c:257:14: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strcpy(chp=malloc(len),lastfolder); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ variables.c:258:3: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(chp,"=",len); ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ variables.c:259:3: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(chp,folder,len); ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ variables.c:260:16: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sputenv(chp);free(chp); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ variables.c:253:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void setlastfolder(folder)const char*const folder; ^ In file included from variables.c:25: ./variables.h:16:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] setlastfolder P((const char*const folder)), ^ variables.c:266:26: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if((forceret=renvint(-2L,p))>=0) /* yes, is it positive? */ ^ variables.c:274:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(0,(unsigned long)retval,p+1);sputenv(buf2); ^ variables.c:263:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int setexitcode(trapisset)int trapisset; ^ In file included from variables.c:25: ./variables.h:22:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] setexitcode P((int trapisset)), ^ variables.c:285:19: warning: passing arguments to 'ungetb' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *chp='\0';ungetb(i); ^ variables.c:287:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog(exceededlb);setoverflow(); ^ variables.c:280:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*gobenv(chp,end)char*chp,*end; ^ In file included from variables.c:25: ./variables.h:25:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *gobenv P((char*chp,char*end)); ^ variables.c:300:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(chp=strchr(src,'=')) /* is it an assignment? */ ~~~^~~~~~~~~~~~~~~~ variables.c:300:9: note: place parentheses around the assignment to silence this warning if(chp=strchr(src,'=')) /* is it an assignment? */ ^ ( ) variables.c:300:9: note: use '==' to turn this assignment into an equality comparison if(chp=strchr(src,'=')) /* is it an assignment? */ ^ == variables.c:309:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Assignment to variable with excessively long name skipped\n"); ^ variables.c:314:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(chp=eputenv(chp,src)) ~~~^~~~~~~~~~~~~~~~~ variables.c:314:8: note: place parentheses around the assignment to silence this warning if(chp=eputenv(chp,src)) ^ ( ) variables.c:314:8: note: use '==' to turn this assignment into an equality comparison if(chp=eputenv(chp,src)) ^ == variables.c:316:10: warning: passing arguments to 'asenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] asenv(chp); ^ variables.c:298:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int asenvcpy(src)char*src; ^ In file included from variables.c:25: ./variables.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] asenvcpy P((char*src)), ^ variables.c:328:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(buf2); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ variables.c:329:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ variables.c:331:7: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buf=malloc(lineb+XTRAlinebuf);buf2=malloc(lineb+XTRAlinebuf); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ variables.c:331:38: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buf=malloc(lineb+XTRAlinebuf);buf2=malloc(lineb+XTRAlinebuf); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ variables.c:335:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(0,lineb,chp+1); ^ variables.c:324:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void allocbuffers(lineb,setenv)size_t lineb;int setenv; ^ In file included from variables.c:25: ./variables.h:17:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] allocbuffers Q((size_t lineb,int setenv)), ^ variables.c:340:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void asenvtext(chp)const char*const chp; ^ variables.c:354:23: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if((lineb=renvint(0L,chp))0) ^ variables.c:389:16: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(renvint(0L,chp)) ^ variables.c:391:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Assuming identity of the recipient, VERBOSE=off\n"); ^ variables.c:396:16: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(renvint(0L,chp)) /* is it really? */ ^ variables.c:400:13: warning: passing arguments to 'forkerr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!forkerr(thepid,procmailn)) ^ variables.c:406:24: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(!lockit(tstrdup((char*)chp),&globlock)) ^ variables.c:406:16: warning: passing arguments to 'lockit' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(!lockit(tstrdup((char*)chp),&globlock)) ^ variables.c:410:13: warning: passing arguments to 'doumask' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doumask((mode_t)strtol(chp,(char**)0,8)); ^ variables.c:413:8: warning: passing arguments to 'pushrc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pushrc(chp); /* inside rcfiles */ ^ variables.c:417:10: warning: passing arguments to 'changerc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] changerc(chp); ^ variables.c:422:13: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { yell("HOST mismatched",name); ^ variables.c:432:29: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strenvvar[i].val=renvint(strenvvar[i].val,chp); ^ variables.c:348:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void asenv(chp)const char*const chp; ^ In file included from variables.c:25: ./variables.h:14:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] asenv P((const char*const chp)), ^ variables.c:438:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] long renvint(i,env)const long i;const char*const env; ^ In file included from variables.c:25: ./variables.h:27:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] renvint P((const long i,const char*const env)); ^ 95 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments from.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] from.c:25:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int eqFrom_(a)const char*const a; ^ In file included from from.c:19: ./from.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] eqFrom_ P((const char*const a)); ^ from.c:29:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] const char*skipFrom_(startchar,tobesentp)const char*startchar;long*tobesentp; ^ In file included from from.c:19: ./from.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *skipFrom_ P((const char*startchar,long*tobesentp)); ^ from.c:45:17: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start=skpspace(start);start+=strcspn(start," \t\n"); /* jump over address */ ^ from.c:46:14: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(skpspace(start)>=end) /* enough space left? */ ^ from.c:41:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char*findtstamp(start,end)const char*start,*end; ^ from.c:85:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(insufprivs); /* ignore the bogus -f */ ^ from.c:92:12: warning: passing arguments to 'makeblock' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makeblock(&themail,2*linebuf+(lfr=strlen(fwhom))+(linv=strlen(invoker))); ^ from.c:107:23: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { while(1==(r=rread(STDIN,themail.p,1))) /* then read in first line */ ^ from.c:110:43: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(r>0&&STRLEN(From_)<=(extra=1+rread( /* is it a From_ line? */ ^ from.c:115:23: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if((extra=rread(STDIN,themail.p,(int)(linebuf-2)))<=0) ^ from.c:127:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(insufprivs); ^ from.c:137:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ from.c:161:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if(from) /* whole new From_? */ ^ from.c:69:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void makeFrom(from,invoker)const char*from,*const invoker; ^ In file included from from.c:19: ./from.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] makeFrom P((const char*from,const char*const invoker)), ^ from.c:179:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(grp=getgrgid(gid)) /* check out the invoker's gid */ ~~~^~~~~~~~~~~~~~ from.c:179:12: note: place parentheses around the assignment to silence this warning if(grp=getgrgid(gid)) /* check out the invoker's gid */ ^ ( ) from.c:179:12: note: use '==' to turn this assignment into an equality comparison if(grp=getgrgid(gid)) /* check out the invoker's gid */ ^ == from.c:169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void checkprivFrom_(euid,logname,override)uid_t euid;const char*logname; ^ In file included from from.c:19: ./from.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] checkprivFrom_ Q((uid_t euid,const char*logname,int override)); ^ 20 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments comsat.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] comsat.c:37:17: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new=tstrdup(folder); ^ comsat.c:39:27: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { const char*md=tgetenv(maildir); ^ comsat.c:41:10: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new=malloc(len); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ comsat.c:43:6: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(new,MCDIRSEP_,len); ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ comsat.c:44:6: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(new,folder,len); ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ comsat.c:51:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(old); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ comsat.c:34:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void setlfcs(folder)const char*folder; /* set lastfolder for comsat */ ^ In file included from comsat.c:27: ./comsat.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] setlfcs P((const char*folder)), ^ comsat.c:56:14: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] new=tstrdup(name); ^ comsat.c:62:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(old); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ comsat.c:54:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void setlgcs(name)const char*name; /* set logname for comsat */ ^ In file included from comsat.c:27: ./comsat.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] setlgcs P((const char*name)), ^ comsat.c:68:21: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!chad&&!renvint(-1L,chp)) ^ comsat.c:84:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(csvalid=newvalid) ~~~~~~~^~~~~~~~~ comsat.c:84:13: note: place parentheses around the assignment to silence this warning if(csvalid=newvalid) ^ ( ) comsat.c:84:13: note: use '==' to turn this assignment into an equality comparison if(csvalid=newvalid) ^ == comsat.c:86:9: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(csaddr); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ comsat.c:87:13: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] csaddr=malloc(res->ai_addrlen); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ comsat.c:65:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int setcomsat(chp)const char*chp; ^ In file included from comsat.c:27: ./comsat.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] setcomsat P((const char*chp)); ^ comsat.c:105:3: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(buf,"@",linebuf); /* start setting up the message */ ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ comsat.c:107:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { ultstr(0,(unsigned long)lasttell,buf2); /* yep, include the offset */ ^ comsat.c:108:6: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(buf,buf2,linebuf); ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ comsat.c:110:3: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(buf,COMSATxtrsep,linebuf); /* custom seperator */ ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ comsat.c:111:3: warning: passing arguments to 'sstrlcat' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strlcat(buf,p,linebuf); /* where was it delivered? */ ^ ./includes.h:510:32: note: expanded from macro 'strlcat' #define strlcat(d,s,z) sstrlcat(d,s,z) ^ comsat.c:114:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rclose(s); ^ comsat.c:115:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yell("Notified comsat:",buf); ^ comsat.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void sendcomsat(folder)const char*folder; ^ In file included from comsat.c:27: ./comsat.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] sendcomsat P((const char*folder)); ^ 27 warnings generated. clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] setid.c:11:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc,argv)const int argc;const char*const argv[]; ^ 1 warning generated. clang -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments procmail.o cstdio.o common.o exopen.o goodies.o locking.o mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o lmtp.o memblk.o variables.o from.o comsat.o -o procmail -lm -lc ln ../src/procmail ../new/procmail clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments lockfile.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] lockfile.c:43:15: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] i=lastdirsep(name)-name; ^ lockfile.c:47:12: warning: passing arguments to 'unique' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(unique(p,p+i,i+UNIQnamelen,LOCKperm,0,doCHECK|doLOCK)) ^ lockfile.c:48:51: warning: passing arguments to 'myrename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] stat(p,&stbuf),*tim=stbuf.st_mtime,j=myrename(p,name); ^ lockfile.c:41:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int xcreat(name,tim)const char*const name;time_t*const tim; ^ lockfile.c:54:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] { write(STDERR,a,strlen(a)); ^~~~~ ~~~~~~~~~~~~~~~~~~ lockfile.c:53:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void elog(a)const char*const a; ^ lockfile.c:57:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void nlog(a)const char*const a; ^ lockfile.c:77:45: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] invert=(char*)progid-(char*)progid;qsignal(SIGHUP,failure); ^ lockfile.c:78:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGINT,failure);qsignal(SIGQUIT,failure);qsignal(SIGTERM,failure); ^ lockfile.c:78:34: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGINT,failure);qsignal(SIGQUIT,failure);qsignal(SIGTERM,failure); ^ lockfile.c:78:59: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] qsignal(SIGINT,failure);qsignal(SIGQUIT,failure);qsignal(SIGTERM,failure); ^ lockfile.c:105:41: warning: passing arguments to 'auth_finduid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(auth_mailboxname(auth_finduid(getuid(),0))); ^ lockfile.c:105:28: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(auth_mailboxname(auth_finduid(getuid(),0))); ^ lockfile.c:138:28: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (pass=auth_finduser(ma,0))&& ^ lockfile.c:139:21: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] auth_whatuid(pass)==uid|| ^ lockfile.c:140:26: warning: passing arguments to 'auth_finduid' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (pass=auth_finduid(uid,0)))) ^ lockfile.c:145:34: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!*(p=auth_mailboxname(pass))|| ^ lockfile.c:63:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc,argv)int argc;const char*const argv[]; ^ lockfile.c:250:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*tmalloc(len)const size_t len; /* stub */ ^ lockfile.c:257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tfree(p)void*const p; /* stub */ ^ lockfile.c:261:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ropen(name,mode,mask)const char*const name;const int mode; ^ lockfile.c:266:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rwrite(fd,a,len)const int fd;const void*const a;const int len; /* stub */ ^ lockfile.c:270:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int rclose(fd)const int fd; /* stub */ ^ lockfile.c:274:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void writeerr(a)const char*const a; /* stub */ ^ lockfile.c:278:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*cstr(a,b)char*const a;const char*const b; /* stub */ ^ lockfile.c:282:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ssleep(seconds)const unsigned seconds; /* stub */ ^ 26 warnings generated. clang -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments lockfile.o exopen.o sublib.o acommon.o mcommon.o authenticate.o lastdirsep.o -o lockfile -lm -lc ln ../src/lockfile ../new/lockfile clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments formail.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] formail.c:120:6: warning: passing arguments to 'tputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { putssn(sfolder,STRLEN(sfolder));putssn(logsummary,i=strlen(logsummary)); ^ ./formail.h:9:28: note: expanded from macro 'putssn' #define putssn(a,l) tputssn(a,(size_t)(l)) ^ formail.c:120:38: warning: passing arguments to 'tputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { putssn(sfolder,STRLEN(sfolder));putssn(logsummary,i=strlen(logsummary)); ^ ./formail.h:9:28: note: expanded from macro 'putssn' #define putssn(a,l) tputssn(a,(size_t)(l)) ^ formail.c:122:9: warning: passing arguments to 'tputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do putssn(tabchar,STRLEN(tabchar)); ^ ./formail.h:9:28: note: expanded from macro 'putssn' #define putssn(a,l) tputssn(a,(size_t)(l)) ^ formail.c:124:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(7,Totallen,num);putssn(num,strlen(num));putcs('\n'); ^ formail.c:124:29: warning: passing arguments to 'tputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(7,Totallen,num);putssn(num,strlen(num));putcs('\n'); ^ ./formail.h:9:28: note: expanded from macro 'putssn' #define putssn(a,l) tputssn(a,(size_t)(l)) ^ formail.c:132:13: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(eqFrom_(chp)) /* continued From_ to */ ^ formail.c:133:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ ~~~^~~~~~~~~~~~~~~~~~ formail.c:133:14: note: place parentheses around the assignment to silence this warning for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ ^ ( ) formail.c:133:14: note: use '==' to turn this assignment into an equality comparison for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ ^ == formail.c:134:34: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(newl==STRLEN(From_)&&eqFrom_(newname)) ^ formail.c:135:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { for(chp=p->fld_text;chp=strchr(chp,'\n');) /* continued regular */ ~~~^~~~~~~~~~~~~~~~~ formail.c:135:29: note: place parentheses around the assignment to silence this warning { for(chp=p->fld_text;chp=strchr(chp,'\n');) /* continued regular */ ^ ( ) formail.c:135:29: note: use '==' to turn this assignment into an equality comparison { for(chp=p->fld_text;chp=strchr(chp,'\n');) /* continued regular */ ^ == formail.c:138:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); ~~~^~~~~~~~~~~~~~~~~~ formail.c:138:29: note: place parentheses around the assignment to silence this warning for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); ^ ( ) formail.c:138:29: note: use '==' to turn this assignment into an equality comparison for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); ^ == formail.c:147:17: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *pointer=p=realloc(p,FLD_HEADSIZ+p->Tot_len); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ formail.c:128:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void renfield(pointer,oldl,newname,newl)struct field**const pointer; ^ formail.c:157:12: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (fp2=findf(fldp,&iheader))&& ^ formail.c:162:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if((fp2=findf(fldp,&Iheader))&& /* delete fields */ ^ formail.c:165:18: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ ^ formail.c:165:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ ~~~^~~~~~~~~~~~~~~~~~~~~ formail.c:165:12: note: place parentheses around the assignment to silence this warning if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ ^ ( ) formail.c:165:12: note: use '==' to turn this assignment into an equality comparison if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ ^ == formail.c:172:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if((uf=findf(fldp,&uheader))&&!uf->fld_ref) ^ formail.c:174:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(fp2=findf(fldp,&Uheader)) ^ formail.c:174:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if(fp2=findf(fldp,&Uheader)) ~~~^~~~~~~~~~~~~~~~~~~~~ formail.c:174:13: note: place parentheses around the assignment to silence this warning else if(fp2=findf(fldp,&Uheader)) ^ ( ) formail.c:174:13: note: use '==' to turn this assignment into an equality comparison else if(fp2=findf(fldp,&Uheader)) ^ == formail.c:182:16: warning: passing arguments to 'delfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delfield(fp2->fld_ref); /* delete old Uheader */ ^ formail.c:187:25: warning: passing arguments to 'delfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delfld: { fldp=delfield(afldp); ^ formail.c:151:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void procfields(sareply)const int sareply; ^ formail.c:222:10: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmp=malloc((j=fldp->Tot_len-j) + 1);tmemmove(tmp,chp,j);(chp=tmp)[j-1]='\0'; ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:233:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(pastad=strchr(chp,' ')) /* found an address? */ ~~~~~~^~~~~~~~~~~~~~~~ formail.c:233:11: note: place parentheses around the assignment to silence this warning if(pastad=strchr(chp,' ')) /* found an address? */ ^ ( ) formail.c:233:11: note: use '==' to turn this assignment into an equality comparison if(pastad=strchr(chp,' ')) /* found an address? */ ^ == formail.c:235:13: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savetmp=malloc(1+(j=pastad-chp)+1+1);tmemmove(savetmp,chp,j); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:264:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(savetmp);savetmp=strchr(tmp,'\0'); /* prepend '<' */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:268:26: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while(*(chp=skpspace(chp))=='\n') ^ formail.c:270:32: warning: passing arguments to 'skipwords' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] for(saddr=0;;chp=skipwords(chp)) /* skip RFC 822 wise */ ^ formail.c:276:23: warning: passing arguments to 'skipwords' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case '<':skipwords(saddr=chp); /* hurray, machine useable */ ^ formail.c:296:36: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pnewname: lastm=nowm;saddr=strcpy(malloc(strlen(saddr)+1),saddr); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:298:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(namep); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:302:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(tmp); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:214:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char*getsender(namep,fldp,headreply)char*namep;struct field*fldp; ^ formail.c:325:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Duplicate key found:"),elog(key),elog("\n"); ^ formail.c:325:37: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Duplicate key found:"),elog(key),elog("\n"); ^ formail.c:325:47: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Duplicate key found:"),elog(key),elog("\n"); ^ formail.c:307:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void elimdups(namep,idcache,maxlen,split)const char*const namep; ^ formail.c:375:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(chp=(char*)*++argv) ~~~^~~~~~~~~~~~~~~ formail.c:375:15: note: place parentheses around the assignment to silence this warning while(chp=(char*)*++argv) ^ ( ) formail.c:375:15: note: use '==' to turn this assignment into an equality comparison while(chp=(char*)*++argv) ^ == formail.c:409:9: warning: passing arguments to 'detab' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] detab(chp); ^ formail.c:417:40: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case HELPOPT1:case HELPOPT2:elog(fmusage);elog(FM_HELP); ^ formail.c:417:54: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case HELPOPT1:case HELPOPT2:elog(fmusage);elog(FM_HELP); ^ formail.c:418:8: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] elog(FM_HELP2); /* had to split up FM_HELP, compiler limits */ ^ formail.c:431:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't open");logqnl(chp); ^ formail.c:431:34: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("Couldn't open");logqnl(chp); ^ formail.c:446:28: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case FM_VERSION:elog(formailn);elog(VERSION); ^ formail.c:446:43: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] case FM_VERSION:elog(formailn);elog(VERSION); ^ formail.c:451:16: warning: passing arguments to 'breakfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] i=breakfield(chp,lnl=strlen(chp)); ^ formail.c:469:18: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] afldp=addfield(lastm==FM_REN_INSERT?&iheader: ^ formail.c:485:23: warning: passing arguments to 'breakfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if((i=breakfield(chp,(size_t)(namep-chp)))<0) /* partial */ ^ formail.c:488:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ formail.c:494:23: warning: passing arguments to 'breakfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (!(i=breakfield(chp,strlen(chp)))&& /* fieldish? */ ^ formail.c:497:22: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] invfield: { nlog("Invalid field-name:");logqnl(chp?chp:""); ^ formail.c:497:52: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] invfield: { nlog("Invalid field-name:");logqnl(chp?chp:""); ^ formail.c:501:8: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] realloc(fldp,FLD_HEADSIZ+(fldp->Tot_len=lnl+i)); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ formail.c:533:14: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmemmove(ep=malloc(envlen+sizeof*environ),environ,envlen); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:548:15: warning: passing arguments to 'startprog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] startprog((const char*Const*)argv); ^ formail.c:556:10: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { elog(fmusage); /* impossible mix */ ^ formail.c:564:7: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buf=malloc(buflen=Bsize);Totallen=0;i=maxindex(rex); /* prime some buffers */ ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:565:18: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do rex[i].rexp=malloc(1); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:567:19: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fdate=0;addfield(&fdate,date,STRLEN(date)); /* fdate is only for searching */ ^ formail.c:568:24: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fcntlength=0;addfield(&fcntlength,cntlength,STRLEN(cntlength)); /* ditto */ ^ formail.c:569:20: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fFrom_=0;addfield(&fFrom_,From_,STRLEN(From_)); ^ formail.c:570:22: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fsubject=0;addfield(&fsubject,subject,STRLEN(subject)); /* likewise */ ^ formail.c:576:15: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] !findf(fcntlength,&Xheader)); /* getting Content-Length: */ ^ formail.c:578:14: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addfield(&iheader,xloop,STRLEN(xloop)); /* preserve X-Loop: fields */ ^ formail.c:602:24: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eqFrom_(tmp2=skpspace(tmp+STRLEN(mailfrom)))) ^ formail.c:602:10: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] eqFrom_(tmp2=skpspace(tmp+STRLEN(mailfrom)))) ^ formail.c:610:17: warning: passing arguments to 'clear_uhead' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_uhead(uheader);clear_uhead(Uheader); ^ formail.c:610:38: warning: passing arguments to 'clear_uhead' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clear_uhead(uheader);clear_uhead(Uheader); ^ formail.c:611:41: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] wasafrom_=!force&&rdheader&&eqFrom_(rdheader->fld_text); ^ formail.c:619:5: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] realloc(fldp,FLD_HEADSIZ+(i=fldp->Tot_len++)+1))->fld_text; ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ formail.c:623:33: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { *afldp=fldp->fld_next;free(fldp);fldp= *afldp; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:622:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if(fldp->Tot_len<=j+2) ^ formail.c:628:16: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] concatenate(fldp); /* save fields for later perusal */ ^ formail.c:634:26: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { tmemmove(rex[i].rexp=realloc(rex[i].rexp,(rex[i].rexl=j)+1),chp,j); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ formail.c:642:33: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!forgetclen&&(fldp=findf(fcntlength,&rdheader))) ^ formail.c:647:25: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmemmove(parkedbuf=malloc(buffilled),buf,lenparkedbuf=buffilled); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:651:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!(fp2=findf(fldp,&iheader))||fp2->id_lenTot_len-1) ^ formail.c:652:30: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *afldp=fldp->fld_next,free(fldp),fldp= *afldp; /* remove all */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:655:9: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(To,STRLEN(To));loadchar(' '); /* generate the To: field */ ^ formail.c:655:33: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(To,STRLEN(To));loadchar(' '); /* generate the To: field */ ^ formail.c:657:12: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(namep,strlen(namep)); /* then insert it here */ ^ formail.c:659:29: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] retval=EX_NOUSER,loadbuf(unknown,STRLEN(unknown)); ^ formail.c:660:10: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadchar('\n');addbuf(); /* add it to rdheader */ ^ formail.c:662:12: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { loadbuf(subject,STRLEN(subject)); /* sure, check for leading */ ^ formail.c:663:28: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(strncasecmp(skpspace(chp=subj->rexp),Re,STRLEN(Re))) /* Re: */ ^ formail.c:663:55: warning: sizeof on pointer operation will return size of 'char *' instead of 'char[5]' [-Wsizeof-array-decay] if(strncasecmp(skpspace(chp=subj->rexp),Re,STRLEN(Re))) /* Re: */ ^~ ./formail.h:8:16: note: expanded from macro 'Re' #define Re (re+1) ~~^ ./includes.h:547:27: note: expanded from macro 'STRLEN' #define STRLEN(x) (sizeof(x)-1) ^ formail.c:664:15: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(re,STRLEN(re)); /* no Re: , add one ourselves */ ^ formail.c:665:14: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadsaved(subj);addbuf(); ^ formail.c:668:12: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { loadbuf(references,STRLEN(references)); /* yes insert References: */ ^ formail.c:672:17: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadsaved(refr); ^ formail.c:675:17: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadsaved(msid); /* here's our missing newline */ ^ formail.c:679:12: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(inreplyto,STRLEN(inreplyto)),loadsaved(msid),addbuf(); ^ formail.c:679:51: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(inreplyto,STRLEN(inreplyto)),loadsaved(msid),addbuf(); ^ formail.c:683:27: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (!rdheader||!eqFrom_(rdheader->fld_text))&& /* is it missing? */ ^ formail.c:684:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ((fldp=findf(fFrom_,&aheader))&&STRLEN(From_)+1>=fldp->Tot_len|| ^ formail.c:686:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] !findf(fFrom_,&iheader)&& /* and From_ is not being */ ^ formail.c:687:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] !findf(fFrom_,&Iheader)&& /* supressed */ ^ formail.c:688:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] !findf(fFrom_,&Rheader))) ^ formail.c:691:9: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(From_,STRLEN(From_)); ^ formail.c:693:12: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(namep,strlen(namep)); ^ formail.c:695:12: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(unknown,STRLEN(unknown)); ^ formail.c:696:10: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadchar(' '); /* insert one extra blank */ ^ formail.c:697:25: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!hdate->rexl||!findf(fdate,&aheader)) /* Date: */ ^ formail.c:698:13: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadchar(' '),chp=ctime(&t),loadbuf(chp,strlen(chp)); /* no Date: */ ^ formail.c:698:40: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadchar(' '),chp=ctime(&t),loadbuf(chp,strlen(chp)); /* no Date: */ ^ formail.c:700:14: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadsaved(hdate); /* yes, found Date:, then copy from it */ ^ formail.c:704:11: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!findf(fldp,&rdheader)) /* only add what didn't exist */ ^ formail.c:714:14: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p=chp=malloc(fldp->id_len+2+((sizeof h1*8+5)/6+1)*4+ ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ formail.c:717:27: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *++p='<';*(p=ultoan(h3,p+1))='.';*(p=ultoan(h4,p+1))='.'; ^ formail.c:717:51: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *++p='<';*(p=ultoan(h3,p+1))='.';*(p=ultoan(h4,p+1))='.'; ^ formail.c:718:18: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(p=ultoan(h2,p+1))='.';*(p=ultoan(h1,p+1))='@';strcpy(p+1,name); ^ formail.c:718:42: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(p=ultoan(h2,p+1))='.';*(p=ultoan(h1,p+1))='@';strcpy(p+1,name); ^ formail.c:719:50: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *(p=strchr(p,'\0'))='>';*++p='\n';addfield(&nheader,chp,p-chp+1); ^ formail.c:720:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(chp);h4++; /* put it in */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:723:16: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addfield(&nheader,fldp->fld_text,fldp->Tot_len); ^ formail.c:722:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ formail.c:725:19: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(eqFrom_(rdheader->fld_text)) ^ formail.c:726:5: warning: passing arguments to 'tputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putssn(rdheader->fld_text,rdheader->Tot_len); ^ ./formail.h:9:28: note: expanded from macro 'putssn' #define putssn(a,l) tputssn(a,(size_t)(l)) ^ formail.c:727:15: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(fldp=findf(fsubject,&rdheader)) ^ formail.c:727:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(fldp=findf(fsubject,&rdheader)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ formail.c:727:9: note: place parentheses around the assignment to silence this warning if(fldp=findf(fsubject,&rdheader)) ^ ( ) formail.c:727:9: note: use '==' to turn this assignment into an equality comparison if(fldp=findf(fsubject,&rdheader)) ^ == formail.c:728:16: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { concatenate(fldp);(chp=fldp->fld_text)[i=fldp->Tot_len-1]='\0'; ^ formail.c:729:10: warning: passing arguments to 'detab' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] detab(chp);putcs(' '); ^ formail.c:730:5: warning: passing arguments to 'tputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putssn(chp,i>=MAXSUBJECTSHOW?MAXSUBJECTSHOW:i);putcs('\n'); ^ ./formail.h:9:28: note: expanded from macro 'putssn' #define putssn(a,l) tputssn(a,(size_t)(l)) ^ formail.c:733:53: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmemmove(buf,parkedbuf,buffilled=lenparkedbuf);free(parkedbuf); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:735:13: warning: passing arguments to 'flushfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flushfield(&rdheader);flushfield(&nheader);dispfield(Aheader); ^ formail.c:735:35: warning: passing arguments to 'flushfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flushfield(&rdheader);flushfield(&nheader);dispfield(Aheader); ^ formail.c:735:55: warning: passing arguments to 'dispfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flushfield(&rdheader);flushfield(&nheader);dispfield(Aheader); ^ formail.c:736:12: warning: passing arguments to 'dispfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dispfield(iheader);dispfield(Iheader); ^ formail.c:736:31: warning: passing arguments to 'dispfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dispfield(iheader);dispfield(Iheader); ^ formail.c:738:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(namep); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:740:12: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputcs('\n'); /* make sure it is followed by an empty line */ ^ formail.c:759:2: warning: passing arguments to 'ltputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputssn(buf,buffilled),ctlength-=buffilled,buffilled=lnl=0; ^ ./formail.h:11:30: note: expanded from macro 'lputssn' #define lputssn(a,l) ltputssn(a,(size_t)(l)) ^ formail.c:762:35: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lnl=lwr==tbl&&lwr=='\n',lputcs(lwr=tbl),tbl=getchar(); ^ formail.c:764:11: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputcs('\n'),buflast=getchar(); /* wrap up loose end */ ^ formail.c:768:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(cntlength);elog(" field exceeds actual length by "); ^ formail.c:768:22: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(cntlength);elog(" field exceeds actual length by "); ^ formail.c:769:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(0,(unsigned long)ctlength,num);elog(num);elog(" bytes\n"); ^ formail.c:769:44: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(0,(unsigned long)ctlength,num);elog(num);elog(" bytes\n"); ^ formail.c:769:54: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(0,(unsigned long)ctlength,num);elog(num);elog(" bytes\n"); ^ formail.c:777:15: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { if(eqFrom_(chp=rdheader->fld_text)) /* check if it's From_ */ ^ formail.c:781:27: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (k=strcspn(chp=skpspace(chp+STRLEN(From_))," \t\n"))&& ^ formail.c:782:13: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *skpspace(chp+k)!='\n') ^ formail.c:785:4: warning: passing arguments to 'ltputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputssn(escap,escaplen); ^ ./formail.h:11:30: note: expanded from macro 'lputssn' #define lputssn(a,l) ltputssn(a,(size_t)(l)) ^ formail.c:791:13: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputcs('\n'); /* but now it does :-) */ ^ formail.c:796:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(couldntw),elog(", continuing...\n"); ^ formail.c:796:29: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(couldntw),elog(", continuing...\n"); ^ formail.c:800:25: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if((excode=waitfor(child))!=EXIT_SUCCESS&& ^ formail.c:806:13: warning: passing arguments to 'startprog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] startprog((const char*Const*)argv); ^ formail.c:811:17: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] else if(eqFrom_(buf)) /* special case, From_ line */ ^ formail.c:843:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(fldp=rdheader) /* we already read some "valid" fields */ ~~~~^~~~~~~~~ formail.c:843:9: note: place parentheses around the assignment to silence this warning if(fldp=rdheader) /* we already read some "valid" fields */ ^ ( ) formail.c:843:9: note: use '==' to turn this assignment into an equality comparison if(fldp=rdheader) /* we already read some "valid" fields */ ^ == formail.c:849:11: warning: passing arguments to 'ltputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { lputssn(escap,escaplen); ^ ./formail.h:11:30: note: expanded from macro 'lputssn' #define lputssn(a,l) ltputssn(a,(size_t)(l)) ^ formail.c:850:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=memchr(chp,'\n',fldp->Tot_len)) ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ formail.c:850:8: note: place parentheses around the assignment to silence this warning if(p=memchr(chp,'\n',fldp->Tot_len)) ^ ( ) formail.c:850:8: note: use '==' to turn this assignment into an equality comparison if(p=memchr(chp,'\n',fldp->Tot_len)) ^ == formail.c:854:4: warning: passing arguments to 'ltputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputssn(chp,p-chp); ^ ./formail.h:11:30: note: expanded from macro 'lputssn' #define lputssn(a,l) ltputssn(a,(size_t)(l)) ^ formail.c:857:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free(fldp); /* delete it */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:859:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(fldp=fp2); /* escape all fields we found */ ~~~~^~~~ formail.c:859:15: note: place parentheses around the assignment to silence this warning while(fldp=fp2); /* escape all fields we found */ ^ ( ) formail.c:859:15: note: use '==' to turn this assignment into an equality comparison while(fldp=fp2); /* escape all fields we found */ ^ == formail.c:863:8: warning: passing arguments to 'ltputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputssn(escap,escaplen); ^ ./formail.h:11:30: note: expanded from macro 'lputssn' #define lputssn(a,l) ltputssn(a,(size_t)(l)) ^ formail.c:868:52: warning: passing arguments to 'flushfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ox=xheader;oX=Xheader;xheader=Xheader=0;flushfield(&rdheader); ^ formail.c:872:8: warning: passing arguments to 'ltputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flbuf: lputssn(buf,buffilled),buffilled=0; ^ ./formail.h:11:30: note: expanded from macro 'lputssn' #define lputssn(a,l) ltputssn(a,(size_t)(l)) ^ formail.c:881:27: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] while((excode=waitfor((pid_t)0))!=NO_PROCESS) ^ formail.c:366:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(lastm,argv)int lastm;const char*const argv[]; ^ formail.c:890:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int eqFrom_(a)const char*const a; ^ In file included from formail.c:18: ./formail.h:42:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] eqFrom_ P((const char*const a)), ^ formail.c:894:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int breakfield(line,len)const char*const line;size_t len; /* look where the */ ^ In file included from formail.c:18: ./formail.h:43:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] breakfield Q((const char*const line,size_t len)); ^ 165 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments fields.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] fields.c:26:25: warning: passing arguments to 'addfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *ah=0,(*(ah=addfield(ah,chp,i)))->fld_next=h,(h= *ah)->fld_ref=0; ^ fields.c:20:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct field*findf(p,ah)const struct field*const p;register struct field**ah; ^ In file included from fields.c:16: ./fields.h:4:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *findf P((const struct field*const p,struct field**ah)), ^ fields.c:34:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) ~^~~~~ fields.c:34:21: note: place parentheses around the assignment to silence this warning for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) ^ ( ) fields.c:34:21: note: use '==' to turn this assignment into an equality comparison for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) ^ == fields.c:45:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void clear_uhead(hdr)register struct field*hdr; ^ In file included from fields.c:16: ./fields.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] clear_uhead P((struct field*hdr)), ^ fields.c:54:10: warning: passing arguments to 'tmalloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (*pp=p=malloc(FLD_HEADSIZ+totlen))->fld_next=0;idlen=breakfield(text,totlen); ^ ./shell.h:6:26: note: expanded from macro 'malloc' #define malloc(n) tmalloc((size_t)(n)) ^ fields.c:54:66: warning: passing arguments to 'breakfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] (*pp=p=malloc(FLD_HEADSIZ+totlen))->fld_next=0;idlen=breakfield(text,totlen); ^ fields.c:50:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct field**addfield(pointer,text,totlen)struct field**pointer; ^ In file included from fields.c:16: ./fields.h:5:4: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] **addfield Q((struct field**pointer,const char*const text, ^ fields.c:62:39: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] *pointer=(fldp= *pointer)->fld_next;free(fldp); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ fields.c:60:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] struct field*delfield(pointer)struct field**pointer; ^ In file included from fields.c:16: ./fields.h:7:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *delfield P((struct field**pointer)); ^ fields.c:69:14: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(!eqFrom_(p=fldp->fld_text)) /* don't concatenate From_ lines */ ^ fields.c:66:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void concatenate(fldp)struct field*const fldp; ^ In file included from fields.c:16: ./fields.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] concatenate P((struct field*const fldp)), ^ fields.c:81:17: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { chp=skpspace(chp); ^ fields.c:90:2: warning: passing arguments to 'tputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putssn(chp,echp-chp);putcs('\n'); ^ ./formail.h:9:28: note: expanded from macro 'putssn' #define putssn(a,l) tputssn(a,(size_t)(l)) ^ fields.c:96:3: warning: passing arguments to 'ltputssn' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lputssn(p->fld_text,p->Tot_len); /* display it entirely */ ^ ./formail.h:11:30: note: expanded from macro 'lputssn' #define lputssn(a,l) ltputssn(a,(size_t)(l)) ^ fields.c:75:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void extractfield(p)register const struct field*p; ^ fields.c:102:36: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] q=p->fld_next,extractfield(p),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ fields.c:99:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void flushfield(pointer)register struct field**pointer; /* delete and print */ ^ In file included from fields.c:16: ./fields.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] flushfield P((struct field**pointer)), ^ fields.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void dispfield(p)register const struct field*p; ^ In file included from fields.c:16: ./fields.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] dispfield P((const struct field*p)), ^ fields.c:114:23: warning: passing arguments to 'breakfield' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */ ^ fields.c:116:34: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */ ^ 27 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments formisc.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] formisc.c:20:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static const char*skipcomment(start)const char*start; ^ formisc.c:31:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] char*skipwords(start)char*start; /* skips an RFC 822 address */ ^ In file included from formisc.c:18: ./formisc.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] skipwords P((char*start)); ^ formisc.c:99:22: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { default:loadchar(' '); /* make sure it has leading whitespace */ ^ formisc.c:102:10: warning: passing arguments to 'loadbuf' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] loadbuf(sp->rexp,sp->rexl); ^ formisc.c:97:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void loadsaved(sp)const struct saved*const sp; /* load some saved text */ ^ In file included from formisc.c:18: ./formisc.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] loadsaved P((const struct saved*const sp)), ^ formisc.c:107:10: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buf=realloc(buf,buflen+=Bsize); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ formisc.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void loadbuf(text,len)const char*const text;const size_t len; ^ In file included from formisc.c:18: ./formisc.h:5:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] loadbuf Q((const char*const text,const size_t len)), ^ formisc.c:113:10: warning: passing arguments to 'trealloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] buf=realloc(buf,buflen+=Bsize); ^ ./shell.h:7:30: note: expanded from macro 'realloc' #define realloc(p,n) trealloc(p,(size_t)(n)) ^ formisc.c:111:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void loadchar(c)const int c; /* append one character to buf */ ^ In file included from formisc.c:18: ./formisc.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] loadchar P((const int c)), ^ formisc.c:132:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void elog(a)const char*const a; /* error output */ ^ In file included from formisc.c:18: ./formisc.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] elog P((const char*const a)), ^ formisc.c:136:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tputssn(a,l)const char*a;size_t l; ^ In file included from formisc.c:18: ./formisc.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] tputssn Q((const char*a,size_t l)), ^ formisc.c:141:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void ltputssn(a,l)const char*a;size_t l; ^ In file included from formisc.c:18: ./formisc.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] ltputssn Q((const char*a,size_t l)), ^ formisc.c:148:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void lputcs(i)const int i; ^ In file included from formisc.c:18: ./formisc.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] lputcs P((const int i)), ^ formisc.c:161:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] dup(oldstdout); ^~~ ~~~~~~~~~ formisc.c:170:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ultstr(lenfileno-(val<0),val<0?-val:val,chp); ^ formisc.c:174:6: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] pipe(poutfd); ^~~~ ~~~~~~ formisc.c:185:35: warning: passing arguments to 'waitfor' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] for(--children;(excode=waitfor((pid_t)0))!=NO_PROCESS;) ^ formisc.c:193:51: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] { close(STDIN);close(oldstdout);close(PWRO);dup(PRDO);close(PRDO); ^~~ ~~~~ formisc.c:194:8: warning: passing arguments to 'shexec' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shexec(argv); ^ formisc.c:201:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog("Can't fork\n"),exit(EX_OSERR); ^ formisc.c:155:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void startprog(argv)const char*Const*const argv; ^ In file included from formisc.c:18: ./formisc.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] startprog P((const char*Const*const argv)), ^ formisc.c:209:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] { nlog("File table full\n");exit(EX_OSERR); ^ formisc.c:212:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void nlog(a)const char*const a; ^ In file included from formisc.c:18: ./formisc.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] nlog P((const char*const a)), ^ formisc.c:216:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void logqnl(a)const char*const a; ^ In file included from formisc.c:18: ./formisc.h:14:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] logqnl P((const char*const a)), ^ 35 warnings generated. clang -c -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments ecommon.c clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] ecommon.c:21:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=malloc(len)) ~^~~~~~~~~~~~ ecommon.c:21:7: note: place parentheses around the assignment to silence this warning if(p=malloc(len)) ^ ( ) ecommon.c:21:7: note: use '==' to turn this assignment into an equality comparison if(p=malloc(len)) ^ == ecommon.c:23:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(outofmem);exit(EX_OSERR); ^ ecommon.c:19:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*tmalloc(len)const size_t len; ^ In file included from ecommon.c:12: ./ecommon.h:4:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *tmalloc Q((const size_t len)), ^ ecommon.c:27:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { if(old=realloc(old,len)) ~~~^~~~~~~~~~~~~~~~~ ecommon.c:27:9: note: place parentheses around the assignment to silence this warning { if(old=realloc(old,len)) ^ ( ) ecommon.c:27:9: note: use '==' to turn this assignment into an equality comparison { if(old=realloc(old,len)) ^ == ecommon.c:29:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nlog(outofmem);exit(EX_OSERR); ^ ecommon.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void*trealloc(old,len)void*old;const size_t len; ^ In file included from ecommon.c:12: ./ecommon.h:5:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *trealloc Q((void*old,const size_t len)), ^ ecommon.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void tfree(a)void*a; ^ In file included from ecommon.c:12: ./ecommon.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] tfree P((void*a)); ^ 10 warnings generated. clang -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pie -Wl,-z,relro,-z,now -Wno-comments formail.o common.o fields.o formisc.o sublib.o ecommon.o acommon.o -o formail -lm -lc ln ../src/formail ../new/formail cp ../examples/mailstat mailstat ln ../src/mailstat ../new/mailstat make[1]: Leaving directory '/builddir/build/BUILD/procmail-3.22/src' cd man; make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5 make[1]: Entering directory '/builddir/build/BUILD/procmail-3.22/man' make[2]: Entering directory '/builddir/build/BUILD/procmail-3.22/src' manconf.c:28:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char*skltmark(nl,current)int nl;char**current; ^ manconf.c:38:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void putcesc(i)int i; ^ manconf.c:57:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void putsesc(a)const char*a; ^ manconf.c:77:52: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] { sprintf(filebuf,"%s.%04d",*gargv,filecount++);freopen(filebuf,"w",stdout); ^~~~~~~ ~~~~~~~~~~~~~~~~~~ manconf.c:71:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void pname(name,supps)const char*const name;int supps; ^ manconf.c:84:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void pnr(name,value)const char*const name;const long value; ^ manconf.c:92:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void plist(name,preamble,list,postamble,ifno,andor) ^ manconf.c:111:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void ps(name,value)const char*const name,*const value; ^ manconf.c:115:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void pc(name,value)const char*const name;const int value; ^ manconf.c:368:23: warning: while loop has empty body [-Wempty-body] while(*++p=='\t');*(q=strchr(p,'\n'))='\0'; ^ manconf.c:368:23: note: put the semicolon on a separate line to silence this warning manconf.c:119:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc,argv)int argc;const char*const argv[]; ^ 11 warnings generated. make[2]: Leaving directory '/builddir/build/BUILD/procmail-3.22/src' /bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null ln ../man/procmail.1 ../new/procmail.1 /bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null ln ../man/formail.1 ../new/formail.1 /bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null ln ../man/lockfile.1 ../new/lockfile.1 /bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null ln ../man/procmailrc.5 ../new/procmailrc.5 /bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null ln ../man/procmailsc.5 ../new/procmailsc.5 /bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null ln ../man/procmailex.5 ../new/procmailex.5 make[1]: Leaving directory '/builddir/build/BUILD/procmail-3.22/man' make[1]: Entering directory '/builddir/build/BUILD/procmail-3.22/src' clang-15: warning: -Wl,-z,relro,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang-15: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] recommend.c:32:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ recommend.c:41:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(grp=getgrgid(gid)) ~~~^~~~~~~~~~~~~~ recommend.c:41:12: note: place parentheses around the assignment to silence this warning if(grp=getgrgid(gid)) ^ ( ) recommend.c:41:12: note: use '==' to turn this assignment into an equality comparison if(grp=getgrgid(gid)) ^ == recommend.c:43:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ recommend.c:15:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int main(argc,argv)const int argc;const char*const argv[]; ^ 4 warnings generated. make[1]: Leaving directory '/builddir/build/BUILD/procmail-3.22/src' =============================================================================== If you are a system administrator you should consider integrating procmail into the mail-delivery system -- for advanced functionality, speed AND SECURITY --. For more information about this topic you should look in the examples/advanced file. Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it): chown root /usr/bin/procmail chgrp mail /usr/bin/procmail /usr/bin/lockfile chmod 6755 /usr/bin/procmail chmod 2755 /usr/bin/lockfile =============================================================================== If you would like to inspect the results before running make install: All installable files can be found in the new/ subdirectory. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.KaojLb + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64 ++ dirname /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64 + CFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -flto -fno-openmp-implicit-rpath -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + cd procmail-3.22 + rm -rf /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64 + mkdir -p /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin + mkdir -p /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/man/man1 /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/man/man5 + make BASENAME=/builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr MANDIR=/builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/man install make[1]: Entering directory '/builddir/build/BUILD/procmail-3.22' cd man; make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5 make[2]: Entering directory '/builddir/build/BUILD/procmail-3.22/man' make[3]: Entering directory '/builddir/build/BUILD/procmail-3.22/src' make[3]: '../man/man.sed' is up to date. make[3]: Leaving directory '/builddir/build/BUILD/procmail-3.22/src' make[2]: '../new/formail.1' is up to date. make[2]: '../new/lockfile.1' is up to date. make[2]: '../new/procmailrc.5' is up to date. make[2]: '../new/procmailsc.5' is up to date. make[2]: '../new/procmailex.5' is up to date. make[2]: Leaving directory '/builddir/build/BUILD/procmail-3.22/man' echo Housekeeping file >install.man cd src; make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat make[2]: Entering directory '/builddir/build/BUILD/procmail-3.22/src' make[2]: '../new/procmail' is up to date. make[2]: '../new/lockfile' is up to date. make[2]: '../new/formail' is up to date. make[2]: '../new/mailstat' is up to date. make[2]: Leaving directory '/builddir/build/BUILD/procmail-3.22/src' cp new/procmail new/lockfile new/formail new/mailstat /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin echo Housekeeping file >install.bin make[1]: Leaving directory '/builddir/build/BUILD/procmail-3.22' Installed in /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin -rwxr-xr-x. 1 mockbuild mock 165696 Sep 20 14:12 formail -rwxr-xr-x. 1 mockbuild mock 60504 Sep 20 14:12 lockfile -rwxr-xr-x. 1 mockbuild mock 5859 Sep 20 14:12 mailstat -rwxr-xr-x. 1 mockbuild mock 474912 Sep 20 14:12 procmail Installed in /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/man/man1 -rw-r--r--. 1 mockbuild mock 15334 Sep 20 14:12 formail.1 -rw-r--r--. 1 mockbuild mock 6897 Sep 20 14:12 lockfile.1 -rw-r--r--. 1 mockbuild mock 28125 Sep 20 14:12 procmail.1 Installed in /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/man/man5 -rw-r--r--. 1 mockbuild mock 16858 Sep 20 14:12 procmailex.5 -rw-r--r--. 1 mockbuild mock 31403 Sep 20 14:12 procmailrc.5 -rw-r--r--. 1 mockbuild mock 8074 Sep 20 14:12 procmailsc.5 make[1]: Entering directory '/builddir/build/BUILD/procmail-3.22' make[2]: Entering directory '/builddir/build/BUILD/procmail-3.22/src' make[2]: 'recommend' is up to date. make[2]: Leaving directory '/builddir/build/BUILD/procmail-3.22/src' =============================================================================== If you are a system administrator you should consider integrating procmail into the mail-delivery system -- for advanced functionality, speed AND SECURITY --. For more information about this topic you should look in the examples/advanced file. Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it): chown root /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/procmail chgrp mail /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/procmail /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/lockfile chmod 6755 /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/procmail chmod 2755 /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/lockfile =============================================================================== make[1]: Leaving directory '/builddir/build/BUILD/procmail-3.22' + cp debian/mailstat.1 /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/man/man1 + cp -p /builddir/build/SOURCES/procmailrc telsas_procmailrc + /bin/bash /usr/lib/rpm/redhat/verify-clang-cc --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/formail error: write on a pipe with no reader [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/formail built with clang --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/lockfile [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/lockfile built with clang --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/procmail error: write on a pipe with no reader [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/procmail built with clang + /usr/lib/rpm/redhat/brp-llvm-compile-lto-elf -O2 -flto -fexceptions -g -grecord-gcc-switches -pipe -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -flto -fno-openmp-implicit-rpath -Wl,--build-id=sha1 Checking for LLVM bitcode artifacts + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 3.22-57.fc37_clang15_12 --unique-debug-suffix -3.22-57.fc37_clang15_12.x86_64 --unique-debug-src-base procmail-3.22-57.fc37_clang15_12.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/procmail-3.22 extracting debug info from /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/lockfile extracting debug info from /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/formail extracting debug info from /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/procmail original debug info size: 516kB, size after compression: 512kB /usr/bin/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match. 592 blocks + /usr/lib/rpm/check-buildroot + /bin/bash /usr/lib/rpm/redhat/verify-clang-cc --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/lockfile-3.22-57.fc37_clang15_12.x86_64.debug [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/lockfile-3.22-57.fc37_clang15_12.x86_64.debug built with clang --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/formail-3.22-57.fc37_clang15_12.x86_64.debug error: write on a pipe with no reader [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/formail-3.22-57.fc37_clang15_12.x86_64.debug built with clang --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/procmail-3.22-57.fc37_clang15_12.x86_64.debug error: write on a pipe with no reader error: write on a pipe with no reader [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/procmail-3.22-57.fc37_clang15_12.x86_64.debug built with clang --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/formail error: write on a pipe with no reader [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/formail-3.22-57.fc37_clang15_12.x86_64.debug built with clang --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/lockfile error: write on a pipe with no reader [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/lockfile-3.22-57.fc37_clang15_12.x86_64.debug built with clang --- COMPILER CHECK: /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/bin/procmail error: write on a pipe with no reader [ 5c] clang version 15.0.0 (Fedora 15.0.0-2.fc37) /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/lib/debug/usr/bin/procmail-3.22-57.fc37_clang15_12.x86_64.debug built with clang + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/mailstat from /bin/sh to #!/usr/bin/sh + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: procmail-3.22-57.fc37_clang15_12.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.qQQZRE + umask 022 + cd /builddir/build/BUILD + cd procmail-3.22 + DOCDIR=/builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr Artistic /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr COPYING /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr FAQ /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr FEATURES /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr HISTORY /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr README /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr KNOWN_BUGS /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr examples /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr telsas_procmailrc /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr debian/QuickStart /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + cp -pr debian/README.Maildir /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64/usr/share/doc/procmail + RPM_EC=0 ++ jobs -p + exit 0 Provides: procmail = 3.22-57.fc37_clang15_12 procmail(x86-64) = 3.22-57.fc37_clang15_12 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.29)(64bit) rtld(GNU_HASH) Processing files: procmail-debugsource-3.22-57.fc37_clang15_12.x86_64 Provides: procmail-debugsource = 3.22-57.fc37_clang15_12 procmail-debugsource(x86-64) = 3.22-57.fc37_clang15_12 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: procmail-debuginfo-3.22-57.fc37_clang15_12.x86_64 Provides: debuginfo(build-id) = 05280464a17bab622be281b8128c8f80daef8f4c debuginfo(build-id) = 87ac13555b7e09420c0556d0ddf08a12bd9dade8 debuginfo(build-id) = bd5d5bee3fd5fefb3ea65015e50f693560c7ebe7 procmail-debuginfo = 3.22-57.fc37_clang15_12 procmail-debuginfo(x86-64) = 3.22-57.fc37_clang15_12 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: procmail-debugsource(x86-64) = 3.22-57.fc37_clang15_12 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64 Wrote: /builddir/build/RPMS/procmail-3.22-57.fc37_clang15_12.x86_64.rpm Wrote: /builddir/build/RPMS/procmail-debuginfo-3.22-57.fc37_clang15_12.x86_64.rpm Wrote: /builddir/build/RPMS/procmail-debugsource-3.22-57.fc37_clang15_12.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ob9fd2 + umask 022 + cd /builddir/build/BUILD + cd procmail-3.22 + /usr/bin/rm -rf /builddir/build/BUILDROOT/procmail-3.22-57.fc37_clang15_12.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.q3W9P8 + umask 022 + cd /builddir/build/BUILD + rm -rf procmail-3.22 procmail-3.22.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: Macro expanded in comment on line 13: %{version}.tar.gz Child return code was: 0