Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/sc.spec'], chrootPath='/var/lib/mock/f42-build-56834038-6546493/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=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--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']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--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', '96b21e2c517543fd8ffc2712a23f761a', '-D', '/var/lib/mock/f42-build-56834038-6546493/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/sc.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 Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1721433600 Wrote: /builddir/build/SRPMS/sc-7.16-25.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/sc.spec'], chrootPath='/var/lib/mock/f42-build-56834038-6546493/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=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--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']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--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', '82974e91adff414d8cf4a98d3e70edb6', '-D', '/var/lib/mock/f42-build-56834038-6546493/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/sc.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 Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1721433600 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.QQjeKC + umask 022 + cd /builddir/build/BUILD/sc-7.16-build + test -d /builddir/build/BUILD/sc-7.16-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/sc-7.16-build + /usr/bin/rm -rf /builddir/build/BUILD/sc-7.16-build + /usr/bin/mkdir -p /builddir/build/BUILD/sc-7.16-build + /usr/bin/mkdir -p /builddir/build/BUILD/sc-7.16-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.jZFWqM + umask 022 + cd /builddir/build/BUILD/sc-7.16-build + cd /builddir/build/BUILD/sc-7.16-build + rm -rf sc-7.16 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/sc-7.16.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd sc-7.16 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Upstream-changes-from-old-versions.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/function_definitions.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/call_function_not_take_its_address.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/format_security_fixes.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/nonotimeout-ncurses6.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vCZv1f + umask 022 + cd /builddir/build/BUILD/sc-7.16-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd sc-7.16 + make all sc.1 psc.1 -j12 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -DDFLT_PAGER=\"less\" -c abbrev.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -DDOBACKUPS -c cmds.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -c -o color.o color.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -DDOBACKUPS -c crypt.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -c -o format.o format.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -c -o frame.o frame.c bison -y -d gram.y gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -c help.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -ffloat-store -DSIGVOID \ -DREGCOMP -c interp.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -c -o pipe.o pipe.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -c -o range.o range.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -DDFLT_PAGER=\"less\" -DSIGVOID -DSAVENAME=\"SC.SAVE\" -c sc.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DSYSV3 -DSIGVOID \ -c screen.c format.c: In function ‘engformat’: format.c:504:21: warning: conflicting types for built-in function ‘pow’; expected ‘double(double, double)’ [-Wbuiltin-declaration-mismatch] 504 | double engmant, pow(), engabs, engexp; | ^~~ format.c:97:1: note: ‘pow’ is declared in header ‘’ 96 | #include "sc.h" +++ |+#include 97 | format.c:537:31: error: too many arguments to function ‘pow’; expected 0, have 2 537 | engmant = val/pow(10.0e0,engexp); | ^~~ ~~~~~~ format.c:504:21: note: declared here 504 | double engmant, pow(), engabs, engexp; | ^~~ make: *** [: format.o] Error 1 make: *** Waiting for unfinished jobs.... pipe.c: In function ‘getnum’: pipe.c:39:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 39 | if (p) | ^ In file included from pipe.c:12: pipe.c: In function ‘doquery’: pipe.c:311:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] 311 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ pipe.c: In function ‘getnum’: In file included from sc.c:37: sc.c: In function ‘main’: pipe.c:49:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 49 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sc.c:484:35: warning: zero-length gnu_printf format string [-Wformat-zero-length] 484 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ pipe.c: In function ‘fgetnum’: pipe.c:92:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 92 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘getstring’: pipe.c:117:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 117 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘getexp’: pipe.c:149:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 149 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘getformat’: pipe.c:163:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 163 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘getfmt’: pipe.c:182:13: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 182 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘getframe’: pipe.c:206:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 206 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘getrange’: pipe.c:249:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 249 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘doeval’: pipe.c:271:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 271 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘doseval’: pipe.c:288:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 288 | write(fd, s, strlen(s)); | ^~~~~~~~~~~~~~~~~~~~~~~ pipe.c:289:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 289 | write(fd, "\n", 1); | ^~~~~~~~~~~~~~~~~~ pipe.c: In function ‘doquery’: pipe.c:305:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 305 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c:306:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 306 | write(fd, "\n", 1); | ^~~~~~~~~~~~~~~~~~ pipe.c: In function ‘dogetkey’: pipe.c:347:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 347 | write(macrofd, line, len); | ^~~~~~~~~~~~~~~~~~~~~~~~~ pipe.c: In function ‘dostat’: pipe.c:358:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 358 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sc.c:889:35: warning: zero-length gnu_printf format string [-Wformat-zero-length] 889 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:913:43: warning: zero-length gnu_printf format string [-Wformat-zero-length] 913 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1161:27: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1161 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1228:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1228 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ interp.c: In function ‘finfunc’: sc.c:1301:46: warning: implicit declaration of function ‘list_frames’; did you mean ‘list_ranges’? [-Wimplicit-function-declaration] 1301 | if (!brokenpipe) list_frames(f); | ^~~~~~~~~~~ | list_ranges interp.c:125:22: warning: passing argument 1 of ‘fn2_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 125 | p = fn2_eval(pow, 1 + v2, v3); | ^~~ | | | double (*)(double, double) interp.c:97:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double, double)’ 97 | double fn2_eval(double (*fn)(), double arg1, double arg2); | ~~~~~~~~~^~~~~ In file included from /usr/include/features.h:524, from /usr/include/sys/types.h:25, from interp.c:13: /usr/include/bits/mathcalls.h:173:1: note: ‘pow’ declared here 173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~~~~~ sc.c:1350:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1350 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1353:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1353 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1356:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1356 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1359:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1359 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1386:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1386 | error(""); /* clear line */ | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ screen.c: In function ‘update’: screen.c:457:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 457 | if (fr && strow < fr->or_left->row + ftoprows) | ^~ screen.c:459:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 459 | if (currow < strow) | ^~ interp.c: In function ‘dolmax’: interp.c:691:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 691 | if (!count || v > maxval) | ^~ interp.c:692:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 692 | maxval = v; count++; | ^~~~~ interp.c: In function ‘dolmin’: interp.c:709:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 709 | if (!count || v < minval) | ^~ sc.c:1414:57: warning: implicit declaration of function ‘yankrow’; did you mean ‘yankr’? [-Wimplicit-function-declaration] 1414 | if (rcqual == 'r') yankrow(arg); | ^~~~~~~ | yankr interp.c:710:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 710 | minval = v; count++; | ^~~~~ interp.c: In function ‘eval’: interp.c:758:42: warning: passing argument 1 of ‘fn2_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 758 | case '^': return (fn2_eval(pow,eval(e->e.o.left),eval(e->e.o.right))); | ^~~ | | | double (*)(double, double) interp.c:97:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double, double)’ 97 | double fn2_eval(double (*fn)(), double arg1, double arg2); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:173:1: note: ‘pow’ declared here 173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~~~~~ sc.c:1415:57: warning: implicit declaration of function ‘yankcol’; did you mean ‘backcol’? [-Wimplicit-function-declaration] 1415 | else yankcol(arg); | ^~~~~~~ | backcol interp.c:876:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 876 | case ABS: return (fn1_eval( fabs, eval(e->e.o.left))); | ^~~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:195:1: note: ‘fabs’ declared here 195 | __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ interp.c:877:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 877 | case ACOS: return (fn1_eval( acos, eval(e->e.o.left))); | ^~~~ | | | double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:53:1: note: ‘acos’ declared here 53 | __MATHCALL_VEC (acos,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:878:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 878 | case ASIN: return (fn1_eval( asin, eval(e->e.o.left))); | ^~~~ | | | double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:55:1: note: ‘asin’ declared here 55 | __MATHCALL_VEC (asin,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:879:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 879 | case ATAN: return (fn1_eval( atan, eval(e->e.o.left))); | ^~~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:57:1: note: ‘atan’ declared here 57 | __MATHCALL_VEC (atan,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:880:44: warning: passing argument 1 of ‘fn2_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 880 | case ATAN2: return (fn2_eval( atan2, eval(e->e.o.left), eval(e->e.o.right))); | ^~~~~ | | | double (*)(double, double) interp.c:97:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double, double)’ 97 | double fn2_eval(double (*fn)(), double arg1, double arg2); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:59:1: note: ‘atan2’ declared here 59 | __MATHCALL_VEC (atan2,, (_Mdouble_ __y, _Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:881:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 881 | case CEIL: return (fn1_eval( ceil, eval(e->e.o.left))); | ^~~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:192:1: note: ‘ceil’ declared here 192 | __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ interp.c:882:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 882 | case COS: return (fn1_eval( cos, eval(e->e.o.left))); | ^~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:62:1: note: ‘cos’ declared here 62 | __MATHCALL_VEC (cos,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:883:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 883 | case EXP: return (fn1_eval( exp, eval(e->e.o.left))); | ^~~ | | | double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:113:1: note: ‘exp’ declared here 113 | __MATHCALL_VEC (exp,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:884:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 884 | case FABS: return (fn1_eval( fabs, eval(e->e.o.left))); | ^~~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:195:1: note: ‘fabs’ declared here 195 | __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ interp.c:885:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 885 | case FLOOR: return (fn1_eval( floor, eval(e->e.o.left))); | ^~~~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:198:1: note: ‘floor’ declared here 198 | __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ interp.c:886:44: warning: passing argument 1 of ‘fn2_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 886 | case HYPOT: return (fn2_eval( hypot, eval(e->e.o.left), eval(e->e.o.right))); | ^~~~~ | | | double (*)(double, double) interp.c:97:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double, double)’ 97 | double fn2_eval(double (*fn)(), double arg1, double arg2); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:180:1: note: ‘hypot’ declared here 180 | __MATHCALL_VEC (hypot,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~~~~~ interp.c:887:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 887 | case LOG: return (fn1_eval( log, eval(e->e.o.left))); | ^~~ | | | double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:122:1: note: ‘log’ declared here 122 | __MATHCALL_VEC (log,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:888:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 888 | case LOG10: return (fn1_eval( log10, eval(e->e.o.left))); | ^~~~~ | | | double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:125:1: note: ‘log10’ declared here 125 | __MATHCALL_VEC (log10,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:889:44: warning: passing argument 1 of ‘fn2_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 889 | case POW: return (fn2_eval( pow, eval(e->e.o.left), eval(e->e.o.right))); | ^~~ | | | double (*)(double, double) interp.c:97:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double, double)’ 97 | double fn2_eval(double (*fn)(), double arg1, double arg2); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:173:1: note: ‘pow’ declared here 173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~~~~~ sc.c:1591:29: warning: implicit declaration of function ‘ljustify’ [-Wimplicit-function-declaration] 1591 | ljustify(currow, curcol, currow, curcol); | ^~~~~~~~ interp.c:890:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 890 | case SIN: return (fn1_eval( sin, eval(e->e.o.left))); | ^~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:64:1: note: ‘sin’ declared here 64 | __MATHCALL_VEC (sin,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c:891:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 891 | case SQRT: return (fn1_eval( sqrt, eval(e->e.o.left))); | ^~~~ | | | double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:176:1: note: ‘sqrt’ declared here 176 | __MATHCALL (sqrt,, (_Mdouble_ __x)); | ^~~~~~~~~~ interp.c:892:44: warning: passing argument 1 of ‘fn1_eval’ from incompatible pointer type [-Wincompatible-pointer-types] 892 | case TAN: return (fn1_eval( tan, eval(e->e.o.left))); | ^~~ | | | __attribute__((const)) double (*)(double) interp.c:96:27: note: expected ‘double (*)(void)’ but argument is of type ‘__attribute__((const)) double (*)(double)’ 96 | double fn1_eval(double (*fn)(), double arg); | ~~~~~~~~~^~~~~ /usr/include/bits/mathcalls.h:66:1: note: ‘tan’ declared here 66 | __MATHCALL_VEC (tan,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ interp.c: In function ‘eval_fpe’: sc.c:1601:29: warning: implicit declaration of function ‘rjustify’ [-Wimplicit-function-declaration] 1601 | rjustify(currow, curcol, currow, curcol); | ^~~~~~~~ interp.c:989:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 989 | (void) signal(SIGFPE, eval_fpe); | ^~~~~~~~ | | | void (*)(void) In file included from interp.c:23: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:975:1: note: ‘eval_fpe’ declared here 975 | eval_fpe() /* Trap for FPE errors in eval */ | ^~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ interp.c: In function ‘fn1_eval’: interp.c:998:12: error: too many arguments to function ‘fn’; expected 0, have 1 998 | res = (*fn)(arg); | ~^~~~ ~~~ interp.c: In function ‘fn2_eval’: interp.c:1010:12: error: too many arguments to function ‘fn’; expected 0, have 2 1010 | res = (*fn)(arg1, arg2); | ~^~~~ ~~~~ sc.c:1611:29: warning: implicit declaration of function ‘center’ [-Wimplicit-function-declaration] 1611 | center(currow, curcol, currow, curcol); | ^~~~~~ In file included from interp.c:43: interp.c: In function ‘doext’: interp.c:1137:27: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1137 | error(""); /* erase notice */ | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1671:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1671 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1678:27: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1678 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ interp.c: In function ‘EvalAll’: In file included from cmds.c:31: cmds.c: In function ‘doend’: interp.c:1388:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 1388 | (void) signal(SIGFPE, eval_fpe); | ^~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:975:1: note: ‘eval_fpe’ declared here 975 | eval_fpe() /* Trap for FPE errors in eval */ | ^~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ cmds.c:1394:16: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1394 | error (""); /* clear line */ | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1929:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1929 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ interp.c:1415:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 1415 | (void) signal(SIGFPE, doquit); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:62:10: note: ‘doquit’ declared here 62 | void doquit(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:1951:27: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1951 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ cmds.c: In function ‘formatcol’: cmds.c:1471:1: warning: old-style function definition [-Wold-style-definition] 1471 | formatcol(arg) | ^~~~~~~~~ cmds.c:1471:1: warning: type of ‘arg’ defaults to ‘int’ [-Wimplicit-int] sc.c:1988:35: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1988 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:1997:35: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1997 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ cmds.c:1569:31: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1569 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:2005:35: warning: zero-length gnu_printf format string [-Wformat-zero-length] 2005 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ cmds.c:1602:15: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1602 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ cmds.c: In function ‘ljustify’: cmds.c:1606:1: warning: old-style function definition [-Wold-style-definition] 1606 | ljustify(sr, sc, er, ec) | ^~~~~~~~ cmds.c:1606:1: warning: type of ‘sr’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1606:1: warning: type of ‘sc’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1606:1: warning: type of ‘er’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1606:1: warning: type of ‘ec’ defaults to ‘int’ [-Wimplicit-int] cmds.c: In function ‘rjustify’: cmds.c:1635:1: warning: old-style function definition [-Wold-style-definition] 1635 | rjustify(sr, sc, er, ec) | ^~~~~~~~ cmds.c:1635:1: warning: type of ‘sr’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1635:1: warning: type of ‘sc’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1635:1: warning: type of ‘er’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1635:1: warning: type of ‘ec’ defaults to ‘int’ [-Wimplicit-int] cmds.c: In function ‘center’: sc.c:2018:29: warning: implicit declaration of function ‘gotonote’ [-Wimplicit-function-declaration] 2018 | gotonote(); | ^~~~~~~~ cmds.c:1664:1: warning: old-style function definition [-Wold-style-definition] 1664 | center(sr, sc, er, ec) | ^~~~~~ cmds.c:1664:1: warning: type of ‘sr’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1664:1: warning: type of ‘sc’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1664:1: warning: type of ‘er’ defaults to ‘int’ [-Wimplicit-int] cmds.c:1664:1: warning: type of ‘ec’ defaults to ‘int’ [-Wimplicit-int] sc.c:2019:35: warning: zero-length gnu_printf format string [-Wformat-zero-length] 2019 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ sc.c:233:14: warning: unused variable ‘home’ [-Wunused-variable] 233 | char *home; | ^~~~ sc.c: In function ‘signals’: sc.c:2121:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2121 | (void) signal(SIGINT, doquit); | ^~~~~~ | | | void (*)(void) In file included from /usr/include/sys/wait.h:36, from sc.c:15: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sc.c:2104:10: note: ‘doquit’ declared here 2104 | void doquit(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2123:28: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2123 | (void) signal(SIGQUIT, dump_me); | ^~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sc.c:2106:10: note: ‘dump_me’ declared here 2106 | void dump_me(); | ^~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2124:28: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2124 | (void) signal(SIGPIPE, nopipe); | ^~~~~~ | | | void (*)(void) interp.c: In function ‘let’: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:2249:31: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2249 | (void) signal(SIGFPE, eval_fpe); | ^~~~~~~~ | | | void (*)(void) sc.c:2107:10: note: ‘nopipe’ declared here 2107 | void nopipe(); | ^~~~~~ /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ interp.c:975:1: note: ‘eval_fpe’ declared here 975 | eval_fpe() /* Trap for FPE errors in eval */ | ^~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2125:28: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2125 | (void) signal(SIGALRM, time_out); | ^~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:2265:31: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2265 | (void) signal(SIGFPE, doquit); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:62:10: note: ‘doquit’ declared here 62 | void doquit(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2105:10: note: ‘time_out’ declared here 2105 | void time_out(); | ^~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ interp.c: In function ‘slet’: sc.c:2127:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2127 | (void) signal(SIGBUS, doquit); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:2321:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2321 | (void) signal(SIGFPE, eval_fpe); | ^~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sc.c:2104:10: note: ‘doquit’ declared here 2104 | void doquit(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ interp.c:975:1: note: ‘eval_fpe’ declared here 975 | eval_fpe() /* Trap for FPE errors in eval */ | ^~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2130:28: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2130 | (void) signal(SIGTERM, doquit); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:2336:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2336 | (void) signal(SIGFPE, doquit); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ interp.c:62:10: note: ‘doquit’ declared here 62 | void doquit(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2104:10: note: ‘doquit’ declared here 2104 | void doquit(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2131:27: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2131 | (void) signal(SIGFPE, doquit); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sc.c:2104:10: note: ‘doquit’ declared here 2104 | void doquit(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c:2133:29: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2133 | (void) signal(SIGWINCH, winchg); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sc.c:2109:10: note: ‘winchg’ declared here 2109 | void winchg(); | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sc.c: In function ‘winchg’: sc.c:2167:29: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 2167 | (void) signal(SIGWINCH, winchg); | ^~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sc.c:2152:1: note: ‘winchg’ declared here 2152 | winchg() | ^~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ interp.c: In function ‘decompile’: cmds.c: In function ‘openfile’: cmds.c:2565:9: warning: missing sentinel in function call [-Wformat=] 2565 | (void) execl("/bin/sh", "sh", "-c", efname, 0); | ^ interp.c:2609:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2609 | case 'f': for (s="@fixed "; (line[linelim++] = *s++); ); | ^~~ interp.c:2610:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2610 | linelim--; | ^~~~~~~ interp.c:2613:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2613 | case 'F': for (s="(@fixed)"; (line[linelim++] = *s++); ); | ^~~ interp.c:2614:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2614 | linelim--; | ^~~~~~~ interp.c:2669:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2669 | case NOW: for (s = "@now"; (line[linelim++] = *s++); ); | ^~~ interp.c:2670:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2670 | linelim--; | ^~~~~~~ sc.c: In function ‘main’: sc.c:430:25: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 430 | freopen("/dev/tty", "r", stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sc.c:431:25: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 431 | freopen("/dev/tty", "w", stdout); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interp.c:2700:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2700 | case MYROW: for (s = "@myrow"; (line[linelim++] = *s++); ); | ^~~ sc.c:1018:13: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1018 | system("man sc"); | ^~~~~~~~~~~~~~~~ interp.c:2701:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2701 | linelim--; | ^~~~~~~ interp.c:2703:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2703 | case MYCOL: for (s = "@mycol"; (line[linelim++] = *s++); ); | ^~~ interp.c:2704:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2704 | linelim--; | ^~~~~~~ interp.c:2706:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2706 | case LASTROW: for (s = "@lastrow"; (line[linelim++] = *s++); ); | ^~~ interp.c:2707:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2707 | linelim--; | ^~~~~~~ interp.c:2709:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2709 | case LASTCOL: for (s = "@lastcol"; (line[linelim++] = *s++); ); | ^~~ interp.c:2710:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2710 | linelim--; | ^~~~~~~ cmds.c: In function ‘markcell’: interp.c:2714:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2714 | case NUMITER: for (s = "@numiter"; (line[linelim++] = *s++); ); | ^~~ cmds.c:3259:15: warning: zero-length gnu_printf format string [-Wformat-zero-length] 3259 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ interp.c:2715:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2715 | linelim--; | ^~~~~~~ cmds.c:3266:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] 3266 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ cmds.c: In function ‘dotick’: interp.c:2717:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2717 | case ERR_: for (s = "@err"; (line[linelim++] = *s++); ); | ^~~ cmds.c:3282:15: warning: zero-length gnu_printf format string [-Wformat-zero-length] 3282 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ interp.c:2718:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2718 | linelim--; | ^~~~~~~ interp.c:2720:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2720 | case PI_: for (s = "@pi"; (line[linelim++] = *s++); ); | ^~~ cmds.c:3296:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] 3296 | error(""); | ^~ sc.h:46:101: note: in definition of macro ‘error’ 46 | # define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg)) | ^~~~~~ interp.c:2721:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2721 | linelim--; | ^~~~~~~ interp.c:2723:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2723 | case BLACK: for (s = "@black"; (line[linelim++] = *s++); ); | ^~~ interp.c:2724:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2724 | linelim--; | ^~~~~~~ interp.c:2726:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2726 | case RED: for (s = "@red"; (line[linelim++] = *s++); ); | ^~~ interp.c:2727:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2727 | linelim--; | ^~~~~~~ interp.c:2729:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2729 | case GREEN: for (s = "@green"; (line[linelim++] = *s++); ); | ^~~ interp.c:2730:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2730 | linelim--; | ^~~~~~~ interp.c:2732:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2732 | case YELLOW: for (s = "@yellow"; (line[linelim++] = *s++); ); | ^~~ interp.c:2733:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2733 | linelim--; | ^~~~~~~ interp.c:2735:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2735 | case BLUE: for (s = "@blue"; (line[linelim++] = *s++); ); | ^~~ interp.c:2736:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2736 | linelim--; | ^~~~~~~ interp.c:2738:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2738 | case MAGENTA: for (s = "@magenta"; (line[linelim++] = *s++); ); | ^~~ interp.c:2739:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2739 | linelim--; | ^~~~~~~ interp.c:2741:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2741 | case CYAN: for (s = "@cyan"; (line[linelim++] = *s++); ); | ^~~ interp.c:2742:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2742 | linelim--; | ^~~~~~~ interp.c:2744:25: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 2744 | case WHITE: for (s = "@white"; (line[linelim++] = *s++); ); | ^~~ interp.c:2745:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 2745 | linelim--; | ^~~~~~~ cmds.c: In function ‘openfile’: cmds.c:2558:16: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2558 | (void) dup(pipefd[0]); /* connect to first pipe */ | ^~~~~~~~~~~~~~ cmds.c:2562:20: warning: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2562 | (void) dup(pipefd[3]); /* connect to second pipe */ | ^~~~~~~~~~~~~~ cmds.c: In function ‘readfile’: cmds.c:3069:9: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 3069 | freopen("/dev/tty", "r", stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmds.c: In function ‘backup_file’: cmds.c:3586:9: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 3586 | chown(tpath, statbuf.st_uid, statbuf.st_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:426: interp.o] Error 1 sc.c: In function ‘modcheck’: sc.c:2223:36: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 94 [-Wformat-overflow=] 2223 | (void) sprintf(lin,"File \"%s\" is modified, save%s? ",curfile,endstr); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:970, from /usr/include/curses.h:246, from sc.c:17: In function ‘sprintf’, inlined from ‘modcheck’ at sc.c:2223:9: /usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output 28 or more bytes (assuming 1051) into a destination of size 100 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ mv y.tab.c gram.c cmds.c: In function ‘deleterow’: cmds.c:325:60: warning: ‘ left’ directive writing 5 bytes into a region of size between 4 and 25 [-Wformat-overflow=] 325 | (void) sprintf(buf, "Can't delete %d row%s %d row%s left", arg, | ^~~~~ In file included from /usr/include/stdio.h:970, from /usr/include/curses.h:246, from cmds.c:23: In function ‘sprintf’, inlined from ‘deleterow’ at cmds.c:325:9: /usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 31 and 52 bytes into a destination of size 50 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cmds.c: In function ‘closecol’: cmds.c:1213:57: warning: ‘ column’ directive writing 7 bytes into a region of size between 6 and 26 [-Wformat-overflow=] 1213 | (void) sprintf(buf, "Can't delete %d column%s %d column%s left", arg, | ^~~~~~~ In function ‘sprintf’, inlined from ‘closecol’ at cmds.c:1213:9: /usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 37 and 58 bytes into a destination of size 50 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cmds.c: In function ‘yankcol’: cmds.c:542:64: warning: ‘ left’ directive writing 5 bytes into a region of size between 0 and 21 [-Wformat-overflow=] 542 | (void) sprintf(buf, "Can't yank %d column%s %d column%s left", arg, | ^~~~~ In function ‘sprintf’, inlined from ‘yankcol’ at cmds.c:542:9: /usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 35 and 56 bytes into a destination of size 50 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cmds.c: In function ‘readfile’: cmds.c:2991:48: warning: ‘"’ directive writing 1 byte into a region of size between 0 and 1022 [-Wformat-overflow=] 2991 | sprintf(save + strlen(save), " \"%s\"", fname); | ^~ In function ‘sprintf’, inlined from ‘readfile’ at cmds.c:2991:6: /usr/include/bits/stdio2.h:30:10: note: ‘__sprintf_chk’ output between 4 and 1026 bytes into a destination of size 1024 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.vCZv1f (%build) Bad exit status from /var/tmp/rpm-tmp.vCZv1f (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 82974e91adff414d8cf4a98d3e70edb6 -D /var/lib/mock/f42-build-56834038-6546493/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/sc.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 82974e91adff414d8cf4a98d3e70edb6 -D /var/lib/mock/f42-build-56834038-6546493/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.dmaf_a4f:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/sc.spec'