Mock Version: 2.1 Mock Version: 2.1 Mock Version: 2.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/simh.spec'], chrootPath='/var/lib/mock/f33-build-20145120-1426050/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'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/simh.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: armv7hl Building for target armv7hl setting SOURCE_DATE_EPOCH=1586044800 Wrote: /builddir/build/SRPMS/simh-3.11.0-14.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/simh.spec'], chrootPath='/var/lib/mock/f33-build-20145120-1426050/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'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/simh.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: armv7hl Building for target armv7hl setting SOURCE_DATE_EPOCH=1586044800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.O0fGes + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf simh-3.11.0/sim + /usr/bin/gzip -dc /builddir/build/SOURCES/simh-3.11.0-noroms.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd simh-3.11.0/sim + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GH2K3t + umask 022 + cd /builddir/build/BUILD + cd simh-3.11.0/sim + mkdir -p BIN + make -j5 -e 'ROMS_OPT=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard' USE_NETWORK=1 lib paths are: /lib/ include paths are: /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/10/include /usr/local/include /usr/include using libm: /lib//libm.so using librt: /lib//librt.so using libpthread: /lib//libpthread.so /usr/include/pthread.h using semaphore: /usr/include/semaphore.h using mman: /usr/include/sys/mman.h using libdl: /lib//libdl.so /usr/include/dlfcn.h using libpcap: /lib//libpcap.so /usr/include/pcap.h *** *** all Simulators being built with: *** - compiler optimizations and no debugging support. GCC Version: 10.0.1. *** - static networking support using Linux provided libpcap components. *** gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP1/pdp1_lp.c PDP1/pdp1_cpu.c PDP1/pdp1_stddev.c PDP1/pdp1_sys.c PDP1/pdp1_dt.c PDP1/pdp1_drm.c PDP1/pdp1_clk.c PDP1/pdp1_dcs.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I PDP1 -o BIN/pdp1 -lm -lrt -lpthread -ldl -lpcap gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP18B/pdp18b_dt.c PDP18B/pdp18b_drm.c PDP18B/pdp18b_cpu.c PDP18B/pdp18b_lp.c PDP18B/pdp18b_mt.c PDP18B/pdp18b_rf.c PDP18B/pdp18b_rp.c PDP18B/pdp18b_stddev.c PDP18B/pdp18b_sys.c PDP18B/pdp18b_rb.c PDP18B/pdp18b_tt1.c PDP18B/pdp18b_fpp.c PDP18B/pdp18b_g2tty.c PDP18B/pdp18b_dr15.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DPDP4 -I PDP18B -o BIN/pdp4 -lm -lrt -lpthread -ldl -lpcap gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP18B/pdp18b_dt.c PDP18B/pdp18b_drm.c PDP18B/pdp18b_cpu.c PDP18B/pdp18b_lp.c PDP18B/pdp18b_mt.c PDP18B/pdp18b_rf.c PDP18B/pdp18b_rp.c PDP18B/pdp18b_stddev.c PDP18B/pdp18b_sys.c PDP18B/pdp18b_rb.c PDP18B/pdp18b_tt1.c PDP18B/pdp18b_fpp.c PDP18B/pdp18b_g2tty.c PDP18B/pdp18b_dr15.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DPDP7 -I PDP18B -o BIN/pdp7 -lm -lrt -lpthread -ldl -lpcap gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP8/pdp8_cpu.c PDP8/pdp8_clk.c PDP8/pdp8_df.c PDP8/pdp8_dt.c PDP8/pdp8_lp.c PDP8/pdp8_mt.c PDP8/pdp8_pt.c PDP8/pdp8_rf.c PDP8/pdp8_rk.c PDP8/pdp8_rx.c PDP8/pdp8_sys.c PDP8/pdp8_tt.c PDP8/pdp8_ttx.c PDP8/pdp8_rl.c PDP8/pdp8_tsc.c PDP8/pdp8_td.c PDP8/pdp8_ct.c PDP8/pdp8_fpp.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I PDP8 -o BIN/pdp8 -lm -lrt -lpthread -ldl -lpcap gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP18B/pdp18b_dt.c PDP18B/pdp18b_drm.c PDP18B/pdp18b_cpu.c PDP18B/pdp18b_lp.c PDP18B/pdp18b_mt.c PDP18B/pdp18b_rf.c PDP18B/pdp18b_rp.c PDP18B/pdp18b_stddev.c PDP18B/pdp18b_sys.c PDP18B/pdp18b_rb.c PDP18B/pdp18b_tt1.c PDP18B/pdp18b_fpp.c PDP18B/pdp18b_g2tty.c PDP18B/pdp18b_dr15.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DPDP9 -I PDP18B -o BIN/pdp9 -lm -lrt -lpthread -ldl -lpcap PDP18B/pdp18b_dt.c:346:20: warning: 'map_unit' defined but not used [-Wunused-const-variable=] 346 | static const int32 map_unit[16] = { /* Type 550 unit map */ | ^~~~~~~~ PDP18B/pdp18b_dt.c: In function 'dt_setpos': PDP18B/pdp18b_dt.c:865:27: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] 865 | uptr->pos = uptr->pos - delta; | ~~~~~~~~~~^~~~~~~ PDP18B/pdp18b_dt.c: In function 'dt_setpos': PDP18B/pdp18b_dt.c:865:27: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] 865 | uptr->pos = uptr->pos - delta; | ~~~~~~~~~~^~~~~~~ PDP18B/pdp18b_dt.c: In function 'dt_setpos': PDP18B/pdp18b_dt.c:865:27: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] 865 | uptr->pos = uptr->pos - delta; | ~~~~~~~~~~^~~~~~~ PDP18B/pdp18b_cpu.c: In function 'sim_instr': PDP18B/pdp18b_cpu.c:578:7: warning: variable 'api_int' set but not used [-Wunused-but-set-variable] 578 | int32 api_int, api_usmd, skp; | ^~~~~~~ PDP18B/pdp18b_cpu.c: In function 'sim_instr': PDP18B/pdp18b_cpu.c:578:7: warning: variable 'api_int' set but not used [-Wunused-but-set-variable] 578 | int32 api_int, api_usmd, skp; | ^~~~~~~ PDP8/pdp8_dt.c: In function 'dt_svc': PDP8/pdp8_dt.c:971:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 971 | if (((dtsa & DTA_MODE) == 0) || (M[DT_WC] == 0)) | ^~ PDP8/pdp8_dt.c:973:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 973 | break; | ^~~~~ PDP8/pdp8_dt.c: In function 'dt_setpos': PDP8/pdp8_dt.c:680:27: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] 680 | uptr->pos = uptr->pos - delta; | ~~~~~~~~~~^~~~~~~ PDP1/pdp1_sys.c: In function 'parse_sym': PDP1/pdp1_sys.c:602:30: warning: array subscript has type 'char' [-Wchar-subscripts] 602 | val[0] = ((ASCTOSIX (cptr[0]) & 077) << 12) | | ~~~~^~~ PDP1/pdp1_sys.c:447:38: note: in definition of macro 'ASCTOSIX' 447 | #define ASCTOSIX(x) (ascii_to_fiodec[x] & 077) | ^ PDP1/pdp1_sys.c:603:30: warning: array subscript has type 'char' [-Wchar-subscripts] 603 | ((ASCTOSIX (cptr[1]) & 077) << 6) | | ~~~~^~~ PDP1/pdp1_sys.c:447:38: note: in definition of macro 'ASCTOSIX' 447 | #define ASCTOSIX(x) (ascii_to_fiodec[x] & 077) | ^ PDP1/pdp1_sys.c:604:30: warning: array subscript has type 'char' [-Wchar-subscripts] 604 | (ASCTOSIX (cptr[2]) & 077); | ~~~~^~~ PDP1/pdp1_sys.c:447:38: note: in definition of macro 'ASCTOSIX' 447 | #define ASCTOSIX(x) (ascii_to_fiodec[x] & 077) | ^ PDP1/pdp1_dt.c: In function 'dt_setpos': PDP1/pdp1_dt.c:680:27: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] 680 | uptr->pos = uptr->pos - delta; | ~~~~~~~~~~^~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP18B/pdp18b_dr15.c: In function 'dr60': PDP18B/pdp18b_dr15.c:144:7: warning: unused variable 'subdev' [-Wunused-variable] 144 | int32 subdev = (pulse >> 4) & 03; | ^~~~~~ PDP8/pdp8_td.c: In function 'td_setpos': PDP8/pdp8_td.c:442:27: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] 442 | uptr->pos = uptr->pos - delta; | ~~~~~~~~~~^~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ PDP18B/pdp18b_dr15.c: In function 'dr60': PDP18B/pdp18b_dr15.c:144:7: warning: unused variable 'subdev' [-Wunused-variable] 144 | int32 subdev = (pulse >> 4) & 03; | ^~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP18B/pdp18b_dr15.c: In function 'dr60': PDP18B/pdp18b_dr15.c:144:7: warning: unused variable 'subdev' [-Wunused-variable] 144 | int32 subdev = (pulse >> 4) & 03; | ^~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP18B/pdp18b_dt.c PDP18B/pdp18b_drm.c PDP18B/pdp18b_cpu.c PDP18B/pdp18b_lp.c PDP18B/pdp18b_mt.c PDP18B/pdp18b_rf.c PDP18B/pdp18b_rp.c PDP18B/pdp18b_stddev.c PDP18B/pdp18b_sys.c PDP18B/pdp18b_rb.c PDP18B/pdp18b_tt1.c PDP18B/pdp18b_fpp.c PDP18B/pdp18b_g2tty.c PDP18B/pdp18b_dr15.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DPDP15 -I PDP18B -o BIN/pdp15 -lm -lrt -lpthread -ldl -lpcap PDP18B/pdp18b_dt.c:346:20: warning: 'map_unit' defined but not used [-Wunused-const-variable=] 346 | static const int32 map_unit[16] = { /* Type 550 unit map */ | ^~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ PDP18B/pdp18b_dt.c: In function 'dt_setpos': PDP18B/pdp18b_dt.c:865:27: warning: 'delta' may be used uninitialized in this function [-Wmaybe-uninitialized] 865 | uptr->pos = uptr->pos - delta; | ~~~~~~~~~~^~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP18B/pdp18b_cpu.c: In function 'sim_instr': PDP18B/pdp18b_cpu.c:929:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 929 | if ((api_act & (API_ML0|API_ML1|API_ML2|API_ML3)) == 0) | ^~ PDP18B/pdp18b_cpu.c:932:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 932 | api_int = api_eval (&int_pend); | ^~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP11/pdp11_fp.c PDP11/pdp11_cpu.c PDP11/pdp11_dz.c PDP11/pdp11_cis.c PDP11/pdp11_lp.c PDP11/pdp11_rk.c PDP11/pdp11_rl.c PDP11/pdp11_rp.c PDP11/pdp11_rx.c PDP11/pdp11_stddev.c PDP11/pdp11_sys.c PDP11/pdp11_tc.c PDP11/pdp11_tm.c PDP11/pdp11_ts.c PDP11/pdp11_io.c PDP11/pdp11_rq.c PDP11/pdp11_tq.c PDP11/pdp11_pclk.c PDP11/pdp11_ry.c PDP11/pdp11_pt.c PDP11/pdp11_hk.c PDP11/pdp11_xq.c PDP11/pdp11_xu.c PDP11/pdp11_vh.c PDP11/pdp11_rh.c PDP11/pdp11_tu.c PDP11/pdp11_cpumod.c PDP11/pdp11_cr.c PDP11/pdp11_rf.c PDP11/pdp11_dl.c PDP11/pdp11_ta.c PDP11/pdp11_rc.c PDP11/pdp11_kg.c PDP11/pdp11_ke.c PDP11/pdp11_dc.c PDP11/pdp11_rs.c PDP11/pdp11_io_lib.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DVM_PDP11 -I PDP11 -DUSE_NETWORK -I/usr/include/ -DBPF_CONST_STRING -DUSE_TAP_NETWORK -o BIN/pdp11 -lm -lrt -lpthread -ldl -lpcap sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP10/pdp10_fe.c PDP11/pdp11_dz.c PDP10/pdp10_cpu.c PDP10/pdp10_ksio.c PDP10/pdp10_lp20.c PDP10/pdp10_mdfp.c PDP10/pdp10_pag.c PDP10/pdp10_rp.c PDP10/pdp10_sys.c PDP10/pdp10_tim.c PDP10/pdp10_tu.c PDP10/pdp10_xtnd.c PDP11/pdp11_pt.c PDP11/pdp11_ry.c PDP11/pdp11_cr.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DVM_PDP10 -DUSE_INT64 -I PDP10 -I PDP11 -o BIN/pdp10 -lm -lrt -lpthread -ldl -lpcap sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ PDP18B/pdp18b_lp.c: In function 'lp15_svc': PDP18B/pdp18b_lp.c:829:36: warning: array subscript has type 'char' [-Wchar-subscripts] 829 | if ((c[i] <= 037) && ctrl[c[i]]) { /* control char? */ | ~^~~ PDP18B/pdp18b_lp.c:832:26: warning: array subscript has type 'char' [-Wchar-subscripts] 832 | fputs (ctrl[c[i]], uptr->fileref); /* space */ | ~^~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard VAX/vax_cpu.c VAX/vax_cpu1.c VAX/vax_fpa.c VAX/vax_io.c VAX/vax_cis.c VAX/vax_octa.c VAX/vax_cmode.c VAX/vax_mmu.c VAX/vax_stddev.c VAX/vax_sysdev.c VAX/vax_sys.c VAX/vax_syscm.c VAX/vax_syslist.c PDP11/pdp11_rl.c PDP11/pdp11_rq.c PDP11/pdp11_ts.c PDP11/pdp11_dz.c PDP11/pdp11_lp.c PDP11/pdp11_tq.c PDP11/pdp11_xq.c PDP11/pdp11_ry.c PDP11/pdp11_vh.c PDP11/pdp11_cr.c PDP11/pdp11_io_lib.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DVM_VAX -DUSE_INT64 -DUSE_ADDR64 -I VAX -I PDP11 -DUSE_NETWORK -I/usr/include/ -DBPF_CONST_STRING -DUSE_TAP_NETWORK -o BIN/vax -lm -lrt -lpthread -ldl -lpcap PDP10/pdp10_cpu.c: In function 'sim_instr': PDP10/pdp10_cpu.c:983:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 983 | else adjbp (ac, ea, pflgs); break; | ^~~~ PDP10/pdp10_cpu.c:983:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 983 | else adjbp (ac, ea, pflgs); break; | ^~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard VAX/vax_cpu.c VAX/vax_cpu1.c VAX/vax_fpa.c VAX/vax_cis.c VAX/vax_octa.c VAX/vax_cmode.c VAX/vax_mmu.c VAX/vax_sys.c VAX/vax_syscm.c VAX/vax780_stddev.c VAX/vax780_sbi.c VAX/vax780_mem.c VAX/vax780_uba.c VAX/vax780_mba.c VAX/vax780_fload.c VAX/vax780_syslist.c PDP11/pdp11_rl.c PDP11/pdp11_rq.c PDP11/pdp11_ts.c PDP11/pdp11_dz.c PDP11/pdp11_lp.c PDP11/pdp11_tq.c PDP11/pdp11_xu.c PDP11/pdp11_ry.c PDP11/pdp11_cr.c PDP11/pdp11_rp.c PDP11/pdp11_tu.c PDP11/pdp11_hk.c PDP11/pdp11_io_lib.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DVM_VAX -DVAX_780 -DUSE_INT64 -DUSE_ADDR64 -I VAX -I PDP11 -DUSE_NETWORK -I/usr/include/ -DBPF_CONST_STRING -DUSE_TAP_NETWORK -o BIN/vax780 -lm -lrt -lpthread -ldl -lpcap PDP18B/pdp18b_dr15.c: In function 'dr60': PDP18B/pdp18b_dr15.c:144:7: warning: unused variable 'subdev' [-Wunused-variable] 144 | int32 subdev = (pulse >> 4) & 03; | ^~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ PDP11/pdp11_rl.c: In function 'rl_svc': PDP11/pdp11_rl.c:858:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 858 | if (DEBUG_PRS (rl_dev)) | ^~ PDP11/pdp11_rl.c:862:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 862 | if ((uptr->FNC >= RLCS_READ) && (err == 0)) { /* read (no hdr)? */ | ^~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP10/pdp10_lp20.c:218:15: warning: 'lp20_help' declared 'static' but never defined [-Wunused-function] 218 | static t_stat lp20_help (FILE *st, struct sim_device *dptr, | ^~~~~~~~~ PDP10/pdp10_lp20.c:220:20: warning: 'lp20_description' declared 'static' but never defined [-Wunused-function] 220 | static const char *lp20_description (DEVICE *dptr); | ^~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ VAX/vax_cis.c: In function 'ReadDstr': VAX/vax_cis.c:1234:8: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized] 1234 | if ((t == 0xB) || (t == 0xD)) /* if -, set sign */ | ~~~^~~~~~~ VAX/vax_cis.c: In function 'op_cis': VAX/vax_cis.c:1141:17: warning: 'rpt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1141 | for (i = 0; i < rpt; i++) /* fill string */ | ^~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_abo': PDP11/pdp11_rq.c:1355:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1355 | if (uptr = rq_getucb (cp, lu)) { /* get unit */ | ^~~~ PDP11/pdp11_rq.c:1368:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1368 | else if (prv = uptr->pktq) { /* srch pkt q */ | ^~~ PDP11/pdp11_rq.c:1369:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1369 | while (tpkt = cp->pak[prv].link) { /* walk list */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_avl': PDP11/pdp11_rq.c:1397:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1397 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_gus': PDP11/pdp11_rq.c:1451:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1451 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_onl': PDP11/pdp11_rq.c:1486:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1486 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_scc': PDP11/pdp11_rq.c:1524:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1524 | if (cp->htmo = cp->pak[pkt].d[SCC_TMO]) /* set timeout */ | ^~ PDP11/pdp11_rq.c: In function 'rq_suc': PDP11/pdp11_rq.c:1551:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1551 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_fmt': PDP11/pdp11_rq.c:1580:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1580 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_rw': PDP11/pdp11_rq.c:1614:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1614 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_svc': PDP11/pdp11_rq.c:1729:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1729 | if (abc = tbc - t) { /* any xfer? */ | ^~~ PDP11/pdp11_rq.c:1756:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1756 | if (t = Map_WriteW (ba, tbc, rqxb)) { /* store, nxm? */ | ^ PDP11/pdp11_rq.c: In function 'rq_show_unitq': PDP11/pdp11_rq.c:2589:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2589 | if (pkt = uptr->pktq) { | ^~~ PDP11/pdp11_rq.c:2593:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2593 | } while (pkt = cp->pak[pkt].link); | ^~~ PDP11/pdp11_rq.c: In function 'rq_show_ctrl': PDP11/pdp11_rq.c:2620:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2620 | if (pkt = cp->freq) { | ^~~ PDP11/pdp11_rq.c:2633:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2633 | if (pkt = cp->rspq) { | ^~~ PDP11/pdp11_rq.c:2637:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2637 | } while (pkt = cp->pak[pkt].link); | ^~~ VAX/vax_sysdev.c:411:18: warning: missing braces around initializer [-Wmissing-braces] 411 | DIB sysd_dib[] = { | ^ 412 | 0, 0, NULL, NULL, | { VAX/vax_sysdev.c:411:18: warning: missing braces around initializer [-Wmissing-braces] 411 | DIB sysd_dib[] = { | ^ 412 | 0, 0, NULL, NULL, | { 413 | 2, IVCL (TMR0), 0, { &tmr0_inta, &tmr1_inta } 414 | }; | } PDP11/pdp11_rq.c: In function 'rq_putpkt': PDP11/pdp11_rq.c:2069:8: warning: 'desc' may be used uninitialized in this function [-Wmaybe-uninitialized] 2069 | return rq_putdesc (cp, &cp->rq, desc); /* release desc */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_dte.part.0': PDP11/pdp11_rq.c:1878:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1878 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_hbe.part.0': PDP11/pdp11_rq.c:1907:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1907 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_plf': PDP11/pdp11_rq.c:1932:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1932 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_una': PDP11/pdp11_rq.c:1951:1: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1951 | rq_putr_unit (cp, pkt, uptr, lu, FALSE); /* fill unit fields */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_getpkt': PDP11/pdp11_rq.c:2025:6: warning: 'desc' may be used uninitialized in this function [-Wmaybe-uninitialized] 2025 | addr = desc & UQ_ADDR; /* get Q22 addr */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_tq.c: In function 'tq_mscp': PDP11/pdp11_tq.c:784:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 784 | if (uptr = tq_getucb (lu)) { /* valid unit? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_abo': PDP11/pdp11_tq.c:862:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 862 | if (uptr = tq_getucb (lu)) { /* get unit */ | ^~~~ PDP11/pdp11_tq.c:875:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 875 | else if (prv = uptr->pktq) { /* srch pkt q */ | ^~~ PDP11/pdp11_tq.c:876:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 876 | while (tpkt = tq_pkt[prv].link) { /* walk list */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_avl': PDP11/pdp11_tq.c:905:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 905 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_gus': PDP11/pdp11_tq.c:960:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 960 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_onl': PDP11/pdp11_tq.c:985:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 985 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_scc': PDP11/pdp11_tq.c:1014:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1014 | if (tq_htmo = tq_pkt[pkt].d[SCC_TMO]) /* set timeout */ | ^~~~~~~ PDP11/pdp11_tq.c: In function 'tq_suc': PDP11/pdp11_tq.c:1038:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1038 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_flu': PDP11/pdp11_tq.c:1060:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1060 | if (uptr = tq_getucb (lu)) /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_erase': PDP11/pdp11_tq.c:1076:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1076 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_wtm': PDP11/pdp11_tq.c:1097:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1097 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_pos': PDP11/pdp11_tq.c:1120:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1120 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_rw': PDP11/pdp11_tq.c:1152:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1152 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_svc': PDP11/pdp11_tq.c:1256:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1256 | if (t = Map_WriteB (ba, wbc, tqxb)) { /* store, nxm? */ | ^ PDP11/pdp11_tq.c:1293:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1293 | if (t = Map_ReadB (ba, bc, tqxb)) { /* fetch buf, nxm? */ | ^ PDP11/pdp11_tq.c: In function 'tq_show_unitq': PDP11/pdp11_tq.c:2237:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2237 | if (pkt = uptr->pktq) { | ^~~ PDP11/pdp11_tq.c:2241:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2241 | } while (pkt = tq_pkt[pkt].link); | ^~~ PDP11/pdp11_tq.c: In function 'tq_show_ctrl': PDP11/pdp11_tq.c:2266:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2266 | if (pkt = tq_freq) { | ^~~ PDP11/pdp11_tq.c:2279:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2279 | if (pkt = tq_rspq) { | ^~~ PDP11/pdp11_tq.c:2283:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2283 | } while (pkt = tq_pkt[pkt].link); | ^~~ PDP10/pdp10_tu.c: In function 'tu_svc': PDP10/pdp10_tu.c:820:12: warning: variable 'r' set but not used [-Wunused-but-set-variable] 820 | t_stat st, r = SCPE_OK; | ^ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ PDP11/pdp11_rl.c: In function 'rl_svc': PDP11/pdp11_rl.c:858:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 858 | if (DEBUG_PRS (rl_dev)) | ^~ PDP11/pdp11_rl.c:862:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 862 | if ((uptr->FNC >= RLCS_READ) && (err == 0)) { /* read (no hdr)? */ | ^~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard NOVA/nova_sys.c NOVA/nova_cpu.c NOVA/nova_dkp.c NOVA/nova_dsk.c NOVA/nova_lp.c NOVA/nova_mta.c NOVA/nova_plt.c NOVA/nova_pt.c NOVA/nova_clk.c NOVA/nova_tt.c NOVA/nova_tt1.c NOVA/nova_qty.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I NOVA -o BIN/nova -lm -lrt -lpthread -ldl -lpcap NOVA/nova_sys.c: In function 'sim_load': NOVA/nova_sys.c:258:31: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized] 258 | M[origin] = data; | ~~~~~~~~~~^~~~~~ PDP11/pdp11_rq.c: In function 'rq_abo': PDP11/pdp11_rq.c:1355:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1355 | if (uptr = rq_getucb (cp, lu)) { /* get unit */ | ^~~~ PDP11/pdp11_rq.c:1368:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1368 | else if (prv = uptr->pktq) { /* srch pkt q */ | ^~~ PDP11/pdp11_rq.c:1369:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1369 | while (tpkt = cp->pak[prv].link) { /* walk list */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_avl': PDP11/pdp11_rq.c:1397:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1397 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_gus': PDP11/pdp11_rq.c:1451:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1451 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_onl': PDP11/pdp11_rq.c:1486:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1486 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_scc': PDP11/pdp11_rq.c:1524:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1524 | if (cp->htmo = cp->pak[pkt].d[SCC_TMO]) /* set timeout */ | ^~ PDP11/pdp11_rq.c: In function 'rq_suc': PDP11/pdp11_rq.c:1551:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1551 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_fmt': PDP11/pdp11_rq.c:1580:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1580 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_rw': PDP11/pdp11_rq.c:1614:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1614 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_svc': PDP11/pdp11_rq.c:1729:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1729 | if (abc = tbc - t) { /* any xfer? */ | ^~~ PDP11/pdp11_rq.c:1756:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1756 | if (t = Map_WriteW (ba, tbc, rqxb)) { /* store, nxm? */ | ^ PDP11/pdp11_rq.c: In function 'rq_show_unitq': PDP11/pdp11_rq.c:2589:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2589 | if (pkt = uptr->pktq) { | ^~~ PDP11/pdp11_rq.c:2593:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2593 | } while (pkt = cp->pak[pkt].link); | ^~~ PDP11/pdp11_rq.c: In function 'rq_show_ctrl': PDP11/pdp11_rq.c:2620:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2620 | if (pkt = cp->freq) { | ^~~ PDP11/pdp11_rq.c:2633:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2633 | if (pkt = cp->rspq) { | ^~~ PDP11/pdp11_rq.c:2637:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2637 | } while (pkt = cp->pak[pkt].link); | ^~~ PDP11/pdp11_cr.c:480:15: warning: 'cr_help' declared 'static' but never defined [-Wunused-function] 480 | static t_stat cr_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); | ^~~~~~~ PDP11/pdp11_rq.c: In function 'rq_putpkt': PDP11/pdp11_rq.c:2069:8: warning: 'desc' may be used uninitialized in this function [-Wmaybe-uninitialized] 2069 | return rq_putdesc (cp, &cp->rq, desc); /* release desc */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_hk.c: In function 'hk_svc': PDP11/pdp11_hk.c:919:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 919 | if (t = Map_ReadW (ba, 2, &comp)) { /* get 1st wd */ | ^ PDP11/pdp11_hk.c:927:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 927 | if (t = Map_ReadW (ba, wc << 1, hkxb)) { /* get buf */ | ^ PDP11/pdp11_hk.c:947:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 947 | if (t = Map_WriteW (ba, 2, &hkxb[wc - 1])) { | ^ PDP11/pdp11_hk.c:953:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 953 | if (t = Map_WriteW (ba, wc << 1, hkxb)) { /* put buf */ | ^ PDP11/pdp11_rq.c: In function 'rq_dte.part.0': PDP11/pdp11_rq.c:1878:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1878 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_hbe.part.0': PDP11/pdp11_rq.c:1907:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1907 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_plf': PDP11/pdp11_rq.c:1932:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1932 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_una': PDP11/pdp11_rq.c:1951:1: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1951 | rq_putr_unit (cp, pkt, uptr, lu, FALSE); /* fill unit fields */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_getpkt': PDP11/pdp11_rq.c:2025:6: warning: 'desc' may be used uninitialized in this function [-Wmaybe-uninitialized] 2025 | addr = desc & UQ_ADDR; /* get Q22 addr */ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ PDP11/pdp11_xq.c: In function 'xq_process_mop': PDP11/pdp11_xq.c:1086:28: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 1086 | address = (meb->add_hi << 16) || (meb->add_mi << 8) || meb->add_lo; | ~~~~~~~~~~~~~^~~~~~ PDP11/pdp11_xq.c:1086:51: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 1086 | address = (meb->add_hi << 16) || (meb->add_mi << 8) || meb->add_lo; | ~~~~~~~~~~~~~^~~~~ PDP11/pdp11_xq.c:1087:28: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 1087 | size = (meb->siz_hi << 8) || meb->siz_lo; | ~~~~~~~~~~~~~^~~~~ PDP11/pdp11_xq.c:1075:10: warning: variable 'size' set but not used [-Wunused-but-set-variable] 1075 | uint16 size; | ^~~~ PDP11/pdp11_xq.c: In function 'xq_process_setup': PDP11/pdp11_xq.c:1190:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1190 | if (led = (len & XQ_SETUP_LD) >> 2) { | ^~~ PDP11/pdp11_xq.c: In function 'xq_tmrsvc': PDP11/pdp11_xq.c:2537:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 2537 | if (--xq->var->sanity.timer <= 0) | ^ In file included from /usr/include/string.h:495, from ./sim_defs.h:120, from VAX/vax_defs.h:50, from VAX/vax780_sbi.c:39: In function 'strncpy', inlined from 'vax780_boot' at VAX/vax780_sbi.c:625:1, inlined from 'vax780_boot' at VAX/vax780_sbi.c:618:8: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ VAX/vax780_mem.c:101:19: warning: missing braces around initializer [-Wmissing-braces] 101 | DIB mctl0_dib[] = { TR_MCTL0, 0, &mctl_rdreg, &mctl_wrreg, 0 }; | ^ VAX/vax780_mem.c:120:19: warning: missing braces around initializer [-Wmissing-braces] 120 | DIB mctl1_dib[] = { TR_MCTL1, 0, &mctl_rdreg, &mctl_wrreg, 0 }; | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_tq.c: In function 'tq_mscp': PDP11/pdp11_tq.c:784:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 784 | if (uptr = tq_getucb (lu)) { /* valid unit? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_abo': PDP11/pdp11_tq.c:862:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 862 | if (uptr = tq_getucb (lu)) { /* get unit */ | ^~~~ PDP11/pdp11_tq.c:875:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 875 | else if (prv = uptr->pktq) { /* srch pkt q */ | ^~~ PDP11/pdp11_tq.c:876:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 876 | while (tpkt = tq_pkt[prv].link) { /* walk list */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_avl': PDP11/pdp11_tq.c:905:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 905 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_gus': PDP11/pdp11_tq.c:960:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 960 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_onl': PDP11/pdp11_tq.c:985:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 985 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_scc': PDP11/pdp11_tq.c:1014:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1014 | if (tq_htmo = tq_pkt[pkt].d[SCC_TMO]) /* set timeout */ | ^~~~~~~ PDP11/pdp11_tq.c: In function 'tq_suc': PDP11/pdp11_tq.c:1038:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1038 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_flu': PDP11/pdp11_tq.c:1060:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1060 | if (uptr = tq_getucb (lu)) /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_erase': PDP11/pdp11_tq.c:1076:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1076 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_wtm': PDP11/pdp11_tq.c:1097:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1097 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_pos': PDP11/pdp11_tq.c:1120:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1120 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_rw': PDP11/pdp11_tq.c:1152:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1152 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_svc': PDP11/pdp11_tq.c:1256:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1256 | if (t = Map_WriteB (ba, wbc, tqxb)) { /* store, nxm? */ | ^ PDP11/pdp11_tq.c:1293:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1293 | if (t = Map_ReadB (ba, bc, tqxb)) { /* fetch buf, nxm? */ | ^ PDP11/pdp11_tq.c: In function 'tq_show_unitq': PDP11/pdp11_tq.c:2237:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2237 | if (pkt = uptr->pktq) { | ^~~ PDP11/pdp11_tq.c:2241:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2241 | } while (pkt = tq_pkt[pkt].link); | ^~~ PDP11/pdp11_tq.c: In function 'tq_show_ctrl': PDP11/pdp11_tq.c:2266:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2266 | if (pkt = tq_freq) { | ^~~ PDP11/pdp11_tq.c:2279:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2279 | if (pkt = tq_rspq) { | ^~~ PDP11/pdp11_tq.c:2283:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2283 | } while (pkt = tq_pkt[pkt].link); | ^~~ PDP11/pdp11_xu.c: In function 'xu_dump_rxring': PDP11/pdp11_xu.c:1684:12: warning: unused variable 'rstatus' [-Wunused-variable] 1684 | t_stat rstatus = Map_ReadW (ba, 8, rxhdr); /* get rxring entry[i] */ | ^~~~~~~ PDP11/pdp11_xu.c: In function 'xu_dump_txring': PDP11/pdp11_xu.c:1700:12: warning: unused variable 'tstatus' [-Wunused-variable] 1700 | t_stat tstatus = Map_ReadW (ba, 8, txhdr); /* get rxring entry[i] */ | ^~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rl.c: In function 'rl_svc': PDP11/pdp11_rl.c:858:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 858 | if (DEBUG_PRS (rl_dev)) | ^~ PDP11/pdp11_rl.c:862:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 862 | if ((uptr->FNC >= RLCS_READ) && (err == 0)) { /* read (no hdr)? */ | ^~ PDP11/pdp11_xu.c: In function 'xu_process_receive': PDP11/pdp11_xu.c:1037:19: warning: 'off' may be used uninitialized in this function [-Wmaybe-uninitialized] 1037 | int slen, wlen, off; | ^~~ PDP11/pdp11_xu.c: In function 'xu_process_transmit': PDP11/pdp11_xu.c:1302:17: warning: 'runt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1302 | if (giant || runt) { | ~~~~~~^~~~~~~ PDP11/pdp11_xu.c:1302:17: warning: 'giant' may be used uninitialized in this function [-Wmaybe-uninitialized] PDP11/pdp11_xu.c:1260:9: warning: 'off' may be used uninitialized in this function [-Wmaybe-uninitialized] 1260 | off += wlen; | ~~~~^~~~~~~ PDP11/pdp11_xq.c: In function 'xq_process_mop': PDP11/pdp11_xq.c:1086:28: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 1086 | address = (meb->add_hi << 16) || (meb->add_mi << 8) || meb->add_lo; | ~~~~~~~~~~~~~^~~~~~ PDP11/pdp11_xq.c:1086:51: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 1086 | address = (meb->add_hi << 16) || (meb->add_mi << 8) || meb->add_lo; | ~~~~~~~~~~~~~^~~~~ PDP11/pdp11_xq.c:1087:28: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context] 1087 | size = (meb->siz_hi << 8) || meb->siz_lo; | ~~~~~~~~~~~~~^~~~~ PDP11/pdp11_xq.c:1075:10: warning: variable 'size' set but not used [-Wunused-but-set-variable] 1075 | uint16 size; | ^~~~ PDP11/pdp11_xq.c: In function 'xq_process_setup': PDP11/pdp11_xq.c:1190:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1190 | if (led = (len & XQ_SETUP_LD) >> 2) { | ^~~ PDP11/pdp11_xq.c: In function 'xq_tmrsvc': PDP11/pdp11_xq.c:2537:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 2537 | if (--xq->var->sanity.timer <= 0) | ^ PDP11/pdp11_rq.c: In function 'rq_abo': PDP11/pdp11_rq.c:1355:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1355 | if (uptr = rq_getucb (cp, lu)) { /* get unit */ | ^~~~ PDP11/pdp11_rq.c:1368:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1368 | else if (prv = uptr->pktq) { /* srch pkt q */ | ^~~ PDP11/pdp11_rq.c:1369:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1369 | while (tpkt = cp->pak[prv].link) { /* walk list */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_avl': PDP11/pdp11_rq.c:1397:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1397 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_gus': PDP11/pdp11_rq.c:1451:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1451 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_onl': PDP11/pdp11_rq.c:1486:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1486 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_scc': PDP11/pdp11_rq.c:1524:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1524 | if (cp->htmo = cp->pak[pkt].d[SCC_TMO]) /* set timeout */ | ^~ PDP11/pdp11_rq.c: In function 'rq_suc': PDP11/pdp11_rq.c:1551:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1551 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_fmt': PDP11/pdp11_rq.c:1580:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1580 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_rw': PDP11/pdp11_rq.c:1614:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1614 | if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_rq.c: In function 'rq_svc': PDP11/pdp11_rq.c:1729:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1729 | if (abc = tbc - t) { /* any xfer? */ | ^~~ PDP11/pdp11_rq.c:1756:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1756 | if (t = Map_WriteW (ba, tbc, rqxb)) { /* store, nxm? */ | ^ PDP11/pdp11_rq.c: In function 'rq_show_unitq': PDP11/pdp11_rq.c:2589:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2589 | if (pkt = uptr->pktq) { | ^~~ PDP11/pdp11_rq.c:2593:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2593 | } while (pkt = cp->pak[pkt].link); | ^~~ PDP11/pdp11_rq.c: In function 'rq_show_ctrl': PDP11/pdp11_rq.c:2620:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2620 | if (pkt = cp->freq) { | ^~~ PDP11/pdp11_rq.c:2633:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2633 | if (pkt = cp->rspq) { | ^~~ PDP11/pdp11_rq.c:2637:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2637 | } while (pkt = cp->pak[pkt].link); | ^~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_putpkt': PDP11/pdp11_rq.c:2069:8: warning: 'desc' may be used uninitialized in this function [-Wmaybe-uninitialized] 2069 | return rq_putdesc (cp, &cp->rq, desc); /* release desc */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ PDP11/pdp11_rq.c: In function 'rq_dte.part.0': PDP11/pdp11_rq.c:1878:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1878 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_hbe.part.0': PDP11/pdp11_rq.c:1907:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1907 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_plf': PDP11/pdp11_rq.c:1932:8: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1932 | return rq_putpkt (cp, pkt, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': PDP11/pdp11_rq.c: In function 'rq_una': PDP11/pdp11_rq.c:1951:1: warning: 'pkt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1951 | rq_putr_unit (cp, pkt, uptr, lu, FALSE); /* fill unit fields */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_rq.c: In function 'rq_getpkt': PDP11/pdp11_rq.c:2025:6: warning: 'desc' may be used uninitialized in this function [-Wmaybe-uninitialized] 2025 | addr = desc & UQ_ADDR; /* get Q22 addr */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_cr.c:480:15: warning: 'cr_help' declared 'static' but never defined [-Wunused-function] 480 | static t_stat cr_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); | ^~~~~~~ PDP11/pdp11_tq.c: In function 'tq_mscp': PDP11/pdp11_tq.c:784:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 784 | if (uptr = tq_getucb (lu)) { /* valid unit? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_abo': PDP11/pdp11_tq.c:862:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 862 | if (uptr = tq_getucb (lu)) { /* get unit */ | ^~~~ PDP11/pdp11_tq.c:875:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 875 | else if (prv = uptr->pktq) { /* srch pkt q */ | ^~~ PDP11/pdp11_tq.c:876:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 876 | while (tpkt = tq_pkt[prv].link) { /* walk list */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_avl': PDP11/pdp11_tq.c:905:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 905 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_gus': PDP11/pdp11_tq.c:960:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 960 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_onl': PDP11/pdp11_tq.c:985:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 985 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_scc': PDP11/pdp11_tq.c:1014:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1014 | if (tq_htmo = tq_pkt[pkt].d[SCC_TMO]) /* set timeout */ | ^~~~~~~ PDP11/pdp11_tq.c: In function 'tq_suc': PDP11/pdp11_tq.c:1038:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1038 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_flu': PDP11/pdp11_tq.c:1060:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1060 | if (uptr = tq_getucb (lu)) /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_erase': PDP11/pdp11_tq.c:1076:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1076 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_wtm': PDP11/pdp11_tq.c:1097:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1097 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_pos': PDP11/pdp11_tq.c:1120:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1120 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_cr.c:480:15: warning: 'cr_help' declared 'static' but never defined [-Wunused-function] 480 | static t_stat cr_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); | ^~~~~~~ PDP11/pdp11_tq.c: In function 'tq_rw': PDP11/pdp11_tq.c:1152:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1152 | if (uptr = tq_getucb (lu)) { /* unit exist? */ | ^~~~ PDP11/pdp11_tq.c: In function 'tq_svc': PDP11/pdp11_tq.c:1256:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1256 | if (t = Map_WriteB (ba, wbc, tqxb)) { /* store, nxm? */ | ^ PDP11/pdp11_tq.c:1293:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1293 | if (t = Map_ReadB (ba, bc, tqxb)) { /* fetch buf, nxm? */ | ^ PDP11/pdp11_tq.c: In function 'tq_show_unitq': PDP11/pdp11_tq.c:2237:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2237 | if (pkt = uptr->pktq) { | ^~~ PDP11/pdp11_tq.c:2241:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2241 | } while (pkt = tq_pkt[pkt].link); | ^~~ PDP11/pdp11_tq.c: In function 'tq_show_ctrl': PDP11/pdp11_tq.c:2266:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2266 | if (pkt = tq_freq) { | ^~~ PDP11/pdp11_tq.c:2279:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2279 | if (pkt = tq_rspq) { | ^~~ PDP11/pdp11_tq.c:2283:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2283 | } while (pkt = tq_pkt[pkt].link); | ^~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ PDP11/pdp11_rf.c:147:14: warning: missing braces around initializer [-Wmissing-braces] 147 | DIB rf_dib = { | ^ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard NOVA/eclipse_cpu.c NOVA/eclipse_tt.c NOVA/nova_sys.c NOVA/nova_dkp.c NOVA/nova_dsk.c NOVA/nova_lp.c NOVA/nova_mta.c NOVA/nova_plt.c NOVA/nova_pt.c NOVA/nova_clk.c NOVA/nova_tt1.c NOVA/nova_qty.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I NOVA -DECLIPSE -o BIN/eclipse -lm -lrt -lpthread -ldl -lpcap PDP11/pdp11_xu.c: In function 'xu_dump_rxring': PDP11/pdp11_xu.c:1684:12: warning: unused variable 'rstatus' [-Wunused-variable] 1684 | t_stat rstatus = Map_ReadW (ba, 8, rxhdr); /* get rxring entry[i] */ | ^~~~~~~ PDP11/pdp11_xu.c: In function 'xu_dump_txring': PDP11/pdp11_xu.c:1700:12: warning: unused variable 'tstatus' [-Wunused-variable] 1700 | t_stat tstatus = Map_ReadW (ba, 8, txhdr); /* get rxring entry[i] */ | ^~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOVA/eclipse_cpu.c: In function 'Bytepointer': NOVA/eclipse_cpu.c:5450:14: warning: 'MA' may be used uninitialized in this function [-Wmaybe-uninitialized] 5450 | MA = (MA * 2) & 0177777; | ~~~~^~~~ PDP11/pdp11_xu.c: In function 'xu_process_receive': PDP11/pdp11_xu.c:1037:19: warning: 'off' may be used uninitialized in this function [-Wmaybe-uninitialized] 1037 | int slen, wlen, off; | ^~~ PDP11/pdp11_xu.c: In function 'xu_process_transmit': PDP11/pdp11_xu.c:1302:17: warning: 'runt' may be used uninitialized in this function [-Wmaybe-uninitialized] 1302 | if (giant || runt) { | ~~~~~~^~~~~~~ PDP11/pdp11_xu.c:1302:17: warning: 'giant' may be used uninitialized in this function [-Wmaybe-uninitialized] PDP11/pdp11_xu.c:1260:9: warning: 'off' may be used uninitialized in this function [-Wmaybe-uninitialized] 1260 | off += wlen; | ~~~~^~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from PDP11/pdp11_defs.h:89, from PDP11/pdp11_rs.c:36: PDP11/pdp11_rs.c:202:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 202 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_rs.c:204:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 204 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_rs.c:206:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 206 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_rs.c:208:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 208 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_rs.c:210:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 210 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_rs.c:212:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 212 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_rs.c:214:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 214 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_rs.c:216:57: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 216 | { UDATA (&rs_svc, UNIT_FIX|UNIT_ATTABLE|UNIT_DISABLE|UNIT_AUTO+ | ^ ./sim_defs.h:536:56: note: in definition of macro 'UDATA' 536 | #define UDATA(act,fl,cap) NULL,act,NULL,NULL,NULL,0,0,(fl),0,(cap),0,0 | ^~ PDP11/pdp11_cr.c:480:15: warning: 'cr_help' declared 'static' but never defined [-Wunused-function] 480 | static t_stat cr_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); | ^~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard I1401/i1401_lp.c I1401/i1401_cpu.c I1401/i1401_iq.c I1401/i1401_cd.c I1401/i1401_mt.c I1401/i1401_dp.c I1401/i1401_sys.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I I1401 -o BIN/i1401 -lm -lrt -lpthread -ldl -lpcap NOVA/eclipse_cpu.c: In function 'sim_instr': NOVA/eclipse_cpu.c:1787:15: warning: 'da' may be used uninitialized in this function [-Wmaybe-uninitialized] 1787 | AC[3] = da; | ~~~~~~^~~~ NOVA/eclipse_cpu.c:1786:15: warning: 'sa' may be used uninitialized in this function [-Wmaybe-uninitialized] 1786 | AC[2] = sa; | ~~~~~~^~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ I1401/i1401_cpu.c: In function 'sim_instr': I1401/i1401_cpu.c:553:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 553 | if (reason = sim_process_event ()) | ^~~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ I1401/i1401_cpu.c:1048:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1048 | if (reason = iomod (ilnt, D, r_mod)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1058:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1058 | if (reason = iomod (ilnt, D, w_mod)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1068:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1068 | if (reason = iomod (ilnt, D, p_mod)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1078:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1078 | if (reason = iomod (ilnt, D, w_mod)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1091:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1091 | if (reason = iomod (ilnt, D, w_mod)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1104:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1104 | if (reason = iomod (ilnt, D, NULL)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1117:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1117 | if (reason = iomod (ilnt, D, w_mod)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1131:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1131 | if (reason = iomod (ilnt, D, ss_mod)) /* valid modifier? */ | ^~~~~~ I1401/i1401_cpu.c:1133:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1133 | if (reason = select_stack (D)) /* sel stack, error? */ | ^~~~~~ I1401/i1401_cpu.c:1141:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1141 | if (reason = carriage_control (D)) /* car ctrl, error? */ | ^~~~~~ I1401/i1401_cpu.c:1167:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1167 | if (reason = iomod (ilnt, D, mtf_mod)) /* valid modifier? */ | ^~~~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ I1401/i1401_cpu.c:1171:22: warning: 'unit' may be used uninitialized in this function [-Wmaybe-uninitialized] 1171 | reason = mt_func (unit, 0, D); | ^~~~~~~~~~~~~~~~~~~~ I1401/i1401_cpu.c:1172:17: warning: 'dev' may be used uninitialized in this function [-Wmaybe-uninitialized] 1172 | else if (dev == IO_MTB) /* binary? */ | ^ I1401/i1401_cpu.c:1163:10: warning: 'ioind' may be used uninitialized in this function [-Wmaybe-uninitialized] 1163 | if (ioind != BCD_PERCNT) { /* valid dev addr? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PDP11/pdp11_hk.c: In function 'hk_svc': PDP11/pdp11_hk.c:919:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 919 | if (t = Map_ReadW (ba, 2, &comp)) { /* get 1st wd */ | ^ PDP11/pdp11_hk.c:927:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 927 | if (t = Map_ReadW (ba, wc << 1, hkxb)) { /* get buf */ | ^ PDP11/pdp11_hk.c:947:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 947 | if (t = Map_WriteW (ba, 2, &hkxb[wc - 1])) { | ^ PDP11/pdp11_hk.c:953:21: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 953 | if (t = Map_WriteW (ba, wc << 1, hkxb)) { /* put buf */ | ^ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ I1401/i1401_cd.c: In function 'read_card': I1401/i1401_cd.c:237:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 237 | if (r = cdr_svc (&cdr_unit)) /* process */ | ^ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I1401/i1401_mt.c: In function 'mt_reset': I1401/i1401_mt.c:457:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 457 | if (uptr = mt_sel_unit (i)) { | ^~~~ sim_ether.c: In function '_eth_open_port': sim_ether.c:2000:8: warning: unused variable 'on' [-Wunused-variable] 2000 | int on = 1; | ^~ sim_ether.c:1999:8: warning: unused variable 'tun' [-Wunused-variable] 1999 | int tun = -1; /* TUN/TAP Socket */ | ^~~ sim_ether.c: In function 'eth_filter_hash': sim_ether.c:3622:8: warning: variable 'status' set but not used [-Wunused-but-set-variable] 3622 | t_stat status; | ^~~~~~ I1401/i1401_dp.c: In function 'dp_io': I1401/i1401_dp.c:272:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 272 | if (r = dp_rdsec (uptr, psec, flg, qwc)) /* read sector */ | ^ I1401/i1401_dp.c:281:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 281 | if (r = dp_nexsec (uptr, psec, dcf)) /* find next */ | ^ I1401/i1401_dp.c:292:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 292 | if (r = dp_rdadr (uptr, psec, flg, qwc)) /* read addr */ | ^ I1401/i1401_dp.c:294:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 294 | if (r = dp_rdsec (uptr, psec, flg, qwc)) /* read data */ | ^ I1401/i1401_dp.c:315:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 315 | if (r = dp_wrsec (uptr, psec, flg)) /* write data */ | ^ I1401/i1401_dp.c:321:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 321 | if (r = dp_nexsec (uptr, psec, dcf)) /* find next */ | ^ I1401/i1401_dp.c:334:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 334 | if (r = dp_wradr (uptr, psec, flg)) /* write addr */ | ^ I1401/i1401_dp.c:336:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 336 | if (r = dp_wrsec (uptr, psec, flg)) /* write data */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ sim_ether.c: In function 'eth_open': sim_ether.c:1582:54: warning: '%s' directive output may be truncated writing up to 16895 bytes into a region of size 1014 [-Wformat-truncation=] 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~ ...... 2283 | savname = namebuf; | ~~~~~~~ sim_ether.c:1582:44: note: assuming directive output of 142 bytes 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:871, from sim_defs.h:118, from sim_ether.h:69, from sim_ether.c:369: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 26 or more bytes (assuming 17063) into a destination of size 1023 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard I1620/i1620_cd.c I1620/i1620_dp.c I1620/i1620_pt.c I1620/i1620_tty.c I1620/i1620_cpu.c I1620/i1620_lp.c I1620/i1620_fp.c I1620/i1620_sys.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I I1620 -o BIN/i1620 -lm -lrt -lpthread -ldl -lpcap NOVA/nova_sys.c: In function 'sim_load': NOVA/nova_sys.c:258:31: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized] 258 | M[origin] = data; | ~~~~~~~~~~^~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I1620/i1620_dp.c: In function 'dp': I1620/i1620_dp.c:210:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 210 | if (r = dp_rdsec (uptr, psec, qnr, qwc)) /* read sector */ | ^ I1620/i1620_dp.c:220:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 220 | if (r = dp_rdadr (uptr, psec, qnr, qwc)) /* read addr */ | ^ I1620/i1620_dp.c:222:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 222 | if (r = dp_rdsec (uptr, psec, qnr, qwc)) /* read data */ | ^ I1620/i1620_dp.c:235:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 235 | if (r = dp_tstgm (M[dp_ba], qnr)) /* start with gm? */ | ^ I1620/i1620_dp.c:237:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 237 | if (r = dp_wrsec (uptr, psec, qnr)) /* write data */ | ^ I1620/i1620_dp.c:249:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 249 | if (r = dp_tstgm (M[dp_ba], qnr)) /* start with gm? */ | ^ I1620/i1620_dp.c:251:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 251 | if (r = dp_wradr (uptr, psec, qnr)) /* write addr */ | ^ I1620/i1620_dp.c:253:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 253 | if (r = dp_wrsec (uptr, psec, qnr)) /* write data */ | ^ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I1620/i1620_dp.c:210:21: warning: 'qwc' may be used uninitialized in this function [-Wmaybe-uninitialized] 210 | if (r = dp_rdsec (uptr, psec, qnr, qwc)) /* read sector */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_ether.c: In function '_eth_open_port': sim_ether.c:2000:8: warning: unused variable 'on' [-Wunused-variable] 2000 | int on = 1; | ^~ sim_ether.c:1999:8: warning: unused variable 'tun' [-Wunused-variable] 1999 | int tun = -1; /* TUN/TAP Socket */ | ^~~ sim_ether.c: In function 'eth_filter_hash': sim_ether.c:3622:8: warning: variable 'status' set but not used [-Wunused-but-set-variable] 3622 | t_stat status; | ^~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I1620/i1620_tty.c: In function 'tto_svc': I1620/i1620_tty.c:413:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 413 | if (io_stop) /* set return status */ | ^~ I1620/i1620_tty.c:415:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 415 | break; | ^~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_ether.c: In function 'eth_open': sim_ether.c:1582:54: warning: '%s' directive output may be truncated writing up to 16895 bytes into a region of size 1014 [-Wformat-truncation=] 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~ ...... 2283 | savname = namebuf; | ~~~~~~~ sim_ether.c:1582:44: note: assuming directive output of 142 bytes 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:871, from sim_defs.h:118, from sim_ether.h:69, from sim_ether.c:369: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 26 or more bytes (assuming 17063) into a destination of size 1023 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard S3/s3_cd.c S3/s3_cpu.c S3/s3_disk.c S3/s3_lp.c S3/s3_pkb.c S3/s3_sys.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I S3 -o BIN/s3 -lm -lrt -lpthread -ldl -lpcap S3/s3_cd.c: In function 'read_card': S3/s3_cd.c:283:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 283 | if (r = cdr_svc (&cdr_unit)) return r; /* process */ | ^ S3/s3_cd.c:328:39: warning: array subscript has type 'char' [-Wchar-subscripts] 328 | rbuf[i] = ascii_to_ebcdic[rbuf[i]]; /* convert to EBCDIC */ | ~~~~^~~ S3/s3_cd.c: In function 'cdr_svc': S3/s3_cd.c:349:71: warning: array subscript has type 'char' [-Wchar-subscripts] 349 | for (i = 0; (size_t)i < CDR_WIDTH; i++) rbuf[i] = ebcdic_to_ascii[rbuf[i]]; | ~~~~^~~ sim_ether.c: In function '_eth_open_port': sim_ether.c:2000:8: warning: unused variable 'on' [-Wunused-variable] 2000 | int on = 1; | ^~ sim_ether.c:1999:8: warning: unused variable 'tun' [-Wunused-variable] 1999 | int tun = -1; /* TUN/TAP Socket */ | ^~~ sim_ether.c: In function 'eth_filter_hash': sim_ether.c:3622:8: warning: variable 'status' set but not used [-Wunused-but-set-variable] 3622 | t_stat status; | ^~~~~~ S3/s3_cpu.c: In function 'sim_instr': S3/s3_cpu.c:524:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 524 | if (reason = sim_process_event ()) break; | ^~~~~~ I1620/i1620_sys.c: In function 'parse_sym': I1620/i1620_sys.c:587:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 587 | while (t = *fptr++) { /* loop through */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ S3/s3_cpu.c: In function 'load_decimal': S3/s3_cpu.c:1705:17: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized] 1705 | *count = 32 - n; | ~~~^~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ S3/s3_cpu.c: In function 'sim_instr': S3/s3_cpu.c:541:30: warning: 'intdev' may be used uninitialized in this function [-Wmaybe-uninitialized] 541 | level = dev_table[intdev].level; /* get int level from device */ | ~~~~~~~~~~~~~~~~~^~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ sim_ether.c: In function 'eth_open': sim_ether.c:1582:54: warning: '%s' directive output may be truncated writing up to 16895 bytes into a region of size 1014 [-Wformat-truncation=] 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~ ...... 2283 | savname = namebuf; | ~~~~~~~ sim_ether.c:1582:44: note: assuming directive output of 142 bytes 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:871, from sim_defs.h:118, from sim_ether.h:69, from sim_ether.c:369: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 26 or more bytes (assuming 17063) into a destination of size 1023 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ S3/s3_disk.c: In function 'dsk': S3/s3_disk.c:203:11: warning: variable 'F' set but not used [-Wunused-but-set-variable] 203 | int32 F, C, S, N, usave; | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ S3/s3_disk.c:603:25: warning: 'uptr' may be used uninitialized in this function [-Wmaybe-uninitialized] 603 | if (sim_is_active (uptr)) | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ S3/s3_sys.c: In function 'parse_sym': S3/s3_sys.c:506:7: warning: variable 'cflag' set but not used [-Wunused-but-set-variable] 506 | int32 cflag, i = 0, j, r, oplen, addtyp, saveaddr, vptr; | ^~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ S3/s3_sys.c: In function 'printf_sym': S3/s3_sys.c:447:39: warning: '%s' directive writing up to 119 bytes into a region of size 32 [-Wformat-overflow=] 447 | sprintf(bldaddr, "%s,%s", regname[i], boperand); | ^~ In file included from /usr/include/stdio.h:871, from ./sim_defs.h:118, from S3/s3_defs.h:27, from S3/s3_sys.c:30: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 121) into a destination of size 32 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard ALTAIR/altair_sio.c ALTAIR/altair_cpu.c ALTAIR/altair_dsk.c ALTAIR/altair_sys.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I ALTAIR -o BIN/altair -lm -lrt -lpthread -ldl -lpcap scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard GRI/gri_cpu.c GRI/gri_stddev.c GRI/gri_sys.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I GRI -o BIN/gri -lm -lrt -lpthread -ldl -lpcap scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ALTAIR/altair_dsk.c: In function 'dsk12': ALTAIR/altair_dsk.c:314:18: warning: variable 'rtn' set but not used [-Wunused-but-set-variable] 314 | static int32 rtn, i; | ^~~ ALTAIR/altair_dsk.c: In function 'writebuf': ALTAIR/altair_dsk.c:354:11: warning: variable 'rtn' set but not used [-Wunused-but-set-variable] 354 | int32 rtn, i; | ^~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ALTAIR/altair_sys.c: In function 'fprint_sym': ALTAIR/altair_sys.c:186:7: warning: variable 'cflag' set but not used [-Wunused-but-set-variable] 186 | int32 cflag, c1, c2, inst, adr; | ^~~~~ ALTAIR/altair_sys.c: In function 'parse_sym': ALTAIR/altair_sys.c:234:7: warning: variable 'cflag' set but not used [-Wunused-but-set-variable] 234 | int32 cflag, i = 0, j, r; | ^~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard I7094/i7094_cpu.c I7094/i7094_cpu1.c I7094/i7094_io.c I7094/i7094_cd.c I7094/i7094_clk.c I7094/i7094_com.c I7094/i7094_drm.c I7094/i7094_dsk.c I7094/i7094_sys.c I7094/i7094_lp.c I7094/i7094_mt.c I7094/i7094_binloader.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DUSE_INT64 -I I7094 -o BIN/i7094 -lm -lrt -lpthread -ldl -lpcap gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard Interdata/id16_cpu.c Interdata/id16_sys.c Interdata/id_dp.c Interdata/id_fd.c Interdata/id_fp.c Interdata/id_idc.c Interdata/id_io.c Interdata/id_lp.c Interdata/id_mt.c Interdata/id_pas.c Interdata/id_pt.c Interdata/id_tt.c Interdata/id_uvc.c Interdata/id16_dboot.c Interdata/id_ttp.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I Interdata -o BIN/id16 -lm -lrt -lpthread -ldl -lpcap sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Interdata/id16_cpu.c: In function 'sim_instr': Interdata/id16_cpu.c:726:24: warning: 'ir2' may be used uninitialized in this function [-Wmaybe-uninitialized] 726 | hst[hst_p].ir2 = ir2; | ~~~~~~~~~~~~~~~^~~~~ Interdata/id16_cpu.c:1477:28: warning: 'ea' may be used uninitialized in this function [-Wmaybe-uninitialized] 1477 | blk_io.end = ea; | ~~~~~~~~~~~^~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard PDP11/pdp11_cis.c PDP11/pdp11_cpu.c PDP11/pdp11_cpumod.c PDP11/pdp11_cr.c PDP11/pdp11_fp.c PDP11/pdp11_io.c PDP11/pdp11_io_lib.c PDP11/pdp11_lp.c PDP11/pdp11_rh.c PDP11/pdp11_rk.c PDP11/pdp11_stddev.c PDP11/pdp11_sys.c PDP11/pdp11_uc15.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -DVM_PDP11 -DUC15 -I PDP11 -I PDP18B -DUSE_NETWORK -I/usr/include/ -DBPF_CONST_STRING -DUSE_TAP_NETWORK -o BIN/uc15 -lm -lrt -lpthread -ldl -lpcap sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard Interdata/id32_cpu.c Interdata/id32_sys.c Interdata/id_dp.c Interdata/id_fd.c Interdata/id_fp.c Interdata/id_idc.c Interdata/id_io.c Interdata/id_lp.c Interdata/id_mt.c Interdata/id_pas.c Interdata/id_pt.c Interdata/id_tt.c Interdata/id_uvc.c Interdata/id32_dboot.c Interdata/id_ttp.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I Interdata -o BIN/id32 -lm -lrt -lpthread -ldl -lpcap gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard SDS/sds_cpu.c SDS/sds_drm.c SDS/sds_dsk.c SDS/sds_io.c SDS/sds_lp.c SDS/sds_mt.c SDS/sds_mux.c SDS/sds_rad.c SDS/sds_stddev.c SDS/sds_sys.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I SDS -o BIN/sds -lm -lrt -lpthread -ldl -lpcap Interdata/id32_cpu.c: In function 'int_auto': Interdata/id32_cpu.c:1877:27: warning: 'st' may be used uninitialized in this function [-Wmaybe-uninitialized] 1877 | if (!DEV_ACC (dev) || (st & CCW32_STA (ccw))) { /* bad status? */ | ~~~~^~~~~~~~~~~~~~~~~~ I7094/i7094_cd.c: In function 'cdr_svc': I7094/i7094_cd.c:242:49: warning: array subscript has type 'char' [-Wchar-subscripts] 242 | else colbin = bcd_to_colbin[cdr_cbuf[col]]; /* cvt to col binary */ | ~~~~~~~~^~~~~ I7094/i7094_cd.c: In function 'cdp_card_end': I7094/i7094_cd.c:450:28: warning: array subscript has type 'char' [-Wchar-subscripts] 450 | cdp_cbuf[col] = pch[bcd]; /* -> ASCII */ | ^ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ PDP11/pdp11_cr.c:480:15: warning: 'cr_help' declared 'static' but never defined [-Wunused-function] 480 | static t_stat cr_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); | ^~~~~~~ I7094/i7094_lp.c: In function 'lpt_end_line': I7094/i7094_lp.c:333:24: warning: array subscript has type 'char' [-Wchar-subscripts] 333 | lpt_cbuf[col] = pch[bcd]; /* -> ASCII */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'get_search': scp.c: In function 'do_cmd': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard LGP/lgp_cpu.c LGP/lgp_stddev.c LGP/lgp_sys.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I LGP -o BIN/lgp -lm -lrt -lpthread -ldl -lpcap In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard H316/h316_stddev.c H316/h316_lp.c H316/h316_cpu.c H316/h316_sys.c H316/h316_mt.c H316/h316_fhd.c H316/h316_dp.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I H316 -o BIN/h316 -lm -lrt -lpthread -ldl -lpcap gcc -std=c99 -U__STRICT_ANSI__ -O2 -finline-functions -fgcse-after-reload -fpredictive-commoning -fipa-cp-clone -fno-unsafe-loop-optimizations -fno-strict-overflow -Wno-unused-result -I . -D_GNU_SOURCE -DUSE_READER_THREAD -DHAVE_SEMAPHORE -DHAVE_SHM_OPEN -DHAVE_DLOPEN=so -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard sigma/sigma_cpu.c sigma/sigma_sys.c sigma/sigma_cis.c sigma/sigma_coc.c sigma/sigma_dk.c sigma/sigma_dp.c sigma/sigma_fp.c sigma/sigma_io.c sigma/sigma_lp.c sigma/sigma_map.c sigma/sigma_mt.c sigma/sigma_pt.c sigma/sigma_rad.c sigma/sigma_rtc.c sigma/sigma_tt.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c sim_shmem.c -I sigma -o BIN/sigma -lm -lrt -lpthread -ldl -lpcap sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sigma/sigma_cpu.c: In function 'cpu_int_mtx': sigma/sigma_cpu.c:1796:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1796 | if ((acc || QCPU_S567)? /* virt or S5-7? */ | ^~ sigma/sigma_cpu.c:1801:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1801 | switch (lnt) { | ^~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ H316/h316_cpu.c: In function 'Write': H316/h316_cpu.c:1106:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1106 | if (addr == M_XR) /* write XR loc? */ | ^~ H316/h316_cpu.c:1109:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1109 | if (sim_brk_summ && sim_brk_test (addr, SWMASK ('W'))) | ^~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_ether.c: In function '_eth_open_port': sim_ether.c:2000:8: warning: unused variable 'on' [-Wunused-variable] 2000 | int on = 1; | ^~ sim_ether.c:1999:8: warning: unused variable 'tun' [-Wunused-variable] 1999 | int tun = -1; /* TUN/TAP Socket */ | ^~~ H316/h316_fhd.c: In function 'fhdio': H316/h316_fhd.c:224:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 224 | if (((fnc == 000) && fhd_rdy) || /* 0 = skip if ready */ | ^~ H316/h316_fhd.c:230:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 230 | break; | ^~~~~ sim_ether.c: In function 'eth_filter_hash': sim_ether.c:3622:8: warning: variable 'status' set but not used [-Wunused-but-set-variable] 3622 | t_stat status; | ^~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sigma/sigma_sys.c: In function 'parse_sym': sigma/sigma_sys.c:498:34: warning: array subscript has type 'char' [-Wchar-subscripts] 498 | ascii_to_ebcdic[cptr[i]]; | ~~~~^~~ sigma/sigma_sys.c:514:63: warning: array subscript has type 'char' [-Wchar-subscripts] 514 | val[0] = (val[0] & ~(BMASK << sc)) | (ascii_to_ebcdic[cptr[0]] << sc); | ~~~~^~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ sigma/sigma_cis.c:71:27: warning: missing braces around initializer [-Wmissing-braces] 71 | static dstr_t Dstr_zero = { 0, 0, 0, 0, 0 }; | ^ | { } scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ sim_ether.c: In function 'eth_open': sim_ether.c:1582:54: warning: '%s' directive output may be truncated writing up to 16895 bytes into a region of size 1014 [-Wformat-truncation=] 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~ ...... 2283 | savname = namebuf; | ~~~~~~~ sim_ether.c:1582:44: note: assuming directive output of 142 bytes 1582 | snprintf(command, sizeof(command)-1, "ifconfig %s | %s >NIC.hwaddr", devname, patterns[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:871, from sim_defs.h:118, from sim_ether.h:69, from sim_ether.c:369: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 26 or more bytes (assuming 17063) into a destination of size 1023 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sigma/sigma_dp.c: In function 'dp_end_sec': sigma/sigma_dp.c:933:8: warning: unused variable 'dtype' [-Wunused-variable] 933 | uint32 dtype = GET_DTYPE (uptr->flags); | ^~~~~ sigma/sigma_dp.c: In function 'dp_tdv_status': sigma/sigma_dp.c:981:9: warning: unused variable 'ctx' [-Wunused-variable] 981 | DP_CTX *ctx = &dp_ctx[cidx]; | ^~~ sigma/sigma_dp.c: In function 'dp_aio_status': sigma/sigma_dp.c:999:9: warning: unused variable 'ctx' [-Wunused-variable] 999 | DP_CTX *ctx = &dp_ctx[cidx]; | ^~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ sigma/sigma_mt.c: In function 'mt_map_err': sigma/sigma_mt.c:473:7: warning: unused variable 'u' [-Wunused-variable] 473 | int32 u = uptr - mt_dev.units; | ^ sigma/sigma_mt.c: In function 'mt_detach': sigma/sigma_mt.c:642:8: warning: unused variable 'un' [-Wunused-variable] 642 | uint32 un = uptr - mt_dev.units; | ^~ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ scp.c: In function 'main': scp.c:773:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 773 | if (np = match_ext (nbuf, "EXE")) /* remove .exe */ | ^~ scp.c:780:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 780 | if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ | ^~~~ scp.c:796:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if (cmdp = find_cmd (gbuf)) /* lookup command */ | ^~~~ scp.c: In function 'help_cmd': scp.c:860:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 860 | if (cmdp = find_cmd (gbuf)) | ^~~~ scp.c: In function 'do_cmd': scp.c:958:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 958 | echo = echo | flag & ~0377; /* then propagate the echo flag to the current level */ | ~~~~~^~~~~~~ scp.c:1007:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1007 | if (cmdp = find_cmd (gbuf)) { /* lookup command */ | ^~~~ scp.c:1012:51: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1012 | else stat = cmdp->action (echo | flag + 1, cptr); /* exec DO cmd and propagate echo flag */ | ~~~~~^~~ scp.c: In function 'set_cmd': scp.c:1194:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1194 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1199:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1199 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1205:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1205 | else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1213:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1213 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1226:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1226 | if (cvptr = strchr (gbuf, '=')) | ^~~~~ scp.c:1254:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1254 | if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ | ^~~~ scp.c: In function 'show_cmd_fi': scp.c:1423:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1423 | if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ | ^~~~~ scp.c:1426:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1426 | if (dptr = find_dev (gbuf)) { /* device match? */ | ^~~~ scp.c:1431:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1431 | else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ | ^~~~ scp.c:1449:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1449 | if (cvptr = strchr (gbuf, '=')) /* = value? */ | ^~~~~ scp.c:1463:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1463 | if (shptr = find_shtab (shtb, gbuf)) { /* global match? */ | ^~~~~ scp.c: In function 'ssh_break': scp.c:1881:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1881 | if (aptr = strchr (cptr, ';')) { /* ;action? */ | ^~~~ scp.c: In function 'find_unit': scp.c:4025:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4025 | if (dptr = find_dev (cptr)) { /* exact match? */ | ^~~~ scp.c: In function 'find_reg_glob': scp.c:4107:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4107 | if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ | ^~~~ scp.c: In function 'get_search': scp.c:4325:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4325 | for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ | ^ scp.c:4326:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4326 | if (sptr = strchr (logstr, c)) { /* check for mask */ | ^~~~ scp.c:4333:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 4333 | else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ | ^~~~ scp.c: In function 'sim_brk_getact': scp.c:5153:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 5153 | if (cmd_len == 0) /* if the command length has not been set */ | ^ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'assign_device' at scp.c:2319:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scp.c: In function 'assert_cmd': scp.c:1168:11: warning: 'idx' may be used uninitialized in this function [-Wmaybe-uninitialized] 1168 | val = get_rval (rptr, idx); /* get register value */ | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from scp.c:221: In function 'strncpy', inlined from 'attach_unit' at scp.c:2102:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'sim_brk_set' at scp.c:4927:5: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_console.c: In function 'sim_poll_kbd': sim_console.c:474:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 474 | if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ | ^ sim_sock.c:374:23: warning: 's_getnameinfo' defined but not used [-Wunused-function] 374 | static int WSAAPI s_getnameinfo (const struct sockaddr *sa, socklen_t salen, | ^~~~~~~~~~~~~ sim_sock.c:222:23: warning: 's_getaddrinfo' defined but not used [-Wunused-function] 222 | static int WSAAPI s_getaddrinfo (const char *hostname, | ^~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_tmxr.c:95: In function 'strncpy', inlined from 'tmxr_set_log' at sim_tmxr.c:825:1: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4224 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from sim_defs.h:120, from sim_ether.h:69, from sim_ether.c:369: In function 'strncpy', inlined from 'eth_mac_scan_ex' at sim_ether.c:419:3: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 128 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sim_tape.c: In function 'sim_tape_set_dens': sim_tape.c:1617:41: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1617 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then insert the code */ sim_tape.c:1634:45: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 1634 | uptr->dynflags = uptr->dynflags & ~MTVF_DENS_MASK /* then store the index of the value */ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.gaCN6s + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm ++ dirname /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm + cd simh-3.11.0/sim + rm -rf /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm + mkdir -p /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin ++ ls BIN/ + for i in `ls BIN/` + install -p -m 755 BIN/altair /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-altair + for i in `ls BIN/` + install -p -m 755 BIN/eclipse /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-eclipse + for i in `ls BIN/` + install -p -m 755 BIN/gri /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-gri + for i in `ls BIN/` + install -p -m 755 BIN/h316 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-h316 + for i in `ls BIN/` + install -p -m 755 BIN/i1401 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i1401 + for i in `ls BIN/` + install -p -m 755 BIN/i1620 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i1620 + for i in `ls BIN/` + install -p -m 755 BIN/i7094 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i7094 + for i in `ls BIN/` + install -p -m 755 BIN/id16 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-id16 + for i in `ls BIN/` + install -p -m 755 BIN/id32 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-id32 + for i in `ls BIN/` + install -p -m 755 BIN/lgp /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-lgp + for i in `ls BIN/` + install -p -m 755 BIN/nova /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-nova + for i in `ls BIN/` + install -p -m 755 BIN/pdp1 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp1 + for i in `ls BIN/` + install -p -m 755 BIN/pdp10 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp10 + for i in `ls BIN/` + install -p -m 755 BIN/pdp11 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp11 + for i in `ls BIN/` + install -p -m 755 BIN/pdp15 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp15 + for i in `ls BIN/` + install -p -m 755 BIN/pdp4 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp4 + for i in `ls BIN/` + install -p -m 755 BIN/pdp7 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp7 + for i in `ls BIN/` + install -p -m 755 BIN/pdp8 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp8 + for i in `ls BIN/` + install -p -m 755 BIN/pdp9 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp9 + for i in `ls BIN/` + install -p -m 755 BIN/s3 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-s3 + for i in `ls BIN/` + install -p -m 755 BIN/sds /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-sds + for i in `ls BIN/` + install -p -m 755 BIN/sigma /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-sigma + for i in `ls BIN/` + install -p -m 755 BIN/uc15 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-uc15 + for i in `ls BIN/` + install -p -m 755 BIN/vax /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-vax + for i in `ls BIN/` + install -p -m 755 BIN/vax780 /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-vax780 + mkdir -p /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh ++ find -iname '*.txt' + for i in `find -iname "*.txt"` + dos2unix -k ./sigma/sigma_disks.txt dos2unix: converting file ./sigma/sigma_disks.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./sigma/sigma_bugs.txt dos2unix: converting file ./sigma/sigma_bugs.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./0readme_ethernet.txt dos2unix: converting file ./0readme_ethernet.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./I1620/i1620_error_matrix.txt dos2unix: converting file ./I1620/i1620_error_matrix.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./ALTAIR/altair.txt dos2unix: converting file ./ALTAIR/altair.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./I7094/i7094_bug_history.txt dos2unix: converting file ./I7094/i7094_bug_history.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./NOVA/eclipse.txt dos2unix: converting file ./NOVA/eclipse.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./VAX/vax780_bug_history.txt dos2unix: converting file ./VAX/vax780_bug_history.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./S3/readme_s3.txt dos2unix: converting file ./S3/readme_s3.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./S3/haltguide.txt dos2unix: converting file ./S3/haltguide.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./S3/system3.txt dos2unix: converting file ./S3/system3.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./PDP18B/pdp18b_diag.txt dos2unix: converting file ./PDP18B/pdp18b_diag.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./0readme_311.txt dos2unix: converting file ./0readme_311.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./SDS/sds_diag.txt dos2unix: converting file ./SDS/sds_diag.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./PDP10/pdp10_bug_history.txt dos2unix: converting file ./PDP10/pdp10_bug_history.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./PDP1/pdp1_diag.txt dos2unix: converting file ./PDP1/pdp1_diag.txt to Unix format... + for i in `find -iname "*.txt"` + dos2unix -k ./Interdata/id_diag.txt dos2unix: converting file ./Interdata/id_diag.txt to Unix format... + /usr/lib/rpm/find-debuginfo.sh -j5 --strict-build-id -m -i --build-id-seed 3.11.0-14.fc33 --unique-debug-suffix -3.11.0-14.fc33.arm --unique-debug-src-base simh-3.11.0-14.fc33.arm --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/simh-3.11.0/sim explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-altair explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-eclipse explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-gri explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-h316 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i1401 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-h316 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-gri extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-eclipse extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i1401 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-altair explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i1620 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i1620 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i7094 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-id16 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-i7094 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-id16 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-id32 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-id32 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-lgp extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-lgp explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-nova extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-nova explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp10 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp11 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp10 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp11 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp15 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp15 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp4 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp4 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp7 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp7 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp8 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp8 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp9 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-pdp9 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-s3 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-s3 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-sds extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-sds explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-sigma extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-sigma explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-uc15 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-uc15 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-vax extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-vax explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-vax780 extracting debug info from /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/bin/simh-vax780 original debug info size: 20412kB, size after compression: 17492kB /usr/lib/rpm/sepdebugcrcfix: Updated 25 CRC32s, 0 CRC32s did match. 16821 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/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: simh-3.11.0-14.fc33.armv7hl Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.cvMCsw + umask 022 + cd /builddir/build/BUILD + cd simh-3.11.0/sim + DOCDIR=/builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr ALTAIR/altair.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr NOVA/eclipse.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr 0readme_311.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr 0readme_ethernet.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr I7094/i7094_bug_history.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr Interdata/id_diag.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr PDP1/pdp1_diag.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr PDP10/pdp10_bug_history.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr PDP18B/pdp18b_diag.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr S3/haltguide.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr S3/readme_s3.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr S3/system3.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr SDS/sds_diag.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + cp -pr VAX/vax780_bug_history.txt /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm/usr/share/doc/simh + RPM_EC=0 ++ jobs -p + exit 0 Provides: simh = 3.11.0-14.fc33 simh(armv7hl-32) = 3.11.0-14.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-armhf.so.3 ld-linux-armhf.so.3(GLIBC_2.4) libc.so.6 libc.so.6(GLIBC_2.11) libc.so.6(GLIBC_2.15) libc.so.6(GLIBC_2.28) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.7) libdl.so.2 libdl.so.2(GLIBC_2.4) libgcc_s.so.1 libgcc_s.so.1(GCC_3.5) libm.so.6 libm.so.6(GLIBC_2.4) libpcap.so.1 libpthread.so.0 libpthread.so.0(GLIBC_2.4) librt.so.1 librt.so.1(GLIBC_2.4) rtld(GNU_HASH) Processing files: simh-debugsource-3.11.0-14.fc33.armv7hl Provides: simh-debugsource = 3.11.0-14.fc33 simh-debugsource(armv7hl-32) = 3.11.0-14.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: simh-debuginfo-3.11.0-14.fc33.armv7hl Provides: debuginfo(build-id) = 0abfbf609ae54dafd3d970d6eb8b13b7fbf0b04e debuginfo(build-id) = 2057d6bf8eba794bb1ecdc300d55b923e8b7d6ed debuginfo(build-id) = 20a8e39dad54382e1e8120c31628c80a2edab77a debuginfo(build-id) = 2143f6badae1340f4742088dd8ce94093d1e1ebf debuginfo(build-id) = 22fb1b3001094e264b0575b90f16d1e03904271d debuginfo(build-id) = 243c479c18a65a0d0f6da302da9d6ca35e8b37d7 debuginfo(build-id) = 2582e9e2188fb64957ab6bf6c605b7e70d196426 debuginfo(build-id) = 2590545d8c3400b0c2320fea4024edbd78cf40cd debuginfo(build-id) = 2cdcaa53c70f490c6b848580852252af83a5e462 debuginfo(build-id) = 310d7195367273c1c70401414a72d5839bd21e03 debuginfo(build-id) = 448509a2faabebc2bad07a7b9649029aea33382c debuginfo(build-id) = 524790a1214adcf1366d4400dedab6e2b2096b2e debuginfo(build-id) = 7d465ee84f134db0703020ef929bd8f02c485da4 debuginfo(build-id) = 7fdb1e0eee28b5e9b4c1c655a974c88cabbbd11f debuginfo(build-id) = 912ab54654be59c284011485e35945cf3e1530df debuginfo(build-id) = 972247b0d6f303b7263b161a606eecdc3c62535f debuginfo(build-id) = 9af5404ef5b8c1ac4e3043ddd42da1678b63758e debuginfo(build-id) = a5156e97e94b1c16339324a3b7c2c9245d0c1f18 debuginfo(build-id) = ad2f531b1c48f0e6d2329a2aab209e3a01ed0801 debuginfo(build-id) = b42502ef6d574c9fa1a012684a3d644a8eb76b94 debuginfo(build-id) = d4dfd200ea2d02bdf3812b29d43f4f2784bb5836 debuginfo(build-id) = d6d2b1e622fa8196519cb325453d82eec10fd5b2 debuginfo(build-id) = daee89ebe098062b77911df557e53176f5f4faf0 debuginfo(build-id) = eb038b1d3991bab002a88283b6352f25fb61d699 debuginfo(build-id) = ffe95f0b49f425517ef50e2a28f3fc526da5ad46 simh-debuginfo = 3.11.0-14.fc33 simh-debuginfo(armv7hl-32) = 3.11.0-14.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: simh-debugsource(armv7hl-32) = 3.11.0-14.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm Wrote: /builddir/build/RPMS/simh-3.11.0-14.fc33.armv7hl.rpm Wrote: /builddir/build/RPMS/simh-debugsource-3.11.0-14.fc33.armv7hl.rpm Wrote: /builddir/build/RPMS/simh-debuginfo-3.11.0-14.fc33.armv7hl.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1565Cs + umask 022 + cd /builddir/build/BUILD + cd simh-3.11.0/sim + /usr/bin/rm -rf /builddir/build/BUILDROOT/simh-3.11.0-14.fc33.arm + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0