version:1 :debug:sysinfo macOS 10.14 (darwin/18.0.0) arch i386 :debug:sysinfo MacPorts 2.5.4 :debug:sysinfo Xcode 10.0 :debug:sysinfo SDK 10.14 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.14 :debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$ :debug:main epoch: in tree: 0 installed: 0 :debug:main libpcap 1.9.0_0 exists in the ports tree :debug:main libpcap 1.9.0_0 is the latest installed :debug:main libpcap 1.9.0_0 is active :debug:main Merging existing variants '' into variants :debug:main new fully merged portvariants: :debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/libpcap :debug:main OS darwin/18.0.0 (Mac OS X 10.14) arch i386 :debug:main adding the default universal variant :debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf :debug:main Running callback portconfigure::add_automatic_compiler_dependencies :debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies :debug:main Running callback portbuild::add_automatic_buildsystem_dependencies :debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies :debug:main Running callback portstartupitem::add_notes :debug:main Finished running callback portstartupitem::add_notes :debug:main No need to upgrade! libpcap 1.9.0_0 >= libpcap 1.9.0_0 :msg:main ---> Computing dependencies for simh:info:main .:debug:main simh has no conflicts :debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$ :debug:main Searching for dependency: unzip :debug:main Didn't find receipt, going to depspec regex for: unzip :debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$ :debug:main Searching for dependency: libpcap :debug:main Found Dependency: receipt exists for libpcap :debug:main Executing org.macports.main (simh) :debug:main dropping privileges: euid changed to 501, egid changed to 20. :debug:archivefetch archivefetch phase started at Sun Oct 7 11:30:25 EDT 2018 :msg:archivefetch ---> Fetching archive for simh :debug:archivefetch Executing org.macports.archivefetch (simh) :debug:archivefetch euid/egid changed to: 0/0 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports :debug:archivefetch euid/egid changed to: 501/20 :info:archivefetch ---> simh-v38-1_2.darwin_18.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified :msg:archivefetch ---> Attempting to fetch simh-v38-1_2.darwin_18.x86_64.tbz2 from https://packages.macports.org/simh :debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found :msg:archivefetch ---> Attempting to fetch simh-v38-1_2.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/simh :debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found :msg:archivefetch ---> Attempting to fetch simh-v38-1_2.darwin_18.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/simh :debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found :debug:archivefetch Privilege de-escalation not attempted as not running as root. :debug:fetch fetch phase started at Sun Oct 7 11:30:26 EDT 2018 :notice:fetch ---> Fetching distfiles for simh :debug:fetch Executing org.macports.fetch (simh) :debug:fetch Privilege de-escalation not attempted as not running as root. :debug:checksum checksum phase started at Sun Oct 7 11:30:26 EDT 2018 :notice:checksum ---> Verifying checksums for simh :debug:checksum Executing org.macports.checksum (simh) :info:checksum ---> Checksumming simhv38-1.zip :debug:checksum Calculated (md5) is e15f65a82e21ea49e14b438326d93d5c :debug:checksum Correct (md5) checksum for simhv38-1.zip :debug:checksum Calculated (sha1) is 5eac2f8e50be11600727983e05072690a7066702 :debug:checksum Correct (sha1) checksum for simhv38-1.zip :debug:checksum Calculated (rmd160) is f085c52ec92425f84f65b3f3605cb7aba8be7b32 :debug:checksum Correct (rmd160) checksum for simhv38-1.zip :debug:checksum Privilege de-escalation not attempted as not running as root. :debug:extract extract phase started at Sun Oct 7 11:30:26 EDT 2018 :notice:extract ---> Extracting simh :debug:extract Extracting to subdirectory worksrcdir :debug:extract setting option extract.cmd to /usr/bin/unzip :debug:extract setting option extract.pre_args to -q :debug:extract setting option extract.post_args to {-d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1} :debug:extract Executing org.macports.extract (simh) :info:extract ---> Extracting simhv38-1.zip :debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/simh/simhv38-1.zip' :debug:extract Environment: :debug:extract CC_PRINT_OPTIONS='YES' :debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/.CC_PRINT_OPTIONS' :debug:extract CPATH='/opt/local/include' :debug:extract LIBRARY_PATH='/opt/local/lib' :debug:extract MACOSX_DEPLOYMENT_TARGET='10.14' :info:extract Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1" && /usr/bin/unzip -q '/opt/local/var/macports/distfiles/simh/simhv38-1.zip' -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1 :debug:extract system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1" && /usr/bin/unzip -q '/opt/local/var/macports/distfiles/simh/simhv38-1.zip' -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1 :debug:extract euid/egid changed to: 0/0 :debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1 to macports :debug:extract euid/egid changed to: 501/20 :debug:extract Executing proc-post-org.macports.extract-extract-0 :info:extract ---> Patching makefile: s|/usr/local|/opt/local|g :debug:extract Executing reinplace: /usr/bin/sed s|/usr/local|/opt/local|g @file11 :debug:extract euid/egid changed to: 0/0 :debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1/makefile to macports :debug:extract euid/egid changed to: 501/20 :debug:extract euid/egid changed to: 0/0 :debug:extract setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1/makefile :debug:extract euid/egid changed to: 501/20 :debug:extract Privilege de-escalation not attempted as not running as root. :debug:patch patch phase started at Sun Oct 7 11:30:26 EDT 2018 :debug:patch Executing org.macports.patch (simh) :debug:patch Privilege de-escalation not attempted as not running as root. :debug:configure configure phase started at Sun Oct 7 11:30:26 EDT 2018 :notice:configure ---> Configuring simh :debug:configure Preferred compilers: clang macports-clang-5.0 macports-clang-4.0 :debug:configure Using compiler 'Xcode Clang' :debug:configure Executing org.macports.configure (simh) :debug:configure Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Sun Oct 7 11:30:26 EDT 2018 :notice:build ---> Building simh :debug:build Executing proc-pre-org.macports.build-build-0 :debug:build Executing org.macports.build (simh) :debug:build system: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1 && OSTYPE=darwin make USE_NETWORK=1 all :info:build gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . 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 -I PDP1 -o BIN/pdp1 :info:build PDP1/pdp1_cpu.c:548:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = sim_process_event ()) :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ :info:build PDP1/pdp1_cpu.c:548:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = sim_process_event ()) :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:548:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = sim_process_event ()) :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:612:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:612:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:612:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:614:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:614:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:614:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:620:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:620:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:620:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:622:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:622:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:622:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:628:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:628:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:628:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:630:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:630:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:630:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:640:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:640:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:640:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:642:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:642:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:642:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:650:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea_ch (IR, &byno)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP1/pdp1_cpu.c:650:24: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea_ch (IR, &byno)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:650:24: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea_ch (IR, &byno)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:652:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:652:24: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:652:24: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:661:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea_ch (IR, &byno)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP1/pdp1_cpu.c:661:24: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea_ch (IR, &byno)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:661:24: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea_ch (IR, &byno)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:663:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:663:24: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:663:24: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:685:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:685:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:685:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:687:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:687:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:687:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:693:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:693:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:693:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:695:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:695:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:695:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:701:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:701:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:701:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:708:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:708:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:708:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:710:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:710:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:710:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:717:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:717:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:717:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:719:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:719:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:719:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:726:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:726:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:726:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:733:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:733:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:733:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:757:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:757:24: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:757:24: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:759:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:759:24: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:759:24: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:771:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:771:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:771:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:773:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:773:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:773:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:786:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:786:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:786:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:788:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:788:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:788:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:800:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:800:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:800:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:802:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:802:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:802:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:812:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:812:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:812:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:814:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:814:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:814:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:826:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:826:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:826:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:828:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:828:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:828:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:835:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:835:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:835:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:837:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:837:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:837:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:865:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:865:24: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:865:24: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:873:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:873:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:873:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:891:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:891:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:891:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:893:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:893:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:893:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:921:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:921:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:921:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Ea (IR)) /* MA <- eff addr */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:923:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = Read ()) /* MB <- data */ :info:build ~~~~~~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:923:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:923:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = Read ()) /* MB <- data */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:1364:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = Read ()) /* read; err? */ :info:build ~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:1364:15: note: place parentheses around the assignment to silence this warning :info:build if (r = Read ()) /* read; err? */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:1364:15: note: use '==' to turn this assignment into an equality comparison :info:build if (r = Read ()) /* read; err? */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:1370:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = Read ()) /* get ind word */ :info:build ~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:1370:19: note: place parentheses around the assignment to silence this warning :info:build if (r = Read ()) /* get ind word */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:1370:19: note: use '==' to turn this assignment into an equality comparison :info:build if (r = Read ()) /* get ind word */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:1394:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = Read ()) /* read; err? */ :info:build ~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:1394:11: note: place parentheses around the assignment to silence this warning :info:build if (r = Read ()) /* read; err? */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:1394:11: note: use '==' to turn this assignment into an equality comparison :info:build if (r = Read ()) /* read; err? */ :info:build ^ :info:build == :info:build PDP1/pdp1_cpu.c:1399:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = Read ()) /* get ind word */ :info:build ~~^~~~~~~~~ :info:build PDP1/pdp1_cpu.c:1399:15: note: place parentheses around the assignment to silence this warning :info:build if (r = Read ()) /* get ind word */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_cpu.c:1399:15: note: use '==' to turn this assignment into an equality comparison :info:build if (r = Read ()) /* get ind word */ :info:build ^ :info:build == :info:build 48 warnings generated. :info:build PDP1/pdp1_dcs.c:254:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&dcs_ldsc[ln])) { /* get char */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP1/pdp1_dcs.c:254:15: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&dcs_ldsc[ln])) { /* get char */ :info:build ^ :info:build ( ) :info:build PDP1/pdp1_dcs.c:254:15: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&dcs_ldsc[ln])) { /* get char */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build In file included from scp.c:182: :info:build ./sim_rev.h:389:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.7 revision history :info:build ^ :info:build ./sim_rev.h:661:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.6 revision history :info:build ^ :info:build ./sim_rev.h:835:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.5 revision history :info:build ^ :info:build ./sim_rev.h:971:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.4 revision history :info:build ^ :info:build ./sim_rev.h:1009:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.3 revision history :info:build ^ :info:build ./sim_rev.h:1261:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.2 revision history :info:build ^ :info:build ./sim_rev.h:1460:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.1 revision history :info:build ^ :info:build ./sim_rev.h:1573:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.0 revision history :info:build ^ :info:build ./sim_rev.h:1739:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.10 revision history :info:build ^ :info:build ./sim_rev.h:2037:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.9 revision history :info:build ^ :info:build scp.c:665:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:665:12: note: place parentheses around the assignment to silence this warning :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build ( ) :info:build scp.c:665:12: note: use '==' to turn this assignment into an equality comparison :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build == :info:build scp.c:673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:673:14: note: place parentheses around the assignment to silence this warning :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build ( ) :info:build scp.c:673:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build == :info:build scp.c:686:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:686:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:686:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build == :info:build scp.c:753:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:753:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build ( ) :info:build scp.c:753:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build == :info:build scp.c:897:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:897:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:897:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build == :info:build scp.c:1077:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1077:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1077:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1082:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1082:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1082:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1088:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1088:16: note: place parentheses around the assignment to silence this warning :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1088:16: note: use '==' to turn this assignment into an equality comparison :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1096:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1096:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1096:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1109:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1109:35: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build ( ) :info:build scp.c:1109:35: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build == :info:build scp.c:1142:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1142:18: note: place parentheses around the assignment to silence this warning :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1142:18: note: use '==' to turn this assignment into an equality comparison :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build == :info:build scp.c:1333:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1333:11: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1333:11: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1336:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1336:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1336:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1341:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1341:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1341:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1361:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1361:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1361:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1380:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1380:19: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1380:19: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build == :info:build scp.c:1731:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1731:10: note: place parentheses around the assignment to silence this warning :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build ( ) :info:build scp.c:1731:10: note: use '==' to turn this assignment into an equality comparison :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build == :info:build scp.c:3567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3567:11: note: place parentheses around the assignment to silence this warning :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build ( ) :info:build scp.c:3567:11: note: use '==' to turn this assignment into an equality comparison :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build == :info:build scp.c:3650:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:3650:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build ( ) :info:build scp.c:3650:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build == :info:build scp.c:3730:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3730:14: note: place parentheses around the assignment to silence this warning :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build ( ) :info:build scp.c:3730:14: note: use '==' to turn this assignment into an equality comparison :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build == :info:build scp.c:3948:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ~~^~~~~~~~~ :info:build scp.c:3948:28: note: place parentheses around the assignment to silence this warning :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build ( ) :info:build scp.c:3948:28: note: use '==' to turn this assignment into an equality comparison :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build == :info:build scp.c:3949:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3949:14: note: place parentheses around the assignment to silence this warning :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build ( ) :info:build scp.c:3949:14: note: use '==' to turn this assignment into an equality comparison :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build == :info:build scp.c:3956:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3956:19: note: place parentheses around the assignment to silence this warning :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build ( ) :info:build scp.c:3956:19: note: use '==' to turn this assignment into an equality comparison :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build == :info:build scp.c:4621:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:4621:8: note: place parentheses around the assignment to silence this warning :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build ( ) :info:build scp.c:4621:8: note: use '==' to turn this assignment into an equality comparison :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build == :info:build 34 warnings generated. :info:build sim_console.c:164:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:164:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build sim_console.c:164:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build sim_console.c:167:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:167:15: note: place parentheses around the assignment to silence this warning :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build ( ) :info:build sim_console.c:167:15: note: use '==' to turn this assignment into an equality comparison :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build == :info:build sim_console.c:192:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:192:15: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build ( ) :info:build sim_console.c:192:15: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build == :info:build sim_console.c:461:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:461:7: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build ( ) :info:build sim_console.c:461:7: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build sim_tape.c:407:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:407:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:407:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build sim_tape.c:456:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:456:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:456:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . 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 scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -DPDP4 -I PDP18B -o BIN/pdp4 :info:build PDP18B/pdp18b_cpu.c:607:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = sim_process_event ()) :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_cpu.c:607:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = sim_process_event ()) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_cpu.c:607:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = sim_process_event ()) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_mt.c:356:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:356:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:356:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:366:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:366:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:366:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:375:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:375:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:375:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:385:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:385:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:385:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP18B/pdp18b_stddev.c:585:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (temp = temp & (temp - 1)) :info:build ~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:585:21: note: place parentheses around the assignment to silence this warning :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_stddev.c:585:21: note: use '==' to turn this assignment into an equality comparison :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_stddev.c:985:30: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~ ~~~~~~~~~~~~~^~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:985:30: note: place parentheses around the '&' expression to silence this warning :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~~~~~~~~~~~~~^~~~~~~~~~ :info:build 2 warnings generated. :info:build PDP18B/pdp18b_sys.c:1013:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sp = (inst & 03730)) :info:build ~~~^~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_sys.c:1013:20: note: place parentheses around the assignment to silence this warning :info:build if (sp = (inst & 03730)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_sys.c:1013:20: note: use '==' to turn this assignment into an equality comparison :info:build if (sp = (inst & 03730)) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_tt1.c:224:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_tt1.c:224:18: note: place parentheses around the assignment to silence this warning :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_tt1.c:224:18: note: use '==' to turn this assignment into an equality comparison :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_fpp.c:251:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:251:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:251:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:260:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:260:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:260:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:268:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:268:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:268:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:276:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:276:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:276:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:278:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:278:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:278:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:286:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:286:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:286:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:294:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:294:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:294:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:307:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:307:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:307:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:315:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:315:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:315:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:321:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:321:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:321:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:335:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = Read (ar, &dat, RD)) :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:335:21: note: place parentheses around the assignment to silence this warning :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:335:21: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:343:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:343:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:343:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:427:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:427:13: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:427:13: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build == :info:build 13 warnings generated. :info:build In file included from scp.c:182: :info:build ./sim_rev.h:389:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.7 revision history :info:build ^ :info:build ./sim_rev.h:661:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.6 revision history :info:build ^ :info:build ./sim_rev.h:835:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.5 revision history :info:build ^ :info:build ./sim_rev.h:971:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.4 revision history :info:build ^ :info:build ./sim_rev.h:1009:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.3 revision history :info:build ^ :info:build ./sim_rev.h:1261:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.2 revision history :info:build ^ :info:build ./sim_rev.h:1460:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.1 revision history :info:build ^ :info:build ./sim_rev.h:1573:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.0 revision history :info:build ^ :info:build ./sim_rev.h:1739:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.10 revision history :info:build ^ :info:build ./sim_rev.h:2037:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.9 revision history :info:build ^ :info:build scp.c:665:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:665:12: note: place parentheses around the assignment to silence this warning :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build ( ) :info:build scp.c:665:12: note: use '==' to turn this assignment into an equality comparison :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build == :info:build scp.c:673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:673:14: note: place parentheses around the assignment to silence this warning :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build ( ) :info:build scp.c:673:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build == :info:build scp.c:686:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:686:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:686:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build == :info:build scp.c:753:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:753:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build ( ) :info:build scp.c:753:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build == :info:build scp.c:897:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:897:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:897:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build == :info:build scp.c:1077:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1077:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1077:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1082:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1082:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1082:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1088:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1088:16: note: place parentheses around the assignment to silence this warning :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1088:16: note: use '==' to turn this assignment into an equality comparison :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1096:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1096:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1096:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1109:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1109:35: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build ( ) :info:build scp.c:1109:35: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build == :info:build scp.c:1142:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1142:18: note: place parentheses around the assignment to silence this warning :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1142:18: note: use '==' to turn this assignment into an equality comparison :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build == :info:build scp.c:1333:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1333:11: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1333:11: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1336:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1336:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1336:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1341:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1341:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1341:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1361:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1361:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1361:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1380:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1380:19: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1380:19: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build == :info:build scp.c:1731:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1731:10: note: place parentheses around the assignment to silence this warning :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build ( ) :info:build scp.c:1731:10: note: use '==' to turn this assignment into an equality comparison :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build == :info:build scp.c:3567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3567:11: note: place parentheses around the assignment to silence this warning :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build ( ) :info:build scp.c:3567:11: note: use '==' to turn this assignment into an equality comparison :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build == :info:build scp.c:3650:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:3650:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build ( ) :info:build scp.c:3650:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build == :info:build scp.c:3730:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3730:14: note: place parentheses around the assignment to silence this warning :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build ( ) :info:build scp.c:3730:14: note: use '==' to turn this assignment into an equality comparison :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build == :info:build scp.c:3948:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ~~^~~~~~~~~ :info:build scp.c:3948:28: note: place parentheses around the assignment to silence this warning :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build ( ) :info:build scp.c:3948:28: note: use '==' to turn this assignment into an equality comparison :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build == :info:build scp.c:3949:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3949:14: note: place parentheses around the assignment to silence this warning :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build ( ) :info:build scp.c:3949:14: note: use '==' to turn this assignment into an equality comparison :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build == :info:build scp.c:3956:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3956:19: note: place parentheses around the assignment to silence this warning :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build ( ) :info:build scp.c:3956:19: note: use '==' to turn this assignment into an equality comparison :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build == :info:build scp.c:4621:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:4621:8: note: place parentheses around the assignment to silence this warning :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build ( ) :info:build scp.c:4621:8: note: use '==' to turn this assignment into an equality comparison :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build == :info:build 34 warnings generated. :info:build sim_console.c:164:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:164:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build sim_console.c:164:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build sim_console.c:167:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:167:15: note: place parentheses around the assignment to silence this warning :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build ( ) :info:build sim_console.c:167:15: note: use '==' to turn this assignment into an equality comparison :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build == :info:build sim_console.c:192:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:192:15: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build ( ) :info:build sim_console.c:192:15: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build == :info:build sim_console.c:461:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:461:7: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build ( ) :info:build sim_console.c:461:7: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build sim_tape.c:407:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:407:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:407:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build sim_tape.c:456:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:456:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:456:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . 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 scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -DPDP7 -I PDP18B -o BIN/pdp7 :info:build PDP18B/pdp18b_cpu.c:607:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = sim_process_event ()) :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_cpu.c:607:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = sim_process_event ()) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_cpu.c:607:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = sim_process_event ()) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_mt.c:356:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:356:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:356:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:366:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:366:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:366:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:375:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:375:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:375:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:385:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:385:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:385:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP18B/pdp18b_stddev.c:585:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (temp = temp & (temp - 1)) :info:build ~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:585:21: note: place parentheses around the assignment to silence this warning :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_stddev.c:585:21: note: use '==' to turn this assignment into an equality comparison :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_stddev.c:985:30: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~ ~~~~~~~~~~~~~^~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:985:30: note: place parentheses around the '&' expression to silence this warning :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~~~~~~~~~~~~~^~~~~~~~~~ :info:build 2 warnings generated. :info:build PDP18B/pdp18b_sys.c:1013:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sp = (inst & 03730)) :info:build ~~~^~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_sys.c:1013:20: note: place parentheses around the assignment to silence this warning :info:build if (sp = (inst & 03730)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_sys.c:1013:20: note: use '==' to turn this assignment into an equality comparison :info:build if (sp = (inst & 03730)) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_tt1.c:224:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_tt1.c:224:18: note: place parentheses around the assignment to silence this warning :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_tt1.c:224:18: note: use '==' to turn this assignment into an equality comparison :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_fpp.c:251:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:251:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:251:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:260:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:260:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:260:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:268:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:268:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:268:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:276:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:276:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:276:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:278:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:278:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:278:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:286:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:286:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:286:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:294:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:294:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:294:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:307:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:307:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:307:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:315:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:315:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:315:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:321:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:321:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:321:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:335:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = Read (ar, &dat, RD)) :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:335:21: note: place parentheses around the assignment to silence this warning :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:335:21: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:343:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:343:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:343:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:427:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:427:13: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:427:13: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build == :info:build 13 warnings generated. :info:build In file included from scp.c:182: :info:build ./sim_rev.h:389:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.7 revision history :info:build ^ :info:build ./sim_rev.h:661:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.6 revision history :info:build ^ :info:build ./sim_rev.h:835:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.5 revision history :info:build ^ :info:build ./sim_rev.h:971:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.4 revision history :info:build ^ :info:build ./sim_rev.h:1009:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.3 revision history :info:build ^ :info:build ./sim_rev.h:1261:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.2 revision history :info:build ^ :info:build ./sim_rev.h:1460:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.1 revision history :info:build ^ :info:build ./sim_rev.h:1573:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.0 revision history :info:build ^ :info:build ./sim_rev.h:1739:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.10 revision history :info:build ^ :info:build ./sim_rev.h:2037:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.9 revision history :info:build ^ :info:build scp.c:665:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:665:12: note: place parentheses around the assignment to silence this warning :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build ( ) :info:build scp.c:665:12: note: use '==' to turn this assignment into an equality comparison :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build == :info:build scp.c:673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:673:14: note: place parentheses around the assignment to silence this warning :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build ( ) :info:build scp.c:673:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build == :info:build scp.c:686:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:686:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:686:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build == :info:build scp.c:753:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:753:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build ( ) :info:build scp.c:753:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build == :info:build scp.c:897:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:897:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:897:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build == :info:build scp.c:1077:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1077:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1077:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1082:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1082:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1082:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1088:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1088:16: note: place parentheses around the assignment to silence this warning :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1088:16: note: use '==' to turn this assignment into an equality comparison :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1096:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1096:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1096:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1109:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1109:35: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build ( ) :info:build scp.c:1109:35: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build == :info:build scp.c:1142:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1142:18: note: place parentheses around the assignment to silence this warning :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1142:18: note: use '==' to turn this assignment into an equality comparison :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build == :info:build scp.c:1333:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1333:11: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1333:11: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1336:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1336:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1336:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1341:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1341:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1341:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1361:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1361:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1361:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1380:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1380:19: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1380:19: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build == :info:build scp.c:1731:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1731:10: note: place parentheses around the assignment to silence this warning :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build ( ) :info:build scp.c:1731:10: note: use '==' to turn this assignment into an equality comparison :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build == :info:build scp.c:3567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3567:11: note: place parentheses around the assignment to silence this warning :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build ( ) :info:build scp.c:3567:11: note: use '==' to turn this assignment into an equality comparison :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build == :info:build scp.c:3650:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:3650:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build ( ) :info:build scp.c:3650:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build == :info:build scp.c:3730:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3730:14: note: place parentheses around the assignment to silence this warning :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build ( ) :info:build scp.c:3730:14: note: use '==' to turn this assignment into an equality comparison :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build == :info:build scp.c:3948:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ~~^~~~~~~~~ :info:build scp.c:3948:28: note: place parentheses around the assignment to silence this warning :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build ( ) :info:build scp.c:3948:28: note: use '==' to turn this assignment into an equality comparison :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build == :info:build scp.c:3949:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3949:14: note: place parentheses around the assignment to silence this warning :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build ( ) :info:build scp.c:3949:14: note: use '==' to turn this assignment into an equality comparison :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build == :info:build scp.c:3956:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3956:19: note: place parentheses around the assignment to silence this warning :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build ( ) :info:build scp.c:3956:19: note: use '==' to turn this assignment into an equality comparison :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build == :info:build scp.c:4621:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:4621:8: note: place parentheses around the assignment to silence this warning :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build ( ) :info:build scp.c:4621:8: note: use '==' to turn this assignment into an equality comparison :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build == :info:build 34 warnings generated. :info:build sim_console.c:164:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:164:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build sim_console.c:164:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build sim_console.c:167:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:167:15: note: place parentheses around the assignment to silence this warning :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build ( ) :info:build sim_console.c:167:15: note: use '==' to turn this assignment into an equality comparison :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build == :info:build sim_console.c:192:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:192:15: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build ( ) :info:build sim_console.c:192:15: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build == :info:build sim_console.c:461:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:461:7: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build ( ) :info:build sim_console.c:461:7: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build sim_tape.c:407:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:407:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:407:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build sim_tape.c:456:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:456:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:456:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . 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 -I PDP8 -o BIN/pdp8 :info:build PDP8/pdp8_cpu.c:347:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = sim_process_event ()) :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_cpu.c:347:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = sim_process_event ()) :info:build ^ :info:build ( ) :info:build PDP8/pdp8_cpu.c:347:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = sim_process_event ()) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP8/pdp8_dt.c:967:57: warning: '/*' within block comment [-Wcomment] :info:build /* /* ignore hdr */ :info:build ^ :info:build 1 warning generated. :info:build PDP8/pdp8_mt.c:123:57: warning: '/*' within block comment [-Wcomment] :info:build /* #define STA_BAD 00020 /* bad tape?? */ :info:build ^ :info:build PDP8/pdp8_mt.c:456:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) { /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_mt.c:456:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) { /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_mt.c:456:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) { /* write rec, err? */ :info:build ^ :info:build == :info:build PDP8/pdp8_mt.c:464:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_mt.c:464:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_mt.c:464:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP8/pdp8_mt.c:471:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_mt.c:471:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_mt.c:471:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build == :info:build PDP8/pdp8_mt.c:481:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_mt.c:481:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_mt.c:481:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build == :info:build 5 warnings generated. :info:build PDP8/pdp8_ttx.c:235:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_ttx.c:235:18: note: place parentheses around the assignment to silence this warning :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_ttx.c:235:18: note: use '==' to turn this assignment into an equality comparison :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP8/pdp8_ct.c:273:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = ct_busy ()) /* op in progress? */ :info:build ~~~~~^~~~~~~~~~~~ :info:build PDP8/pdp8_ct.c:273:18: note: place parentheses around the assignment to silence this warning :info:build if (uptr = ct_busy ()) /* op in progress? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_ct.c:273:18: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = ct_busy ()) /* op in progress? */ :info:build ^ :info:build == :info:build PDP8/pdp8_ct.c:436:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, ct_xb, ct_bptr)) /* write, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_ct.c:436:19: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, ct_xb, ct_bptr)) /* write, err? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_ct.c:436:19: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, ct_xb, ct_bptr)) /* write, err? */ :info:build ^ :info:build == :info:build PDP8/pdp8_ct.c:455:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_ct.c:455:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_ct.c:455:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP8/pdp8_ct.c:465:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP8/pdp8_ct.c:465:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rev, err? */ :info:build ^ :info:build ( ) :info:build PDP8/pdp8_ct.c:465:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rev, err? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP8/pdp8_fpp.c:1097:23: warning: if statement has empty body [-Wempty-body] :info:build if (b[0] & FPN_FRSIGN); /* |b| */ :info:build ^ :info:build PDP8/pdp8_fpp.c:1097:23: note: put the semicolon on a separate line to silence this warning :info:build 1 warning generated. :info:build In file included from scp.c:182: :info:build ./sim_rev.h:389:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.7 revision history :info:build ^ :info:build ./sim_rev.h:661:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.6 revision history :info:build ^ :info:build ./sim_rev.h:835:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.5 revision history :info:build ^ :info:build ./sim_rev.h:971:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.4 revision history :info:build ^ :info:build ./sim_rev.h:1009:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.3 revision history :info:build ^ :info:build ./sim_rev.h:1261:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.2 revision history :info:build ^ :info:build ./sim_rev.h:1460:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.1 revision history :info:build ^ :info:build ./sim_rev.h:1573:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.0 revision history :info:build ^ :info:build ./sim_rev.h:1739:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.10 revision history :info:build ^ :info:build ./sim_rev.h:2037:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.9 revision history :info:build ^ :info:build scp.c:665:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:665:12: note: place parentheses around the assignment to silence this warning :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build ( ) :info:build scp.c:665:12: note: use '==' to turn this assignment into an equality comparison :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build == :info:build scp.c:673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:673:14: note: place parentheses around the assignment to silence this warning :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build ( ) :info:build scp.c:673:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build == :info:build scp.c:686:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:686:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:686:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build == :info:build scp.c:753:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:753:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build ( ) :info:build scp.c:753:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build == :info:build scp.c:897:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:897:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:897:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build == :info:build scp.c:1077:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1077:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1077:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1082:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1082:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1082:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1088:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1088:16: note: place parentheses around the assignment to silence this warning :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1088:16: note: use '==' to turn this assignment into an equality comparison :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1096:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1096:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1096:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1109:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1109:35: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build ( ) :info:build scp.c:1109:35: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build == :info:build scp.c:1142:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1142:18: note: place parentheses around the assignment to silence this warning :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1142:18: note: use '==' to turn this assignment into an equality comparison :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build == :info:build scp.c:1333:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1333:11: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1333:11: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1336:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1336:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1336:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1341:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1341:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1341:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1361:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1361:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1361:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1380:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1380:19: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1380:19: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build == :info:build scp.c:1731:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1731:10: note: place parentheses around the assignment to silence this warning :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build ( ) :info:build scp.c:1731:10: note: use '==' to turn this assignment into an equality comparison :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build == :info:build scp.c:3567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3567:11: note: place parentheses around the assignment to silence this warning :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build ( ) :info:build scp.c:3567:11: note: use '==' to turn this assignment into an equality comparison :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build == :info:build scp.c:3650:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:3650:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build ( ) :info:build scp.c:3650:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build == :info:build scp.c:3730:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3730:14: note: place parentheses around the assignment to silence this warning :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build ( ) :info:build scp.c:3730:14: note: use '==' to turn this assignment into an equality comparison :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build == :info:build scp.c:3948:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ~~^~~~~~~~~ :info:build scp.c:3948:28: note: place parentheses around the assignment to silence this warning :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build ( ) :info:build scp.c:3948:28: note: use '==' to turn this assignment into an equality comparison :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build == :info:build scp.c:3949:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3949:14: note: place parentheses around the assignment to silence this warning :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build ( ) :info:build scp.c:3949:14: note: use '==' to turn this assignment into an equality comparison :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build == :info:build scp.c:3956:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3956:19: note: place parentheses around the assignment to silence this warning :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build ( ) :info:build scp.c:3956:19: note: use '==' to turn this assignment into an equality comparison :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build == :info:build scp.c:4621:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:4621:8: note: place parentheses around the assignment to silence this warning :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build ( ) :info:build scp.c:4621:8: note: use '==' to turn this assignment into an equality comparison :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build == :info:build 34 warnings generated. :info:build sim_console.c:164:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:164:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build sim_console.c:164:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build sim_console.c:167:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:167:15: note: place parentheses around the assignment to silence this warning :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build ( ) :info:build sim_console.c:167:15: note: use '==' to turn this assignment into an equality comparison :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build == :info:build sim_console.c:192:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:192:15: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build ( ) :info:build sim_console.c:192:15: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build == :info:build sim_console.c:461:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:461:7: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build ( ) :info:build sim_console.c:461:7: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build sim_tape.c:407:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:407:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:407:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build sim_tape.c:456:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:456:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:456:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . 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 scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -DPDP9 -I PDP18B -o BIN/pdp9 :info:build PDP18B/pdp18b_dt.c:1150:57: warning: '/*' within block comment [-Wcomment] :info:build /* /* ignore hdr */ :info:build ^ :info:build 1 warning generated. :info:build PDP18B/pdp18b_cpu.c:607:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = sim_process_event ()) :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_cpu.c:607:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = sim_process_event ()) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_cpu.c:607:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = sim_process_event ()) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_mt.c:356:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:356:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:356:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:366:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:366:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:366:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:375:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:375:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:375:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:385:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:385:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:385:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP18B/pdp18b_stddev.c:585:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (temp = temp & (temp - 1)) :info:build ~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:585:21: note: place parentheses around the assignment to silence this warning :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_stddev.c:585:21: note: use '==' to turn this assignment into an equality comparison :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_stddev.c:985:30: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~ ~~~~~~~~~~~~~^~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:985:30: note: place parentheses around the '&' expression to silence this warning :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~~~~~~~~~~~~~^~~~~~~~~~ :info:build 2 warnings generated. :info:build PDP18B/pdp18b_sys.c:1013:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sp = (inst & 03730)) :info:build ~~~^~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_sys.c:1013:20: note: place parentheses around the assignment to silence this warning :info:build if (sp = (inst & 03730)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_sys.c:1013:20: note: use '==' to turn this assignment into an equality comparison :info:build if (sp = (inst & 03730)) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_tt1.c:224:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_tt1.c:224:18: note: place parentheses around the assignment to silence this warning :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_tt1.c:224:18: note: use '==' to turn this assignment into an equality comparison :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_fpp.c:251:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:251:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:251:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:260:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:260:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:260:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:268:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:268:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:268:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:276:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:276:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:276:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:278:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:278:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:278:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:286:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:286:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:286:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:294:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:294:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:294:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:307:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:307:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:307:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:315:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:315:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:315:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:321:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:321:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:321:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:335:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = Read (ar, &dat, RD)) :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:335:21: note: place parentheses around the assignment to silence this warning :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:335:21: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:343:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:343:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:343:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:427:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:427:13: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:427:13: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build == :info:build 13 warnings generated. :info:build In file included from scp.c:182: :info:build ./sim_rev.h:389:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.7 revision history :info:build ^ :info:build ./sim_rev.h:661:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.6 revision history :info:build ^ :info:build ./sim_rev.h:835:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.5 revision history :info:build ^ :info:build ./sim_rev.h:971:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.4 revision history :info:build ^ :info:build ./sim_rev.h:1009:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.3 revision history :info:build ^ :info:build ./sim_rev.h:1261:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.2 revision history :info:build ^ :info:build ./sim_rev.h:1460:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.1 revision history :info:build ^ :info:build ./sim_rev.h:1573:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.0 revision history :info:build ^ :info:build ./sim_rev.h:1739:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.10 revision history :info:build ^ :info:build ./sim_rev.h:2037:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.9 revision history :info:build ^ :info:build scp.c:665:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:665:12: note: place parentheses around the assignment to silence this warning :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build ( ) :info:build scp.c:665:12: note: use '==' to turn this assignment into an equality comparison :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build == :info:build scp.c:673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:673:14: note: place parentheses around the assignment to silence this warning :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build ( ) :info:build scp.c:673:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build == :info:build scp.c:686:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:686:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:686:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build == :info:build scp.c:753:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:753:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build ( ) :info:build scp.c:753:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build == :info:build scp.c:897:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:897:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:897:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build == :info:build scp.c:1077:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1077:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1077:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1082:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1082:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1082:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1088:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1088:16: note: place parentheses around the assignment to silence this warning :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1088:16: note: use '==' to turn this assignment into an equality comparison :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1096:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1096:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1096:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1109:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1109:35: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build ( ) :info:build scp.c:1109:35: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build == :info:build scp.c:1142:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1142:18: note: place parentheses around the assignment to silence this warning :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1142:18: note: use '==' to turn this assignment into an equality comparison :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build == :info:build scp.c:1333:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1333:11: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1333:11: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1336:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1336:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1336:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1341:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1341:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1341:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1361:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1361:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1361:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1380:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1380:19: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1380:19: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build == :info:build scp.c:1731:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1731:10: note: place parentheses around the assignment to silence this warning :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build ( ) :info:build scp.c:1731:10: note: use '==' to turn this assignment into an equality comparison :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build == :info:build scp.c:3567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3567:11: note: place parentheses around the assignment to silence this warning :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build ( ) :info:build scp.c:3567:11: note: use '==' to turn this assignment into an equality comparison :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build == :info:build scp.c:3650:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:3650:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build ( ) :info:build scp.c:3650:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build == :info:build scp.c:3730:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3730:14: note: place parentheses around the assignment to silence this warning :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build ( ) :info:build scp.c:3730:14: note: use '==' to turn this assignment into an equality comparison :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build == :info:build scp.c:3948:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ~~^~~~~~~~~ :info:build scp.c:3948:28: note: place parentheses around the assignment to silence this warning :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build ( ) :info:build scp.c:3948:28: note: use '==' to turn this assignment into an equality comparison :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build == :info:build scp.c:3949:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3949:14: note: place parentheses around the assignment to silence this warning :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build ( ) :info:build scp.c:3949:14: note: use '==' to turn this assignment into an equality comparison :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build == :info:build scp.c:3956:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3956:19: note: place parentheses around the assignment to silence this warning :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build ( ) :info:build scp.c:3956:19: note: use '==' to turn this assignment into an equality comparison :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build == :info:build scp.c:4621:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:4621:8: note: place parentheses around the assignment to silence this warning :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build ( ) :info:build scp.c:4621:8: note: use '==' to turn this assignment into an equality comparison :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build == :info:build 34 warnings generated. :info:build sim_console.c:164:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:164:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build sim_console.c:164:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build sim_console.c:167:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:167:15: note: place parentheses around the assignment to silence this warning :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build ( ) :info:build sim_console.c:167:15: note: use '==' to turn this assignment into an equality comparison :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build == :info:build sim_console.c:192:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:192:15: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build ( ) :info:build sim_console.c:192:15: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build == :info:build sim_console.c:461:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:461:7: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build ( ) :info:build sim_console.c:461:7: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build sim_tape.c:407:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:407:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:407:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build sim_tape.c:456:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:456:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:456:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . 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 scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -DPDP15 -I PDP18B -o BIN/pdp15 :info:build PDP18B/pdp18b_dt.c:1150:57: warning: '/*' within block comment [-Wcomment] :info:build /* /* ignore hdr */ :info:build ^ :info:build 1 warning generated. :info:build PDP18B/pdp18b_cpu.c:607:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (reason = sim_process_event ()) :info:build ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_cpu.c:607:20: note: place parentheses around the assignment to silence this warning :info:build if (reason = sim_process_event ()) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_cpu.c:607:20: note: use '==' to turn this assignment into an equality comparison :info:build if (reason = sim_process_event ()) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_mt.c:356:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:356:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:356:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, mtxb, tbc)) /* write rec, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:366:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:366:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:366:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:375:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:375:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:375:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_mt.c:385:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_mt.c:385:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_mt.c:385:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP18B/pdp18b_stddev.c:585:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (temp = temp & (temp - 1)) :info:build ~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:585:21: note: place parentheses around the assignment to silence this warning :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_stddev.c:585:21: note: use '==' to turn this assignment into an equality comparison :info:build while (temp = temp & (temp - 1)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_stddev.c:985:30: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~ ~~~~~~~~~~~~~^~~~~~~~~~ :info:build PDP18B/pdp18b_stddev.c:985:30: note: place parentheses around the '&' expression to silence this warning :info:build dat = dat | tti_unit.buf & TTI_MASK; /* return buffer */ :info:build ~~~~~~~~~~~~~^~~~~~~~~~ :info:build 2 warnings generated. :info:build PDP18B/pdp18b_sys.c:1013:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sp = (inst & 03730)) :info:build ~~~^~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_sys.c:1013:20: note: place parentheses around the assignment to silence this warning :info:build if (sp = (inst & 03730)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_sys.c:1013:20: note: use '==' to turn this assignment into an equality comparison :info:build if (sp = (inst & 03730)) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_tt1.c:224:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_tt1.c:224:18: note: place parentheses around the assignment to silence this warning :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_tt1.c:224:18: note: use '==' to turn this assignment into an equality comparison :info:build if (temp = tmxr_getc_ln (&ttx_ldsc[ln])) { /* get char */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP18B/pdp18b_fpp.c:251:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:251:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:251:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:260:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:260:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:260:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:268:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:268:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:268:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:276:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:276:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:276:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:278:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:278:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:278:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) break; /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:286:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:286:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:286:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:294:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:294:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:294:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:307:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:307:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:307:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:315:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:315:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:315:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:321:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:321:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:321:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fma)) /* fetch op to FMA */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:335:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = Read (ar, &dat, RD)) :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:335:21: note: place parentheses around the assignment to silence this warning :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:335:21: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = Read (ar, &dat, RD)) :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:343:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:343:17: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:343:17: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_opnd (fir, ar, &fmb)) /* fetch op to FMB */ :info:build ^ :info:build == :info:build PDP18B/pdp18b_fpp.c:427:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP18B/pdp18b_fpp.c:427:13: note: place parentheses around the assignment to silence this warning :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build ( ) :info:build PDP18B/pdp18b_fpp.c:427:13: note: use '==' to turn this assignment into an equality comparison :info:build if (sta = fp15_norm (ir, a, NULL, 0)) /* normalize */ :info:build ^ :info:build == :info:build 13 warnings generated. :info:build In file included from scp.c:182: :info:build ./sim_rev.h:389:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.7 revision history :info:build ^ :info:build ./sim_rev.h:661:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.6 revision history :info:build ^ :info:build ./sim_rev.h:835:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.5 revision history :info:build ^ :info:build ./sim_rev.h:971:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.4 revision history :info:build ^ :info:build ./sim_rev.h:1009:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.3 revision history :info:build ^ :info:build ./sim_rev.h:1261:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.2 revision history :info:build ^ :info:build ./sim_rev.h:1460:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.1 revision history :info:build ^ :info:build ./sim_rev.h:1573:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.0 revision history :info:build ^ :info:build ./sim_rev.h:1739:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.10 revision history :info:build ^ :info:build ./sim_rev.h:2037:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.9 revision history :info:build ^ :info:build scp.c:665:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:665:12: note: place parentheses around the assignment to silence this warning :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build ( ) :info:build scp.c:665:12: note: use '==' to turn this assignment into an equality comparison :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build == :info:build scp.c:673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:673:14: note: place parentheses around the assignment to silence this warning :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build ( ) :info:build scp.c:673:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build == :info:build scp.c:686:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:686:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:686:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build == :info:build scp.c:753:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:753:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build ( ) :info:build scp.c:753:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build == :info:build scp.c:897:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:897:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:897:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build == :info:build scp.c:1077:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1077:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1077:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1082:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1082:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1082:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1088:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1088:16: note: place parentheses around the assignment to silence this warning :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1088:16: note: use '==' to turn this assignment into an equality comparison :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1096:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1096:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1096:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1109:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1109:35: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build ( ) :info:build scp.c:1109:35: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build == :info:build scp.c:1142:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1142:18: note: place parentheses around the assignment to silence this warning :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1142:18: note: use '==' to turn this assignment into an equality comparison :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build == :info:build scp.c:1333:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1333:11: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1333:11: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1336:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1336:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1336:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1341:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1341:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1341:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1361:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1361:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1361:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1380:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1380:19: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1380:19: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build == :info:build scp.c:1731:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1731:10: note: place parentheses around the assignment to silence this warning :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build ( ) :info:build scp.c:1731:10: note: use '==' to turn this assignment into an equality comparison :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build == :info:build scp.c:3567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3567:11: note: place parentheses around the assignment to silence this warning :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build ( ) :info:build scp.c:3567:11: note: use '==' to turn this assignment into an equality comparison :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build == :info:build scp.c:3650:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:3650:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build ( ) :info:build scp.c:3650:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build == :info:build scp.c:3730:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3730:14: note: place parentheses around the assignment to silence this warning :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build ( ) :info:build scp.c:3730:14: note: use '==' to turn this assignment into an equality comparison :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build == :info:build scp.c:3948:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ~~^~~~~~~~~ :info:build scp.c:3948:28: note: place parentheses around the assignment to silence this warning :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build ( ) :info:build scp.c:3948:28: note: use '==' to turn this assignment into an equality comparison :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build == :info:build scp.c:3949:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3949:14: note: place parentheses around the assignment to silence this warning :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build ( ) :info:build scp.c:3949:14: note: use '==' to turn this assignment into an equality comparison :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build == :info:build scp.c:3956:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3956:19: note: place parentheses around the assignment to silence this warning :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build ( ) :info:build scp.c:3956:19: note: use '==' to turn this assignment into an equality comparison :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build == :info:build scp.c:4621:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:4621:8: note: place parentheses around the assignment to silence this warning :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build ( ) :info:build scp.c:4621:8: note: use '==' to turn this assignment into an equality comparison :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build == :info:build 34 warnings generated. :info:build sim_console.c:164:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:164:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build sim_console.c:164:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build sim_console.c:167:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:167:15: note: place parentheses around the assignment to silence this warning :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build ( ) :info:build sim_console.c:167:15: note: use '==' to turn this assignment into an equality comparison :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build == :info:build sim_console.c:192:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:192:15: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build ( ) :info:build sim_console.c:192:15: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build == :info:build sim_console.c:461:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:461:7: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build ( ) :info:build sim_console.c:461:7: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build sim_tape.c:407:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:407:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:407:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build sim_tape.c:456:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:456:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:456:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . 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_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 -DVM_PDP11 -I PDP11 -DUSE_NETWORK -isystem /opt/local/include /opt/local/lib/libpcap.a -o BIN/pdp11 :info:build PDP11/pdp11_fp.c:441:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sign = GET_SIGN_L (fac.l)) :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_fp.c:441:22: note: place parentheses around the assignment to silence this warning :info:build if (sign = GET_SIGN_L (fac.l)) :info:build ^ :info:build ( ) :info:build PDP11/pdp11_fp.c:441:22: note: use '==' to turn this assignment into an equality comparison :info:build if (sign = GET_SIGN_L (fac.l)) :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP11/pdp11_cpu.c:733:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = trap_req & TRAP_ALL) { /* if a trap */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_cpu.c:733:15: note: place parentheses around the assignment to silence this warning :info:build if (t = trap_req & TRAP_ALL) { /* if a trap */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_cpu.c:733:15: note: use '==' to turn this assignment into an equality comparison :info:build if (t = trap_req & TRAP_ALL) { /* if a trap */ :info:build ^ :info:build == :info:build PDP11/pdp11_cpu.c:1294:32: warning: '&&' within '||' [-Wlogical-op-parentheses] :info:build if (CPUT (HAS_CSM) && (MMR3 & MMR3_CSM) || (cm != MD_KER)) { :info:build ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ~~ :info:build PDP11/pdp11_cpu.c:1294:32: note: place parentheses around the '&&' expression to silence this warning :info:build if (CPUT (HAS_CSM) && (MMR3 & MMR3_CSM) || (cm != MD_KER)) { :info:build ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build 2 warnings generated. :info:build PDP11/pdp11_cis.c:1137:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dst.sign = GET_SIGN_L (result)) :info:build ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_cis.c:1137:22: note: place parentheses around the assignment to silence this warning :info:build if (dst.sign = GET_SIGN_L (result)) :info:build ^ :info:build ( ) :info:build PDP11/pdp11_cis.c:1137:22: note: use '==' to turn this assignment into an equality comparison :info:build if (dst.sign = GET_SIGN_L (result)) :info:build ^ :info:build == :info:build PDP11/pdp11_cis.c:1270:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dst->val[i] = dst->val[i] & ~mask) /* test nz */ :info:build ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_cis.c:1270:21: note: place parentheses around the assignment to silence this warning :info:build if (dst->val[i] = dst->val[i] & ~mask) /* test nz */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_cis.c:1270:21: note: use '==' to turn this assignment into an equality comparison :info:build if (dst->val[i] = dst->val[i] & ~mask) /* test nz */ :info:build ^ :info:build == :info:build PDP11/pdp11_cis.c:1526:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (s = sc * 4) { :info:build ~~^~~~~~~~ :info:build PDP11/pdp11_cis.c:1526:7: note: place parentheses around the assignment to silence this warning :info:build if (s = sc * 4) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_cis.c:1526:7: note: use '==' to turn this assignment into an equality comparison :info:build if (s = sc * 4) { :info:build ^ :info:build == :info:build PDP11/pdp11_cis.c:1551:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (s = sc * 4) { :info:build ~~^~~~~~~~ :info:build PDP11/pdp11_cis.c:1551:7: note: place parentheses around the assignment to silence this warning :info:build if (s = sc * 4) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_cis.c:1551:7: note: use '==' to turn this assignment into an equality comparison :info:build if (s = sc * 4) { :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP11/pdp11_rk.c:547:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteW (ma, 2, &rkxb[wc - 1])) { /* store last */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rk.c:547:19: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteW (ma, 2, &rkxb[wc - 1])) { /* store last */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rk.c:547:19: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteW (ma, 2, &rkxb[wc - 1])) { /* store last */ :info:build ^ :info:build == :info:build PDP11/pdp11_rk.c:553:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteW (ma, wc << 1, rkxb)) { /* store buf */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rk.c:553:19: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteW (ma, wc << 1, rkxb)) { /* store buf */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rk.c:553:19: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteW (ma, wc << 1, rkxb)) { /* store buf */ :info:build ^ :info:build == :info:build PDP11/pdp11_rk.c:562:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_ReadW (ma, 2, &comp)) { /* get 1st word */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rk.c:562:19: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_ReadW (ma, 2, &comp)) { /* get 1st word */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rk.c:562:19: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_ReadW (ma, 2, &comp)) { /* get 1st word */ :info:build ^ :info:build == :info:build PDP11/pdp11_rk.c:570:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_ReadW (ma, wc << 1, rkxb)) { /* get buf */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rk.c:570:19: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_ReadW (ma, wc << 1, rkxb)) { /* get buf */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rk.c:570:19: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_ReadW (ma, wc << 1, rkxb)) { /* get buf */ :info:build ^ :info:build == :info:build PDP11/pdp11_rk.c:586:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (err = ferror (uptr->fileref)) { /* read error? */ :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rk.c:586:17: note: place parentheses around the assignment to silence this warning :info:build if (err = ferror (uptr->fileref)) { /* read error? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rk.c:586:17: note: use '==' to turn this assignment into an equality comparison :info:build if (err = ferror (uptr->fileref)) { /* read error? */ :info:build ^ :info:build == :info:build 5 warnings generated. :info:build PDP11/pdp11_rl.c:505:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteW (ma, wc << 1, rlxb)) { /* store buffer */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rl.c:505:11: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteW (ma, wc << 1, rlxb)) { /* store buffer */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rl.c:505:11: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteW (ma, wc << 1, rlxb)) { /* store buffer */ :info:build ^ :info:build == :info:build PDP11/pdp11_rl.c:512:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_ReadW (ma, wc << 1, rlxb)) { /* fetch buffer */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rl.c:512:11: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_ReadW (ma, wc << 1, rlxb)) { /* fetch buffer */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rl.c:512:11: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_ReadW (ma, wc << 1, rlxb)) { /* fetch buffer */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build PDP11/pdp11_sys.c:995:41: warning: '&&' within '||' [-Wlogical-op-parentheses] :info:build if ((disp & 1) || (disp > 0400) && (disp < 0177402)) :info:build ~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_sys.c:995:41: note: place parentheses around the '&&' expression to silence this warning :info:build if ((disp & 1) || (disp > 0400) && (disp < 0177402)) :info:build ^ :info:build ( ) :info:build PDP11/pdp11_sys.c:1073:56: warning: for loop has empty body [-Wempty-body] :info:build (strcmp (opcode[i], gbuf) != 0) ; i++) ; :info:build ^ :info:build PDP11/pdp11_sys.c:1073:56: note: put the semicolon on a separate line to silence this warning :info:build 2 warnings generated. :info:build PDP11/pdp11_tc.c:995:57: warning: '/*' within block comment [-Wcomment] :info:build /* else /* ignore hdr */ :info:build ^ :info:build 1 warning generated. :info:build PDP11/pdp11_tm.c:381:9: warning: '/*' within block comment [-Wcomment] :info:build /* else /* uncomment this else if rewind/unload don't set done */ :info:build ^ :info:build PDP11/pdp11_tm.c:443:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteB (xma, cbc, tmxb)) { /* copy buf to mem */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tm.c:443:15: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteB (xma, cbc, tmxb)) { /* copy buf to mem */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tm.c:443:15: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteB (xma, cbc, tmxb)) { /* copy buf to mem */ :info:build ^ :info:build == :info:build PDP11/pdp11_tm.c:453:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_ReadB (xma, cbc, tmxb)) { /* copy mem to buf */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tm.c:453:15: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_ReadB (xma, cbc, tmxb)) { /* copy mem to buf */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tm.c:453:15: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_ReadB (xma, cbc, tmxb)) { /* copy mem to buf */ :info:build ^ :info:build == :info:build PDP11/pdp11_tm.c:459:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, tmxb, cbc)) /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tm.c:459:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, tmxb, cbc)) /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tm.c:459:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, tmxb, cbc)) /* write rec, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tm.c:468:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tm.c:468:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tm.c:468:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tm.c:475:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* spc rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tm.c:475:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* spc rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tm.c:475:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* spc rec fwd, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tm.c:485:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* spc rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tm.c:485:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* spc rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tm.c:485:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* spc rec rev, err? */ :info:build ^ :info:build == :info:build 7 warnings generated. :info:build PDP11/pdp11_ts.c:490:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) /* space rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ts.c:490:12: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) /* space rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ts.c:490:12: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) /* space rec fwd, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_ts.c:533:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ts.c:533:12: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ts.c:533:12: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rec rev, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_ts.c:666:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, tsxb, fc)) /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ts.c:666:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, tsxb, fc)) /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ts.c:666:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, tsxb, fc)) /* write rec, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_ts.c:679:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ts.c:679:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ts.c:679:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP11/pdp11_io.c:362:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = cpu_build_dib ()) /* build CPU entries */ :info:build ~~^~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_io.c:362:7: note: place parentheses around the assignment to silence this warning :info:build if (r = cpu_build_dib ()) /* build CPU entries */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_io.c:362:7: note: use '==' to turn this assignment into an equality comparison :info:build if (r = cpu_build_dib ()) /* build CPU entries */ :info:build ^ :info:build == :info:build PDP11/pdp11_io.c:368:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = build_mbus_tab (dptr, dibp)) /* add to Mbus tab */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_io.c:368:19: note: place parentheses around the assignment to silence this warning :info:build if (r = build_mbus_tab (dptr, dibp)) /* add to Mbus tab */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_io.c:368:19: note: use '==' to turn this assignment into an equality comparison :info:build if (r = build_mbus_tab (dptr, dibp)) /* add to Mbus tab */ :info:build ^ :info:build == :info:build PDP11/pdp11_io.c:372:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = build_ubus_tab (dptr, dibp)) /* add to Unibus tab */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_io.c:372:19: note: place parentheses around the assignment to silence this warning :info:build if (r = build_ubus_tab (dptr, dibp)) /* add to Unibus tab */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_io.c:372:19: note: use '==' to turn this assignment into an equality comparison :info:build if (r = build_ubus_tab (dptr, dibp)) /* add to Unibus tab */ :info:build ^ :info:build == :info:build 3 warnings generated. :info:build In file included from PDP11/pdp11_rq.c:98: :info:build PDP11/pdp11_mscp.h:213:57: warning: '/*' within block comment [-Wcomment] :info:build /* 5 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:258:57: warning: '/*' within block comment [-Wcomment] :info:build /* 8 - 15 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:265:57: warning: '/*' within block comment [-Wcomment] :info:build /* 8 - 15 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:401:57: warning: '/*' within block comment [-Wcomment] :info:build /* 14 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:402:57: warning: '/*' within block comment [-Wcomment] :info:build /* 15 /* reserved */ :info:build ^ :info:build PDP11/pdp11_rq.c:1335:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = rq_getucb (cp, lu)) { /* get unit */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1335:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = rq_getucb (cp, lu)) { /* get unit */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1335:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = rq_getucb (cp, lu)) { /* get unit */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1348:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (prv = uptr->pktq) { /* srch pkt q */ :info:build ~~~~^~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1348:18: note: place parentheses around the assignment to silence this warning :info:build else if (prv = uptr->pktq) { /* srch pkt q */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1348:18: note: use '==' to turn this assignment into an equality comparison :info:build else if (prv = uptr->pktq) { /* srch pkt q */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1349:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (tpkt = cp->pak[prv].link) { /* walk list */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1349:21: note: place parentheses around the assignment to silence this warning :info:build while (tpkt = cp->pak[prv].link) { /* walk list */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1349:21: note: use '==' to turn this assignment into an equality comparison :info:build while (tpkt = cp->pak[prv].link) { /* walk list */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1376:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1376:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1376:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1430:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1430:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1430:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1465:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1465:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1465:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1503:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cp->htmo = cp->pak[pkt].d[SCC_TMO]) /* set timeout */ :info:build ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1503:18: note: place parentheses around the assignment to silence this warning :info:build if (cp->htmo = cp->pak[pkt].d[SCC_TMO]) /* set timeout */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1503:18: note: use '==' to turn this assignment into an equality comparison :info:build if (cp->htmo = cp->pak[pkt].d[SCC_TMO]) /* set timeout */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1530:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1530:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1530:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1559:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1559:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1559:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1593:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1593:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1593:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = rq_getucb (cp, lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1637:57: warning: '/*' within block comment [-Wcomment] :info:build /* if (lbn & 0xF0000000) return (ST_CMD | I_LBN); /* 'reasonable' lbn? */ :info:build ^ :info:build PDP11/pdp11_rq.c:1708:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (abc = tbc - t) { /* any xfer? */ :info:build ~~~~^~~~~~~~~ :info:build PDP11/pdp11_rq.c:1708:13: note: place parentheses around the assignment to silence this warning :info:build if (abc = tbc - t) { /* any xfer? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1708:13: note: use '==' to turn this assignment into an equality comparison :info:build if (abc = tbc - t) { /* any xfer? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:1735:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteW (ba, tbc, rqxb)) { /* store, nxm? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:1735:15: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteW (ba, tbc, rqxb)) { /* store, nxm? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:1735:15: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteW (ba, tbc, rqxb)) { /* store, nxm? */ :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:2569:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (pkt = uptr->pktq) { :info:build ~~~~^~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:2569:13: note: place parentheses around the assignment to silence this warning :info:build if (pkt = uptr->pktq) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:2569:13: note: use '==' to turn this assignment into an equality comparison :info:build if (pkt = uptr->pktq) { :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:2573:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build } while (pkt = cp->pak[pkt].link); :info:build ~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:2573:26: note: place parentheses around the assignment to silence this warning :info:build } while (pkt = cp->pak[pkt].link); :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:2573:26: note: use '==' to turn this assignment into an equality comparison :info:build } while (pkt = cp->pak[pkt].link); :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:2600:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (pkt = cp->freq) { :info:build ~~~~^~~~~~~~~~ :info:build PDP11/pdp11_rq.c:2600:13: note: place parentheses around the assignment to silence this warning :info:build if (pkt = cp->freq) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:2600:13: note: use '==' to turn this assignment into an equality comparison :info:build if (pkt = cp->freq) { :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:2613:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (pkt = cp->rspq) { :info:build ~~~~^~~~~~~~~~ :info:build PDP11/pdp11_rq.c:2613:13: note: place parentheses around the assignment to silence this warning :info:build if (pkt = cp->rspq) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:2613:13: note: use '==' to turn this assignment into an equality comparison :info:build if (pkt = cp->rspq) { :info:build ^ :info:build == :info:build PDP11/pdp11_rq.c:2617:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build } while (pkt = cp->pak[pkt].link); :info:build ~~~~^~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_rq.c:2617:26: note: place parentheses around the assignment to silence this warning :info:build } while (pkt = cp->pak[pkt].link); :info:build ^ :info:build ( ) :info:build PDP11/pdp11_rq.c:2617:26: note: use '==' to turn this assignment into an equality comparison :info:build } while (pkt = cp->pak[pkt].link); :info:build ^ :info:build == :info:build 23 warnings generated. :info:build In file included from PDP11/pdp11_tq.c:70: :info:build PDP11/pdp11_mscp.h:213:57: warning: '/*' within block comment [-Wcomment] :info:build /* 5 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:258:57: warning: '/*' within block comment [-Wcomment] :info:build /* 8 - 15 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:265:57: warning: '/*' within block comment [-Wcomment] :info:build /* 8 - 15 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:401:57: warning: '/*' within block comment [-Wcomment] :info:build /* 14 /* reserved */ :info:build ^ :info:build PDP11/pdp11_mscp.h:402:57: warning: '/*' within block comment [-Wcomment] :info:build /* 15 /* reserved */ :info:build ^ :info:build PDP11/pdp11_tq.c:729:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* valid unit? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:729:14: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* valid unit? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:729:14: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* valid unit? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:735:57: warning: '/*' within block comment [-Wcomment] :info:build /* if (tq_cmf[cmd] & MD_CDL) /* clr cch lost? */ :info:build ^ :info:build PDP11/pdp11_tq.c:807:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* get unit */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:807:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* get unit */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:807:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* get unit */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:820:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (prv = uptr->pktq) { /* srch pkt q */ :info:build ~~~~^~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:820:18: note: place parentheses around the assignment to silence this warning :info:build else if (prv = uptr->pktq) { /* srch pkt q */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:820:18: note: use '==' to turn this assignment into an equality comparison :info:build else if (prv = uptr->pktq) { /* srch pkt q */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:821:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (tpkt = tq_pkt[prv].link) { /* walk list */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:821:21: note: place parentheses around the assignment to silence this warning :info:build while (tpkt = tq_pkt[prv].link) { /* walk list */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:821:21: note: use '==' to turn this assignment into an equality comparison :info:build while (tpkt = tq_pkt[prv].link) { /* walk list */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:849:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:849:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:849:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:904:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:904:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:904:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:929:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:929:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:929:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:958:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (tq_htmo = tq_pkt[pkt].d[SCC_TMO]) /* set timeout */ :info:build ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:958:17: note: place parentheses around the assignment to silence this warning :info:build if (tq_htmo = tq_pkt[pkt].d[SCC_TMO]) /* set timeout */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:958:17: note: use '==' to turn this assignment into an equality comparison :info:build if (tq_htmo = tq_pkt[pkt].d[SCC_TMO]) /* set timeout */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:982:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:982:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:982:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:1004:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:1004:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:1004:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:1020:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:1020:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:1020:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:1041:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:1041:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:1041:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:1064:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:1064:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:1064:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:1091:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ~~~~~^~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:1091:10: note: place parentheses around the assignment to silence this warning :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:1091:10: note: use '==' to turn this assignment into an equality comparison :info:build if (uptr = tq_getucb (lu)) { /* unit exist? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:1193:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteB (ba, wbc, tqxb)) { /* store, nxm? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:1193:19: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteB (ba, wbc, tqxb)) { /* store, nxm? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:1193:19: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteB (ba, wbc, tqxb)) { /* store, nxm? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:1230:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_ReadB (ba, bc, tqxb)) { /* fetch buf, nxm? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:1230:15: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_ReadB (ba, bc, tqxb)) { /* fetch buf, nxm? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:1230:15: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_ReadB (ba, bc, tqxb)) { /* fetch buf, nxm? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:2166:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (pkt = uptr->pktq) { :info:build ~~~~^~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:2166:13: note: place parentheses around the assignment to silence this warning :info:build if (pkt = uptr->pktq) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:2166:13: note: use '==' to turn this assignment into an equality comparison :info:build if (pkt = uptr->pktq) { :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:2170:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build } while (pkt = tq_pkt[pkt].link); :info:build ~~~~^~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:2170:26: note: place parentheses around the assignment to silence this warning :info:build } while (pkt = tq_pkt[pkt].link); :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:2170:26: note: use '==' to turn this assignment into an equality comparison :info:build } while (pkt = tq_pkt[pkt].link); :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:2195:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (pkt = tq_freq) { :info:build ~~~~^~~~~~~~~ :info:build PDP11/pdp11_tq.c:2195:13: note: place parentheses around the assignment to silence this warning :info:build if (pkt = tq_freq) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:2195:13: note: use '==' to turn this assignment into an equality comparison :info:build if (pkt = tq_freq) { :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:2208:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (pkt = tq_rspq) { :info:build ~~~~^~~~~~~~~ :info:build PDP11/pdp11_tq.c:2208:13: note: place parentheses around the assignment to silence this warning :info:build if (pkt = tq_rspq) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:2208:13: note: use '==' to turn this assignment into an equality comparison :info:build if (pkt = tq_rspq) { :info:build ^ :info:build == :info:build PDP11/pdp11_tq.c:2212:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build } while (pkt = tq_pkt[pkt].link); :info:build ~~~~^~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tq.c:2212:26: note: place parentheses around the assignment to silence this warning :info:build } while (pkt = tq_pkt[pkt].link); :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tq.c:2212:26: note: use '==' to turn this assignment into an equality comparison :info:build } while (pkt = tq_pkt[pkt].link); :info:build ^ :info:build == :info:build 27 warnings generated. :info:build PDP11/pdp11_hk.c:889:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_ReadW (ba, 2, &comp)) { /* get 1st wd */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_hk.c:889:23: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_ReadW (ba, 2, &comp)) { /* get 1st wd */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_hk.c:889:23: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_ReadW (ba, 2, &comp)) { /* get 1st wd */ :info:build ^ :info:build == :info:build PDP11/pdp11_hk.c:897:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_ReadW (ba, wc << 1, hkxb)) { /* get buf */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_hk.c:897:23: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_ReadW (ba, wc << 1, hkxb)) { /* get buf */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_hk.c:897:23: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_ReadW (ba, wc << 1, hkxb)) { /* get buf */ :info:build ^ :info:build == :info:build PDP11/pdp11_hk.c:917:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteW (ba, 2, &hkxb[wc - 1])) { :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_hk.c:917:23: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteW (ba, 2, &hkxb[wc - 1])) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_hk.c:917:23: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteW (ba, 2, &hkxb[wc - 1])) { :info:build ^ :info:build == :info:build PDP11/pdp11_hk.c:923:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (t = Map_WriteW (ba, wc << 1, hkxb)) { /* put buf */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_hk.c:923:23: note: place parentheses around the assignment to silence this warning :info:build if (t = Map_WriteW (ba, wc << 1, hkxb)) { /* put buf */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_hk.c:923:23: note: use '==' to turn this assignment into an equality comparison :info:build if (t = Map_WriteW (ba, wc << 1, hkxb)) { /* put buf */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP11/pdp11_xq.c:1000:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (led = (len & XQ_SETUP_LD) >> 2) { :info:build ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_xq.c:1000:13: note: place parentheses around the assignment to silence this warning :info:build if (led = (len & XQ_SETUP_LD) >> 2) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_xq.c:1000:13: note: use '==' to turn this assignment into an equality comparison :info:build if (led = (len & XQ_SETUP_LD) >> 2) { :info:build ^ :info:build == :info:build PDP11/pdp11_xq.c:1563:11: warning: enumeration value 'XQ_T_DELQA' not handled in switch [-Wswitch] :info:build switch (xq->var->type) { :info:build ^ :info:build PDP11/pdp11_xq.c:1563:11: note: add missing switch cases :info:build switch (xq->var->type) { :info:build ^ :info:build 2 warnings generated. :info:build PDP11/pdp11_xu.c:926:24: warning: '/*' within block comment [-Wcomment] :info:build /* xu_dump_rxring(xu); /* debug receive ring */ :info:build ^ :info:build PDP11/pdp11_xu.c:1098:24: warning: '/*' within block comment [-Wcomment] :info:build /* xu_dump_txring(xu); /* debug receive ring */ :info:build ^ :info:build 2 warnings generated. :info:build PDP11/pdp11_vh.c:678:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build while (c = tmxr_getc_ln (lp->tmln)) { :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_vh.c:678:12: note: place parentheses around the assignment to silence this warning :info:build while (c = tmxr_getc_ln (lp->tmln)) { :info:build ^ :info:build ( ) :info:build PDP11/pdp11_vh.c:678:12: note: use '==' to turn this assignment into an equality comparison :info:build while (c = tmxr_getc_ln (lp->tmln)) { :info:build ^ :info:build == :info:build PDP11/pdp11_vh.c:789:33: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build (vh_csr[vh] & ~0377) | data & 0377; :info:build ~ ~~~~~^~~~~~ :info:build PDP11/pdp11_vh.c:789:33: note: place parentheses around the '&' expression to silence this warning :info:build (vh_csr[vh] & ~0377) | data & 0377; :info:build ^ :info:build ( ) :info:build PDP11/pdp11_vh.c:880:30: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build (lp->lpr & ~0377) | data & 0377; :info:build ~ ~~~~~^~~~~~ :info:build PDP11/pdp11_vh.c:880:30: note: place parentheses around the '&' expression to silence this warning :info:build (lp->lpr & ~0377) | data & 0377; :info:build ^ :info:build ( ) :info:build PDP11/pdp11_vh.c:929:33: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build (lp->lnctrl & ~0377) | data & 0377; :info:build ~ ~~~~~^~~~~~ :info:build PDP11/pdp11_vh.c:929:33: note: place parentheses around the '&' expression to silence this warning :info:build (lp->lnctrl & ~0377) | data & 0377; :info:build ^ :info:build ( ) :info:build PDP11/pdp11_vh.c:996:32: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build (lp->tbuf1 & ~0377) | data & 0377; :info:build ~ ~~~~~^~~~~~ :info:build PDP11/pdp11_vh.c:996:32: note: place parentheses around the '&' expression to silence this warning :info:build (lp->tbuf1 & ~0377) | data & 0377; :info:build ^ :info:build ( ) :info:build PDP11/pdp11_vh.c:1011:32: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build (lp->tbuf2 & ~0377) | data & 0377; :info:build ~ ~~~~~^~~~~~ :info:build PDP11/pdp11_vh.c:1011:32: note: place parentheses around the '&' expression to silence this warning :info:build (lp->tbuf2 & ~0377) | data & 0377; :info:build ^ :info:build ( ) :info:build PDP11/pdp11_vh.c:1031:34: warning: '&' within '|' [-Wbitwise-op-parentheses] :info:build (lp->tbuffct & ~0377) | data & 0377; :info:build ~ ~~~~~^~~~~~ :info:build PDP11/pdp11_vh.c:1031:34: note: place parentheses around the '&' expression to silence this warning :info:build (lp->tbuffct & ~0377) | data & 0377; :info:build ^ :info:build ( ) :info:build 7 warnings generated. :info:build PDP11/pdp11_tu.c:647:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tu.c:647:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tu.c:647:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) { /* space rec fwd, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tu.c:660:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tu.c:660:20: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tu.c:660:20: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) { /* space rec rev, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tu.c:671:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tu.c:671:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tu.c:671:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tu.c:687:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdrecf (uptr, xbuf, &tbc, MT_MAXFR)) { /* read fwd */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tu.c:687:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdrecf (uptr, xbuf, &tbc, MT_MAXFR)) { /* read fwd */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tu.c:687:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdrecf (uptr, xbuf, &tbc, MT_MAXFR)) { /* read fwd */ :info:build ^ :info:build == :info:build PDP11/pdp11_tu.c:739:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, xbuf, tbc)) /* write rec, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tu.c:739:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, xbuf, tbc)) /* write rec, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tu.c:739:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, xbuf, tbc)) /* write rec, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_tu.c:751:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdrecr (uptr, xbuf + 4, &tbc, MT_MAXFR)) { /* read rev */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_tu.c:751:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdrecr (uptr, xbuf + 4, &tbc, MT_MAXFR)) { /* read rev */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_tu.c:751:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdrecr (uptr, xbuf + 4, &tbc, MT_MAXFR)) { /* read rev */ :info:build ^ :info:build == :info:build 6 warnings generated. :info:build PDP11/pdp11_cpumod.c:1078:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (r = build_ubus_tab (&cpu_dev, cnf_tab[i].dib)) /* add to dispatch tab */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_cpumod.c:1078:15: note: place parentheses around the assignment to silence this warning :info:build if (r = build_ubus_tab (&cpu_dev, cnf_tab[i].dib)) /* add to dispatch tab */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_cpumod.c:1078:15: note: use '==' to turn this assignment into an equality comparison :info:build if (r = build_ubus_tab (&cpu_dev, cnf_tab[i].dib)) /* add to dispatch tab */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP11/pdp11_rf.c:380:49: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] :info:build rf_dae = (rf_dae & ~RFDAE_DAE) | ((rf_da >> 16) && RFDAE_DAE); :info:build ^ ~~~~~~~~~ :info:build PDP11/pdp11_rf.c:380:49: note: use '&' for a bitwise operation :info:build rf_dae = (rf_dae & ~RFDAE_DAE) | ((rf_da >> 16) && RFDAE_DAE); :info:build ^~ :info:build & :info:build PDP11/pdp11_rf.c:380:49: note: remove constant to silence this warning :info:build rf_dae = (rf_dae & ~RFDAE_DAE) | ((rf_da >> 16) && RFDAE_DAE); :info:build ~^~~~~~~~~~~~ :info:build 1 warning generated. :info:build PDP11/pdp11_dl.c:345:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (temp = tmxr_getc_ln (&dlx_ldsc[ln])) { /* get char */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_dl.c:345:18: note: place parentheses around the assignment to silence this warning :info:build if (temp = tmxr_getc_ln (&dlx_ldsc[ln])) { /* get char */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_dl.c:345:18: note: use '==' to turn this assignment into an equality comparison :info:build if (temp = tmxr_getc_ln (&dlx_ldsc[ln])) { /* get char */ :info:build ^ :info:build == :info:build 1 warning generated. :info:build PDP11/pdp11_ta.c:400:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrrecf (uptr, ta_xb, ta_bptr)) /* write, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ta.c:400:19: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrrecf (uptr, ta_xb, ta_bptr)) /* write, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ta.c:400:19: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrrecf (uptr, ta_xb, ta_bptr)) /* write, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_ta.c:406:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ta.c:406:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ta.c:406:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_ta.c:416:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ta.c:416:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rev, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ta.c:416:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecr (uptr, &tbc)) /* space rev, err? */ :info:build ^ :info:build == :info:build PDP11/pdp11_ta.c:428:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_sprecf (uptr, &tbc)) /* space rev, err? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ta.c:428:16: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_sprecf (uptr, &tbc)) /* space rev, err? */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ta.c:428:16: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_sprecf (uptr, &tbc)) /* space rev, err? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build PDP11/pdp11_ke.c:255:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sign = GET_SIGN_W (ke_AC)) /* sext operand */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ke.c:255:22: note: place parentheses around the assignment to silence this warning :info:build if (sign = GET_SIGN_W (ke_AC)) /* sext operand */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ke.c:255:22: note: use '==' to turn this assignment into an equality comparison :info:build if (sign = GET_SIGN_W (ke_AC)) /* sext operand */ :info:build ^ :info:build == :info:build PDP11/pdp11_ke.c:285:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sign = GET_SIGN_W (ke_AC)) /* sext operand */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build PDP11/pdp11_ke.c:285:22: note: place parentheses around the assignment to silence this warning :info:build if (sign = GET_SIGN_W (ke_AC)) /* sext operand */ :info:build ^ :info:build ( ) :info:build PDP11/pdp11_ke.c:285:22: note: use '==' to turn this assignment into an equality comparison :info:build if (sign = GET_SIGN_W (ke_AC)) /* sext operand */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build In file included from scp.c:182: :info:build ./sim_rev.h:389:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.7 revision history :info:build ^ :info:build ./sim_rev.h:661:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.6 revision history :info:build ^ :info:build ./sim_rev.h:835:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.5 revision history :info:build ^ :info:build ./sim_rev.h:971:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.4 revision history :info:build ^ :info:build ./sim_rev.h:1009:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.3 revision history :info:build ^ :info:build ./sim_rev.h:1261:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.2 revision history :info:build ^ :info:build ./sim_rev.h:1460:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.1 revision history :info:build ^ :info:build ./sim_rev.h:1573:1: warning: '/*' within block comment [-Wcomment] :info:build /* V3.0 revision history :info:build ^ :info:build ./sim_rev.h:1739:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.10 revision history :info:build ^ :info:build ./sim_rev.h:2037:1: warning: '/*' within block comment [-Wcomment] :info:build /* V2.9 revision history :info:build ^ :info:build scp.c:665:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:665:12: note: place parentheses around the assignment to silence this warning :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build ( ) :info:build scp.c:665:12: note: use '==' to turn this assignment into an equality comparison :info:build if (np = match_ext (nbuf, "EXE")) /* remove .exe */ :info:build ^ :info:build == :info:build scp.c:673:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:673:14: note: place parentheses around the assignment to silence this warning :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build ( ) :info:build scp.c:673:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cptr = sim_brk_getact (cbuf, CBUFSIZE)) /* pending action? */ :info:build ^ :info:build == :info:build scp.c:686:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:686:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:686:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) /* lookup command */ :info:build ^ :info:build == :info:build scp.c:753:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:753:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build ( ) :info:build scp.c:753:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { :info:build ^ :info:build == :info:build scp.c:897:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:897:14: note: place parentheses around the assignment to silence this warning :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build ( ) :info:build scp.c:897:14: note: use '==' to turn this assignment into an equality comparison :info:build if (cmdp = find_cmd (gbuf)) { /* lookup command */ :info:build ^ :info:build == :info:build scp.c:1077:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1077:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1077:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1082:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1082:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1082:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1088:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1088:16: note: place parentheses around the assignment to silence this warning :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1088:16: note: use '==' to turn this assignment into an equality comparison :info:build else if (gcmdp = find_ctab (set_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1096:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1096:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1096:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1109:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1109:35: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build ( ) :info:build scp.c:1109:35: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) :info:build ^ :info:build == :info:build scp.c:1142:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1142:18: note: place parentheses around the assignment to silence this warning :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1142:18: note: use '==' to turn this assignment into an equality comparison :info:build if (glbr = find_c1tab (ctbr, gbuf)) { /* global match? */ :info:build ^ :info:build == :info:build scp.c:1333:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1333:11: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build ( ) :info:build scp.c:1333:11: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_glob_tab, gbuf)) /* global? */ :info:build ^ :info:build == :info:build scp.c:1336:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:1336:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build ( ) :info:build scp.c:1336:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (gbuf)) { /* device match? */ :info:build ^ :info:build == :info:build scp.c:1341:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1341:15: note: place parentheses around the assignment to silence this warning :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build ( ) :info:build scp.c:1341:15: note: use '==' to turn this assignment into an equality comparison :info:build else if (dptr = find_unit (gbuf, &uptr)) { /* unit match? */ :info:build ^ :info:build == :info:build scp.c:1361:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1361:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build scp.c:1361:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build scp.c:1380:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1380:19: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build ( ) :info:build scp.c:1380:19: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (shtb, gbuf)) /* global match? */ :info:build ^ :info:build == :info:build scp.c:1731:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:1731:10: note: place parentheses around the assignment to silence this warning :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build ( ) :info:build scp.c:1731:10: note: use '==' to turn this assignment into an equality comparison :info:build if (aptr = strchr (cptr, ';')) { /* ;action? */ :info:build ^ :info:build == :info:build scp.c:3567:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3567:11: note: place parentheses around the assignment to silence this warning :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build ( ) :info:build scp.c:3567:11: note: use '==' to turn this assignment into an equality comparison :info:build if (portp = strchr (gbuf, ':')) /* x:y? split */ :info:build ^ :info:build == :info:build scp.c:3650:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~ :info:build scp.c:3650:10: note: place parentheses around the assignment to silence this warning :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build ( ) :info:build scp.c:3650:10: note: use '==' to turn this assignment into an equality comparison :info:build if (dptr = find_dev (cptr)) { /* exact match? */ :info:build ^ :info:build == :info:build scp.c:3730:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3730:14: note: place parentheses around the assignment to silence this warning :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build ( ) :info:build scp.c:3730:14: note: use '==' to turn this assignment into an equality comparison :info:build if (rptr = find_reg (cptr, optr, dptr)) { /* found? */ :info:build ^ :info:build == :info:build scp.c:3948:28: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ~~^~~~~~~~~ :info:build scp.c:3948:28: note: place parentheses around the assignment to silence this warning :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build ( ) :info:build scp.c:3948:28: note: use '==' to turn this assignment into an equality comparison :info:build for (logop = cmpop = -1; c = *cptr++; ) { /* loop thru clauses */ :info:build ^ :info:build == :info:build scp.c:3949:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3949:14: note: place parentheses around the assignment to silence this warning :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build ( ) :info:build scp.c:3949:14: note: use '==' to turn this assignment into an equality comparison :info:build if (sptr = strchr (logstr, c)) { /* check for mask */ :info:build ^ :info:build == :info:build scp.c:3956:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build scp.c:3956:19: note: place parentheses around the assignment to silence this warning :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build ( ) :info:build scp.c:3956:19: note: use '==' to turn this assignment into an equality comparison :info:build else if (sptr = strchr (cmpstr, c)) { /* check for boolop */ :info:build ^ :info:build == :info:build scp.c:4621:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build scp.c:4621:8: note: place parentheses around the assignment to silence this warning :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build ( ) :info:build scp.c:4621:8: note: use '==' to turn this assignment into an equality comparison :info:build if (ep = strchr (sim_brk_act, ';')) { /* cmd delimiter? */ :info:build ^ :info:build == :info:build 34 warnings generated. :info:build sim_console.c:164:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:164:15: note: place parentheses around the assignment to silence this warning :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build ( ) :info:build sim_console.c:164:15: note: use '==' to turn this assignment into an equality comparison :info:build if (cvptr = strchr (gbuf, '=')) /* = value? */ :info:build ^ :info:build == :info:build sim_console.c:167:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:167:15: note: place parentheses around the assignment to silence this warning :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build ( ) :info:build sim_console.c:167:15: note: use '==' to turn this assignment into an equality comparison :info:build if (ctptr = find_ctab (set_con_tab, gbuf)) { /* match? */ :info:build ^ :info:build == :info:build sim_console.c:192:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:192:15: note: place parentheses around the assignment to silence this warning :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build ( ) :info:build sim_console.c:192:15: note: use '==' to turn this assignment into an equality comparison :info:build if (shptr = find_shtab (show_con_tab, gbuf)) :info:build ^ :info:build == :info:build sim_console.c:461:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_console.c:461:7: note: place parentheses around the assignment to silence this warning :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build ( ) :info:build sim_console.c:461:7: note: use '==' to turn this assignment into an equality comparison :info:build if (c = tmxr_getc_ln (&sim_con_ldsc)) /* any char? */ :info:build ^ :info:build == :info:build 4 warnings generated. :info:build sim_tape.c:407:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:407:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:407:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build sim_tape.c:456:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build sim_tape.c:456:8: note: place parentheses around the assignment to silence this warning :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build ( ) :info:build sim_tape.c:456:8: note: use '==' to turn this assignment into an equality comparison :info:build if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */ :info:build ^ :info:build == :info:build 2 warnings generated. :info:build duplicate symbol _find_dev in: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/.tmp/scp-9ebc92.o :info:build /opt/local/lib/libpcap.a(pcap.o) :info:build ld: 1 duplicate symbol for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make: *** [BIN/pdp11] Error 1 :info:build Command failed: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/work/simhv38-1 && OSTYPE=darwin make USE_NETWORK=1 all :info:build Exit code: 2 :error:build Failed to build simh: command execution failed :debug:build Error code: NONE :debug:build Backtrace: command execution failed :debug:build while executing :debug:build "$procedure $targetname" :error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_simh/simh/main.log for details.