Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sc.spec'], chrootPath='/var/lib/mock/f38-build-695504-85897/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Wrote: /builddir/build/SRPMS/sc-7.16-21.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sc.spec'], chrootPath='/var/lib/mock/f38-build-695504-85897/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ejygfx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/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.OmcAh9 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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 -j4 'CFLAGS=-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89' gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DDFLT_PAGER=\"less\" -c abbrev.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DDOBACKUPS -c cmds.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o color.o color.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DDOBACKUPS -c crypt.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o format.o format.c In file included from cmds.c:31: cmds.c: In function 'doend': 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)) | ^~~~~~ cmds.c: In function 'formatcol': 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)) | ^~~~~~ 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 'openfile': cmds.c:2565:9: warning: missing sentinel in function call [-Wformat=] 2565 | (void) execl("/bin/sh", "sh", "-c", efname, 0); | ^ cmds.c: In function 'markcell': 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)) | ^~~~~~ 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': 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)) | ^~~~~~ 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)) | ^~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c help.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -ffloat-store -DSIGVOID \ -DREGCOMP -c interp.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o pipe.o pipe.c 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': pipe.c:49:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 49 | write(fd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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) | ^~ 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++; | ^~~~~ 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)) | ^~~~~~ interp.c: In function 'decompile': 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--; | ^~~~~~~ interp.c:2700:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 2700 | case MYROW: for (s = "@myrow"; (line[linelim++] = *s++); ); | ^~~ 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--; | ^~~~~~~ interp.c:2714:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 2714 | case NUMITER: for (s = "@numiter"; (line[linelim++] = *s++); ); | ^~~ interp.c:2715:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 2715 | linelim--; | ^~~~~~~ interp.c:2717:25: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 2717 | case ERR_: for (s = "@err"; (line[linelim++] = *s++); ); | ^~~ 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++); ); | ^~~ 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--; | ^~~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o range.o range.c mv y.tab.c gram.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DDFLT_PAGER=\"less\" -DSIGVOID -DSAVENAME=\"SC.SAVE\" -c sc.c In file included from sc.c:37: sc.c: In function 'main': 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)) | ^~~~~~ 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)) | ^~~~~~ 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 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)) | ^~~~~~ sc.c:1414:57: warning: implicit declaration of function 'yankrow'; did you mean 'yankr'? [-Wimplicit-function-declaration] 1414 | if (rcqual == 'r') yankrow(arg); | ^~~~~~~ | yankr sc.c:1415:57: warning: implicit declaration of function 'yankcol'; did you mean 'backcol'? [-Wimplicit-function-declaration] 1415 | else yankcol(arg); | ^~~~~~~ | backcol sc.c:1591:29: warning: implicit declaration of function 'ljustify' [-Wimplicit-function-declaration] 1591 | ljustify(currow, curcol, currow, curcol); | ^~~~~~~~ sc.c:1601:29: warning: implicit declaration of function 'rjustify' [-Wimplicit-function-declaration] 1601 | rjustify(currow, curcol, currow, curcol); | ^~~~~~~~ sc.c:1611:29: warning: implicit declaration of function 'center' [-Wimplicit-function-declaration] 1611 | center(currow, curcol, currow, curcol); | ^~~~~~ 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)) | ^~~~~~ 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)) | ^~~~~~ 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)) | ^~~~~~ 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)) | ^~~~~~ 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)) | ^~~~~~ sc.c:2018:29: warning: implicit declaration of function 'gotonote' [-Wimplicit-function-declaration] 2018 | gotonote(); | ^~~~~~~~ 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)) | ^~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DSIGVOID \ -c screen.c sc.c:233:14: warning: unused variable 'home' [-Wunused-variable] 233 | char *home; | ^~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sc.c:1018:13: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 1018 | system("man sc"); | ^~~~~~~~~~~~~~~~ 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) | ^~ 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:906, from /usr/include/curses.h:232, 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 ()); | ~~~~~~~~~~~~~~~~~ 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:906, from /usr/include/curses.h:232, 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 ()); | ~~~~~~~~~~~~~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o sort.o sort.c 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 ()); | ~~~~~~~~~~~~~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o version.o version.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DREGCOMP -DHISTORY_FILE=\"~/.sc_history\" -c vi.c In file included from vi.c:22: vi.c: In function 'write_line': vi.c:136:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] 136 | 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)) | ^~~~~~ vi.c:146:33: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 146 | else | ^~~~ vi.c:147:73: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 147 | cr_line(); break; | ^~~~~ vi.c:516:55: warning: implicit declaration of function 'gotonote' [-Wimplicit-function-declaration] 516 | case '*': if (nmgetch() == '*') gotonote(); break; | ^~~~~~~~ vi.c: In function 'for_hist': vi.c:1474:15: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1474 | 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)) | ^~~~~~ vi.c: In function 'back_hist': vi.c:1503:15: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1503 | 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)) | ^~~~~~ vi.c: In function 'search_again': vi.c:1582:11: warning: zero-length gnu_printf format string [-Wformat-zero-length] 1582 | 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)) | ^~~~~~ vi.c:1610:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 1610 | else | ^~~~ vi.c:1612:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 1612 | (void) strcpy(line, history[histp].histline); | ^ vi.c: In function 'query': vi.c:2040:23: warning: zero-length gnu_printf format string [-Wformat-zero-length] 2040 | 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)) | ^~~~~~ vi.c:2045:23: warning: zero-length gnu_printf format string [-Wformat-zero-length] 2045 | 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)) | ^~~~~~ vi.c: In function 'doshell': vi.c:1392:12: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 1392 | (void) fgets(cmd, MAXCMD, stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o vmtbl.o vmtbl.c vi.c: In function 'dogoto': vi.c:2005:9: warning: 'strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] 2005 | strncpy(line, "goto ", 5); | ^ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -o xmalloc.o xmalloc.c rm -f pvmtbl.c ln vmtbl.c pvmtbl.c rm -f pxmalloc.c ln xmalloc.c pxmalloc.c rm -f qhelp.c ln help.c qhelp.c name=sc NAME=SC LIBDIR=/usr/share/doc/sc sh torev sc.doc > sc.1 name=sc NAME=SC LIBDIR=/usr/share/doc/sc sh torev psc.doc > psc.1 gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DUSELOCALE -c gram.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -DPSC pvmtbl.c vi.c: In function 'del_in_line': vi.c:1022:9: warning: '__strncpy_chk' specified bound depends on the length of the source argument [-Wstringop-truncation] 1022 | strncpy(putbuf, line + linelim, arg); | ^ vi.c:1017:15: note: length computed here 1017 | len = strlen(line); | ^~~~~~~~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -c -DPSC pxmalloc.c gram.y: In function 'yyparse': gram.y:310:63: warning: implicit declaration of function 'ljustify' [-Wimplicit-function-declaration] 310 | { ljustify($2.left.vp->row, $2.left.vp->col, | ^~~~~~~~ gram.y:317:63: warning: implicit declaration of function 'rjustify' [-Wimplicit-function-declaration] 317 | { rjustify($2.left.vp->row, $2.left.vp->col, | ^~~~~~~~ gram.y:324:63: warning: implicit declaration of function 'center' [-Wimplicit-function-declaration] 324 | { center($2.left.vp->row, $2.left.vp->col, | ^~~~~~ gram.y:619:57: warning: implicit declaration of function 'add_abbr' [-Wimplicit-function-declaration] 619 | | S_ABBREV STRING { add_abbr($2); } | ^ gram.y:817:43: warning: implicit declaration of function 'yankrow'; did you mean 'yankr'? [-Wimplicit-function-declaration] 817 | yankrow(arg); | ^~~~~~~ | yankr gram.y:847:43: warning: implicit declaration of function 'yankcol'; did you mean 'backcol'? [-Wimplicit-function-declaration] 847 | yankcol(arg); | ^~~~~~~ | backcol gram.y:960:68: warning: implicit declaration of function 'getframe'; did you mean 'getformat'? [-Wimplicit-function-declaration] 960 | | S_GETFRAME { getframe(macrofd); } | ^ | getformat gram.y:962:62: warning: implicit declaration of function 'getrange'; did you mean 'sortrange'? [-Wimplicit-function-declaration] 962 | | S_GETRANGE STRING { getrange($2, macrofd); } | ^~~~~ | sortrange gram.y:965:70: warning: implicit declaration of function 'doeval'; did you mean 'eval'? [-Wimplicit-function-declaration] 965 | | S_EVAL e { doeval($2, NULL, currow, curcol, | ^~~~~ | eval gram.y:972:69: warning: implicit declaration of function 'doseval'; did you mean 'seval'? [-Wimplicit-function-declaration] 972 | | S_SEVAL e { doseval($2, currow, curcol, macrofd); } | ^~~~~~~ | seval gram.y:981:70: warning: implicit declaration of function 'dogetkey' [-Wimplicit-function-declaration] 981 | | S_GETKEY { dogetkey(); } | ^ gram.y:881:43: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 881 | write(macrofd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gram.y:887:43: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 887 | write($3, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gram.y:999:43: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 999 | system($2); | ^~~~~~~~~~~ gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -Wl,-z,relro -Wl,--as-needed -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 -DQREF -DTROFF -DSCNAME=\"SC\" -o scqref qhelp.c gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -Wl,-z,relro -Wl,--as-needed -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 -o psc psc.c pvmtbl.o pxmalloc.o sed < gram.y > experres.h -f eres.sed sed < gram.y > statres.h -f sres.sed gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -DSYSV3 -std=gnu89 -DLIBDIR=\"/usr/share/doc/sc\" -DSIGVOID \ -c lex.c gcc -Wl,-z,relro -Wl,--as-needed -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 abbrev.o cmds.o color.o crypt.o format.o frame.o gram.o help.o interp.o lex.o pipe.o range.o sc.o screen.o sort.o version.o vi.o vmtbl.o xmalloc.o -lm -lncurses -o sc + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.oqYUno + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64 ++ dirname /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64 + CFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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 + install -d -m 0755 /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/bin + install -m 0755 sc /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/bin + install -m 0755 psc /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/bin + install -d -m 0755 /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/man/man1 + install -m 0644 sc.1 /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/man/man1 + install -m 0644 psc.1 /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/man/man1 + install -d -m 0755 /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/sc + install -m 0644 tutorial.sc /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/sc + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 7.16-21.fc38 --unique-debug-suffix -7.16-21.fc38.riscv64 --unique-debug-src-base sc-7.16-21.fc38.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/sc-7.16 extracting debug info from /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/bin/sc extracting debug info from /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/bin/psc original debug info size: 2716kB, size after compression: 2664kB /usr/bin/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. cpio: y.tab.c: Cannot stat: No such file or directory 1395 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: sc-7.16-21.fc38.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.iu7qD1 + umask 022 + cd /builddir/build/BUILD + cd sc-7.16 + DOCDIR=/builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/doc/sc + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/doc/sc + cp -pr CHANGES /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/doc/sc + cp -pr README /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/doc/sc + cp -pr SC.MACROS /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/doc/sc + cp -pr TODO /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64/usr/share/doc/sc + RPM_EC=0 ++ jobs -p + exit 0 Provides: sc = 7.16-21.fc38 sc(riscv-64) = 7.16-21.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libncurses.so.6()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Processing files: sc-debugsource-7.16-21.fc38.riscv64 Provides: sc-debugsource = 7.16-21.fc38 sc-debugsource(riscv-64) = 7.16-21.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: sc-debuginfo-7.16-21.fc38.riscv64 Provides: debuginfo(build-id) = 9ecb1c57d2e23b05dbe7144b9f41978976f028bd debuginfo(build-id) = b54dea1e170707b5e2f510a797503545408cedd6 sc-debuginfo = 7.16-21.fc38 sc-debuginfo(riscv-64) = 7.16-21.fc38 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: sc-debugsource(riscv-64) = 7.16-21.fc38 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64 Wrote: /builddir/build/RPMS/sc-7.16-21.fc38.riscv64.rpm Wrote: /builddir/build/RPMS/sc-debugsource-7.16-21.fc38.riscv64.rpm Wrote: /builddir/build/RPMS/sc-debuginfo-7.16-21.fc38.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.YunE1o + umask 022 + cd /builddir/build/BUILD + cd sc-7.16 + /usr/bin/rm -rf /builddir/build/BUILDROOT/sc-7.16-21.fc38.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.K74sUQ + umask 022 + cd /builddir/build/BUILD + rm -rf sc-7.16 sc-7.16.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0