Mock Version: 5.6 Mock Version: 5.6 Mock Version: 5.6 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/duel3.spec'], chrootPath='/var/lib/mock/f41-build-55043405-6531979/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.927pezr2:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.927pezr2:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '298ec461911a441e80f6643ddfad0dfb', '-D', '/var/lib/mock/f41-build-55043405-6531979/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.927pezr2:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target ppc64le --nodeps /builddir/build/SPECS/duel3.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1721174400 Wrote: /builddir/build/SRPMS/duel3-0.1-0.41.20060225.fc41.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/duel3.spec'], chrootPath='/var/lib/mock/f41-build-55043405-6531979/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.927pezr2:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.927pezr2:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c20a0031de30429982fe5859ba308461', '-D', '/var/lib/mock/f41-build-55043405-6531979/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.927pezr2:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target ppc64le --nodeps /builddir/build/SPECS/duel3.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: ppc64le Building for target ppc64le setting SOURCE_DATE_EPOCH=1721174400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.7wCJho + umask 022 + cd /builddir/build/BUILD/duel3-0.1-build + test -d /builddir/build/BUILD/duel3-0.1-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/duel3-0.1-build + /usr/bin/rm -rf /builddir/build/BUILD/duel3-0.1-build + /usr/bin/mkdir -p /builddir/build/BUILD/duel3-0.1-build + /usr/bin/mkdir -p /builddir/build/BUILD/duel3-0.1-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EwNBKv + umask 022 + cd /builddir/build/BUILD/duel3-0.1-build + cd /builddir/build/BUILD/duel3-0.1-build + rm -rf Duel3_20060225_src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Duel3_20060225_src.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd Duel3_20060225_src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Duel3_20060225_bin.zip + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv Duel3_20060225_bin/Desktop.ini Duel3_20060225_bin/Duel3.exe Duel3_20060225_bin/ShipAtts.d3 Duel3_20060225_bin/Ships.d3 Duel3_20060225_bin/Thumbs.db Duel3_20060225_bin/WeaponsSet.d3 Duel3_20060225_bin/alleg42.dll Duel3_20060225_bin/fonts.dat Duel3_20060225_bin/images Duel3_20060225_bin/license.txt Duel3_20060225_bin/log.txt Duel3_20060225_bin/models Duel3_20060225_bin/models.d3 Duel3_20060225_bin/music Duel3_20060225_bin/readme.txt Duel3_20060225_bin/sounds.dat Duel3_20060225_bin/w_hud Source + cp /builddir/build/SOURCES/music-credits.txt . Patch #0 (Duel3_20060225-fixes.patch): + echo 'Patch #0 (Duel3_20060225-fixes.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Source/PObject.h patching file Source/Button.h patching file Source/CServer.h patching file Source/Player.cpp patching file Source/Server.h patching file Source/AsteroidsGameMode.h patching file Source/Controller.cpp patching file Source/main.cpp patching file Source/BRect.h patching file Source/unix.cpp patching file Source/CPacket.h patching file Source/CCamera.h patching file Source/CVector3.h patching file Source/Player.h patching file Source/Proj.h patching file Source/Weapon.cpp patching file Source/particlegenerator.h patching file Source/oCVector3.h patching file Source/Makefile patching file Source/Game.h patching file Source/particle.h patching file Source/CNetwork.h patching file Source/CPlayer.h patching file Source/Standards.h patching file Source/CMenuItem.h patching file Source/Client.h patching file Source/Model.cpp patching file Source/Ship.cpp patching file Source/Standards.cpp patching file Source/CVector2.h patching file Source/CMenu.h patching file Source/Weapon.h patching file Source/models.d3 patching file Source/CClient.h patching file Source/Game.cpp Patch #1 (Duel3_20060225-windowed-mode.patch): + echo 'Patch #1 (Duel3_20060225-windowed-mode.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Source/main.cpp Patch #2 (Duel3_20060225-fix-buf-oflow.patch): + echo 'Patch #2 (Duel3_20060225-fix-buf-oflow.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Source/Player.cpp Patch #3 (Duel3_20060225-extra-fix-buf-oflow.patch): + echo 'Patch #3 (Duel3_20060225-extra-fix-buf-oflow.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Source/Player.cpp + sed -i 's/\r//' Source/readme.txt license.txt music-credits.txt + iconv -f iso8859-1 -t utf-8 music-credits.txt + mv temp music-credits.txt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pXqdX2 + umask 022 + cd /builddir/build/BUILD/duel3-0.1-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g ~/build/BUILD/duel3-0.1-build/Duel3_20060225_src/Source ~/build/BUILD/duel3-0.1-build/Duel3_20060225_src + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd Duel3_20060225_src + pushd Source + make -j8 PREFIX=/usr 'CFLAGS=-std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor' g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o main.o -c main.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Standards.o -c Standards.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o CCamera.o -c CCamera.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o CVector2.o -c CVector2.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o BRect.o -c BRect.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o SObject.o -c SObject.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Model.o -c Model.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Weapon.o -c Weapon.cpp BRect.cpp: In member function ‘virtual bool BRect::checkColWithBRect(BRect*)’: BRect.cpp:198:23: warning: variable ‘v1InDirofCCLine’ set but not used [-Wunused-but-set-variable] 198 | float v1InDirofCCLine,v2InDirofCCLine; | ^~~~~~~~~~~~~~~ BRect.cpp:198:39: warning: variable ‘v2InDirofCCLine’ set but not used [-Wunused-but-set-variable] 198 | float v1InDirofCCLine,v2InDirofCCLine; | ^~~~~~~~~~~~~~~ Standards.cpp: In function ‘int loadTexture(char*)’: Standards.cpp:51:13: warning: unused variable ‘pal’ [-Wunused-variable] 51 | PALETTE pal; | ^~~ Standards.cpp: In function ‘float FastSqrt(float)’: Standards.cpp:119:14: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 119 | int i = *(int*)&x; | ^~~~~~~~ Standards.cpp:121:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 121 | x = *(float*)&i; | ^~~~~~~~~~ Standards.cpp:121:9: warning: ‘i’ is used uninitialized [-Wuninitialized] 121 | x = *(float*)&i; | ^~~~~~~~~~~ Standards.cpp:119:9: note: ‘i’ declared here 119 | int i = *(int*)&x; | ^ Standards.cpp: In function ‘loadTexture(char*)’: Standards.cpp:79:16: warning: ‘iTexture’ may be used uninitialized [-Wmaybe-uninitialized] 79 | return iTexture; | ^~~~~~~~ Standards.cpp:52:9: note: ‘iTexture’ was declared here 52 | int iTexture; | ^~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Animation.o -c Animation.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o PObject.o -c PObject.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Ship.o -c Ship.cpp CCamera.cpp: In member function ‘bool CCamera::setOrthoViewport(int, int)’: CCamera.cpp:33:1: warning: no return statement in function returning non-void [-Wreturn-type] 33 | } | ^ In file included from SObject.h:17, from SObject.cpp:5: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ Weapon.cpp: In member function ‘void Weapon::createWeapon(char*, int, TProjInfo, char*)’: Weapon.cpp:44:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 44 | outtext(LOGFILE,"Creating Weapon: "); | ^~~~~~~~~~~~~~~~~~~ Weapon.cpp:46:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 46 | outtext(LOGFILE,"\n"); | ^~~~ In file included from main.cpp:34: BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ In file included from main.cpp:35: Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from main.cpp:39: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from main.cpp:41: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Proj.o -c Proj.cpp main.cpp: In function ‘int main(int, const char**)’: : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:291:15: note: in expansion of macro ‘DATADIR’ 291 | play_song(DATADIR "music/BlackIce1.XM"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:432:27: note: in expansion of macro ‘DATADIR’ 432 | play_song(DATADIR "music/BlackIce1.XM"); | ^~~~~~~ main.cpp:433:33: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 433 | outtext(LOGFILE,"RETURNING TO MENU\n"); | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:439:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 439 | outtext(LOGFILE,"\nDONE\n"); | ^~~~~~~~~~ main.cpp: In function ‘void draw_all()’: main.cpp:548:32: warning: value computed is not used [-Wunused-value] 548 | (vel.retX()*vel.retX() + vel.retY()*vel.retY()); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function ‘void reset_game()’: main.cpp:575:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 575 | outtext(LOGFILE,"\nEntering function reset_game\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:577:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 577 | outtext(LOGFILE,"Setting up camera\n"); | ^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function ‘void init_game()’: main.cpp:598:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 598 | outtext(LOGFILE,"\nINIT GAME\n"); | ^~~~~~~~~~~~~~~ main.cpp:600:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 600 | outtext(LOGFILE,"Loading DUMB\n\n"); | ^~~~~~~~~~~~~~~~~~ main.cpp:604:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 604 | outtext(LOGFILE,"Loading title image\n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:605:28: note: in expansion of macro ‘DATADIR’ 605 | title.setPict(800,600, DATADIR "images/title.bmp",false); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:609:16: note: in expansion of macro ‘DATADIR’ 609 | loadModels(DATADIR "models.d3"); | ^~~~~~~ main.cpp:611:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 611 | outtext(LOGFILE,"Models Loaded\n\n"); | ^~~~~~~~~~~~~~~~~~~ main.cpp:615:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 615 | outtext(LOGFILE,"Loading fonts\n"); | ^~~~~~~~~~~~~~~~~ main.cpp:618:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 618 | outtext(LOGFILE,"Fonts Loaded\n\n"); | ^~~~~~~~~~~~~~~~~~ main.cpp:620:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 620 | outtext(LOGFILE,"Error loading fonts\n\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:624:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 624 | outtext(LOGFILE,"Creating fonts\n"); | ^~~~~~~~~~~~~~~~~~ main.cpp:637:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 637 | outtext(LOGFILE,"Fonts created\n\n"); | ^~~~~~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:641:18: note: in expansion of macro ‘DATADIR’ 641 | loadShipDefs(DATADIR "Ships.d3"); | ^~~~~~~ main.cpp:652:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 652 | outtext(LOGFILE,"Loading sounds\n\n"); | ^~~~~~~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:653:39: note: in expansion of macro ‘DATADIR’ 653 | SfxSingleton::instance()->setData(DATADIR "sounds.dat"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:660:23: note: in expansion of macro ‘DATADIR’ 660 | game.setupWeapons(DATADIR "weapons.d3",&partGen); | ^~~~~~~ main.cpp:668:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 668 | outtext(LOGFILE,"\nAdding Game Modes\n"); | ^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:671:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 671 | outtext(LOGFILE," adding asteroids\n"); | ^~~~~~~~~~~~~~~~~~~~~~ main.cpp:673:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 673 | outtext(LOGFILE," adding missile avoid\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:675:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 675 | outtext(LOGFILE," adding 2p missile avoid\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:677:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 677 | outtext(LOGFILE," adding 2p asteroids\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:680:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 680 | outtext(LOGFILE,"\nInit Menus\n"); | ^~~~~~~~~~~~~~~~ main.cpp:596:10: warning: unused variable ‘temp’ [-Wunused-variable] 596 | char temp[100]; | ^~~~ main.cpp:613:14: warning: unused variable ‘def’ [-Wunused-variable] 613 | TShipDef def; | ^~~ main.cpp:635:9: warning: unused variable ‘iNumFonts’ [-Wunused-variable] 635 | int iNumFonts=n; | ^~~~~~~~~ main.cpp: In function ‘void loadShipDefs(char*)’: main.cpp:693:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 693 | outtext(LOGFILE,"\nLoading Ship defs\n"); | ^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:714:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 714 | outtext(LOGFILE," Ship defs file loaded\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:727:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 727 | for(; file[n]!='|' ; n++); n++; | ^~~ main.cpp:727:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 727 | for(; file[n]!='|' ; n++); n++; | ^ main.cpp:742:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 742 | for(; file[n]!='|' ; n++); n++; | ^~~ main.cpp:742:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 742 | for(; file[n]!='|' ; n++); n++; | ^ main.cpp:758:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 758 | for(; file[n]!='|' ; n++); n++; | ^~~ main.cpp:758:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 758 | for(; file[n]!='|' ; n++); n++; | ^ main.cpp:801:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 801 | outtext(LOGFILE,"\n"); | ^~~~ main.cpp:697:9: warning: unused variable ‘iFilePos’ [-Wunused-variable] 697 | int iFilePos=0; | ^~~~~~~~ main.cpp: In function ‘int initAllegroGL()’: main.cpp:809:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 809 | outtext(LOGFILE,"INIT ALLEGROGL\n"); | ^~~~~~~~~~~~~~~~~~ main.cpp:815:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 815 | outtext(LOGFILE,"Setting up window\n"); | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:829:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 829 | outtext(LOGFILE,"Setting gfx mode\n"); | ^~~~~~~~~~~~~~~~~~~~ main.cpp:837:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 837 | outtext(LOGFILE,"!!Error setting gfx mode!!\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:842:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 842 | outtext(LOGFILE,"Installing keyboard and mouse\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:850:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 850 | outtext(LOGFILE,"Converting font\n"); | ^~~~~~~~~~~~~~~~~~~ main.cpp:857:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 857 | outtext(LOGFILE,"Configuring opengl settings\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:907:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 907 | outtext(LOGFILE,"Installing timer\n"); | ^~~~~~~~~~~~~~~~~~~~ main.cpp: In function ‘void end_game()’: main.cpp:924:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 924 | outtext(LOGFILE,"\nEND_GAME\n"); | ^~~~~~~~~~~~~~ main.cpp:929:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 929 | outtext(LOGFILE,"unloading datafile\n"); | ^~~~~~~~~~~~~~~~~~~~~~ main.cpp:933:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 933 | for(int n=0 ; n: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1226:23: note: in expansion of macro ‘DATADIR’ 1226 | case 0: play_song(DATADIR "music/BlackIce4.XM"); break; | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1227:23: note: in expansion of macro ‘DATADIR’ 1227 | case 1: play_song(DATADIR "music/BlackIce3.xm"); break; | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1228:23: note: in expansion of macro ‘DATADIR’ 1228 | case 2: play_song(DATADIR "music/BlackIce2.XM"); break; | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1238:23: note: in expansion of macro ‘DATADIR’ 1238 | game.setupWeapons(DATADIR "weapons.d3",&partGen); | ^~~~~~~ main.cpp:1244:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 1244 | if(gameMode>=0 && gameMode: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1580:28: note: in expansion of macro ‘DATADIR’ 1580 | splash.setPict(1,1,DATADIR "images/title1.bmp"); | ^~~~~~~ main.cpp: In function ‘void initParticleSystems(Game*)’: : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1717:27: note: in expansion of macro ‘DATADIR’ 1717 | partGen[0].setTexture(DATADIR "images/t1.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1723:27: note: in expansion of macro ‘DATADIR’ 1723 | partGen[1].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1729:27: note: in expansion of macro ‘DATADIR’ 1729 | partGen[2].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1738:27: note: in expansion of macro ‘DATADIR’ 1738 | partGen[3].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1747:27: note: in expansion of macro ‘DATADIR’ 1747 | partGen[4].setTexture(DATADIR "images/t1.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1756:27: note: in expansion of macro ‘DATADIR’ 1756 | partGen[5].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1763:27: note: in expansion of macro ‘DATADIR’ 1763 | partGen[6].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1773:27: note: in expansion of macro ‘DATADIR’ 1773 | partGen[7].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1783:27: note: in expansion of macro ‘DATADIR’ 1783 | partGen[8].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1793:27: note: in expansion of macro ‘DATADIR’ 1793 | partGen[9].setTexture(DATADIR "images/t4.bmp"); | ^~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Arena.o -c Arena.cpp : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1805:28: note: in expansion of macro ‘DATADIR’ 1805 | partGen[10].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1814:28: note: in expansion of macro ‘DATADIR’ 1814 | partGen[11].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1825:28: note: in expansion of macro ‘DATADIR’ 1825 | partGen[12].setTexture(DATADIR "images/t4.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1835:28: note: in expansion of macro ‘DATADIR’ 1835 | partGen[13].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1847:28: note: in expansion of macro ‘DATADIR’ 1847 | partGen[14].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1857:28: note: in expansion of macro ‘DATADIR’ 1857 | partGen[15].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1869:28: note: in expansion of macro ‘DATADIR’ 1869 | partGen[16].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1881:28: note: in expansion of macro ‘DATADIR’ 1881 | partGen[17].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1893:28: note: in expansion of macro ‘DATADIR’ 1893 | partGen[18].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1905:28: note: in expansion of macro ‘DATADIR’ 1905 | partGen[19].setTexture(DATADIR "images/t4.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1917:28: note: in expansion of macro ‘DATADIR’ 1917 | partGen[20].setTexture(DATADIR "images/t4.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1928:28: note: in expansion of macro ‘DATADIR’ 1928 | partGen[21].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1937:28: note: in expansion of macro ‘DATADIR’ 1937 | partGen[22].setTexture(DATADIR "images/t3.bmp"); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] main.cpp:1949:28: note: in expansion of macro ‘DATADIR’ 1949 | partGen[23].setTexture(DATADIR "images/t4.bmp"); | ^~~~~~~ main.cpp: In function ‘void getKeys()’: main.cpp:2153:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 2153 | char *filename_base="shot"; | ^~~~~~ main.cpp: In function ‘void play_song(char*)’: main.cpp:2208:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 2208 | outtext(LOGFILE,"song loaded"); | ^~~~~~~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Player.o -c Player.cpp main.cpp: In function ‘int initAllegroGL()’: main.cpp:910:23: warning: control reaches end of non-void function [-Wreturn-type] 910 | install_int_ex(go_sec, BPS_TO_TIMER(1000)); //increments sec 1000 times a second | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function ‘void load_ship_atts(TShipAtts*)’: main.cpp:954:15: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 954 | fscanf(fp,"%d",&numWeaponsSets); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:960:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 960 | fscanf(fp,"%d ", &set.maxAmmo[i]); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:975:15: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 975 | fscanf(fp,"%d",&iNumAtts); | ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:979:19: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 979 | fscanf(fp,"%f %f %f %f %f %f %f %f %f %d %d %d", | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 980 | &atts[n].fAccel, | ~~~~~~~~~~~~~~~~ 981 | &atts[n].fMaxVel, | ~~~~~~~~~~~~~~~~~ 982 | &atts[n].fRevAccel, | ~~~~~~~~~~~~~~~~~~~ 983 | &atts[n].fMaxRevVel, | ~~~~~~~~~~~~~~~~~~~~ 984 | &atts[n].fAngAccel, | ~~~~~~~~~~~~~~~~~~~ 985 | &atts[n].fMaxAngVel, | ~~~~~~~~~~~~~~~~~~~~ 986 | &atts[n].fDampening, | ~~~~~~~~~~~~~~~~~~~~ 987 | &atts[n].fAngDampening, | ~~~~~~~~~~~~~~~~~~~~~~~ 988 | &atts[n].fMass, | ~~~~~~~~~~~~~~~ 989 | &atts[n].armor, | ~~~~~~~~~~~~~~~ 990 | &atts[n].shield, | ~~~~~~~~~~~~~~~~ 991 | &atts[n].weaponsSet); | ~~~~~~~~~~~~~~~~~~~~ main.cpp: In function ‘void loadModels(char*)’: main.cpp:1548:11: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1548 | fscanf(fp,"%d",&iNumModels); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:1551:15: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1551 | fscanf(fp,"%s",modelName); | ~~~~~~^~~~~~~~~~~~~~~~~~~ Model.cpp: In member function ‘bool Model::loadModel(char*)’: Model.cpp:30:10: warning: unused variable ‘temp’ [-Wunused-variable] 30 | char temp[20]; | ^~~~ Model.cpp: In member function ‘bool Model::loadAllTextures()’: Model.cpp:286:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 286 | outtext(LOGFILE," load model textures\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ Model.cpp:293:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 293 | outtext(LOGFILE," texture loaded: "); | ^~~~~~~~~~~~~~~~~~~~ Model.cpp:295:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 295 | outtext(LOGFILE,"\n"); | ^~~~ Model.cpp:300:1: warning: no return statement in function returning non-void [-Wreturn-type] 300 | } | ^ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Game.o -c Game.cpp In file included from PObject.h:19, from PObject.cpp:5: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from PObject.h:20: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ In file included from Ship.h:18, from Ship.cpp:5: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Ship.h:19: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Widget.o -c Widget.cpp BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Ship.h:20: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ Ship.cpp: In member function ‘void Ship::shoot(ProjArray*)’: Ship.cpp:231:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 231 | if(curWeapon>=0 && curWeapon*, int)’: Ship.cpp:463:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 463 | outtext(LOGFILE, "Ship::setupAmmo\n"); | ^~~~~~~~~~~~~~~~~~~ In file included from Proj.h:20, from Proj.cpp:5: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Proj.h:22: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Proj.h:23: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o ShipArray.o -c ShipArray.cpp Proj.cpp: In member function ‘virtual void Proj::draw(bool)’: Proj.cpp:431:11: warning: unused variable ‘tx’ [-Wunused-variable] 431 | float tx,ty; | ^~ Proj.cpp:431:14: warning: unused variable ‘ty’ [-Wunused-variable] 431 | float tx,ty; | ^~ Arena.cpp: In member function ‘void Arena::addWall(CVector2, CVector2)’: Arena.cpp:30:13: warning: unused variable ‘nodes’ [-Wunused-variable] 30 | int nodes; | ^~~~~ Arena.cpp: In member function ‘virtual void Arena::draw(bool)’: Arena.cpp:88:11: warning: unused variable ‘lineLength’ [-Wunused-variable] 88 | float lineLength; | ^~~~~~~~~~ Arena.cpp:93:11: warning: unused variable ‘tx’ [-Wunused-variable] 93 | float tx,ty; | ^~ Arena.cpp:93:14: warning: unused variable ‘ty’ [-Wunused-variable] 93 | float tx,ty; | ^~ Arena.cpp:94:11: warning: unused variable ‘rColour’ [-Wunused-variable] 94 | float rColour; | ^~~~~~~ In file included from Player.h:17, from Player.cpp:5: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Ship.h:19, from Player.h:19: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Ship.h:20: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ Player.cpp: In member function ‘virtual void Player::drawHUD()’: : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Player.cpp:22:29: note: in expansion of macro ‘DATADIR’ 22 | hudl.setPict(400,70,DATADIR "images/hudl_closed.bmp",false); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Player.cpp:24:29: note: in expansion of macro ‘DATADIR’ 24 | hudr.setPict(400,70,DATADIR "images/hudr_3.bmp",false); | ^~~~~~~ Player.cpp:33:27: warning: zero-length gnu_printf format string [-Wformat-zero-length] 33 | sprintf(ammo_left,"",ship.retWepName()); | ^~ Player.cpp:41:28: warning: zero-length gnu_printf format string [-Wformat-zero-length] 41 | sprintf(lives_left,""); | ^~ Player.cpp: In member function ‘virtual void Player::drawHotSeatHUD(int)’: : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Player.cpp:107:29: note: in expansion of macro ‘DATADIR’ 107 | hudl.setPict(400,70,DATADIR "images/hudl_3.bmp",false); | ^~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Player.cpp:109:29: note: in expansion of macro ‘DATADIR’ 109 | hudr.setPict(400,70,DATADIR "images/hudr_3.bmp",false); | ^~~~~~~ Player.cpp:127:27: warning: zero-length gnu_printf format string [-Wformat-zero-length] 127 | sprintf(ammo_left,"",ship.retWepName()); | ^~ Player.cpp:134:28: warning: zero-length gnu_printf format string [-Wformat-zero-length] 134 | sprintf(lives_left,""); | ^~ In file included from Widget.h:17, from Widget.cpp:5: BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Starfield.o -c Starfield.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o CVector3.o -c CVector3.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o particle.o -c particle.cpp main.cpp: In function ‘getKeys()’: main.cpp:2172:24: warning: ‘operator delete(void*, unsigned long)’ called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] 2172 | delete buff; | ^~~~ main.cpp:2140:66: note: returned from ‘operator new[](unsigned long)’ 2140 | unsigned char *buff = new unsigned char[4*800*600]; | ^ Player.cpp: In member function ‘Player::drawTargetRet(int)’: Player.cpp:399:21: warning: ‘curAng’ may be used uninitialized [-Wmaybe-uninitialized] 399 | if( curAng<=M_PI/4 || ( curAng>=M_PI/2 && curAng<=3*M_PI/4) || (curAng>=M_PI && curAng<=5*M_PI/4) || (curAng>=3*M_PI/2 && curAng<=7*M_PI/4) ) | ^~~~~~ Player.cpp:390:50: note: ‘curAng’ was declared here 390 | float incr = (M_PI*2)/(float)points, curAng; | ^~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o particlesystem.o -c particlesystem.cpp Player.cpp: In member function ‘Player::drawHUD()’: Player.cpp:39:29: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 39 | sprintf(lives_left,"%d",lives); | ^~ Player.cpp:39:28: note: directive argument in the range [1, 2147483647] 39 | sprintf(lives_left,"%d",lives); | ^~~~ In file included from /usr/include/stdio.h:970, from /usr/include/c++/14/cstdio:42, from Player.h:9: In function ‘*__sprintfieee128’, inlined from ‘Player::drawHUD()’ at Player.cpp:39:16: /usr/include/bits/stdio2.h:30:34: note: ‘__sprintf_chkieee128’ output between 2 and 11 bytes into a destination of size 4 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ Player.cpp: In member function ‘Player::drawHotSeatHUD(int)’: Player.cpp:132:29: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] 132 | sprintf(lives_left,"%d",lives); | ^~ Player.cpp:132:28: note: directive argument in the range [1, 2147483647] 132 | sprintf(lives_left,"%d",lives); | ^~~~ In function ‘*__sprintfieee128’, inlined from ‘Player::drawHotSeatHUD(int)’ at Player.cpp:132:16: /usr/include/bits/stdio2.h:30:34: note: ‘__sprintf_chkieee128’ output between 2 and 11 bytes into a destination of size 4 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from SObject.h:17, from Game.h:14, from Game.cpp:6: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Game.h:16: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ In file included from NewMenu.h:17, from GameMode.h:14, from Game.h:23: Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o particlegenerator.o -c particlegenerator.cpp Game.cpp: In member function ‘void Game::setupWeapons(char*, ParticleGenerator**)’: Game.cpp:113:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 113 | weapons[iNumWeapons].createWeapon("Lightning Ball",6,pinfo,DATADIR "w_hud/single_shot.bmp"); | ^~~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:113:64: note: in expansion of macro ‘DATADIR’ 113 | weapons[iNumWeapons].createWeapon("Lightning Ball",6,pinfo,DATADIR "w_hud/single_shot.bmp"); | ^~~~~~~ Game.cpp:141:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 141 | weapons[iNumWeapons].createWeapon("Hellstrike",14,pinfo,DATADIR "w_hud/hellstrike.bmp"); | ^~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:141:61: note: in expansion of macro ‘DATADIR’ 141 | weapons[iNumWeapons].createWeapon("Hellstrike",14,pinfo,DATADIR "w_hud/hellstrike.bmp"); | ^~~~~~~ Game.cpp:171:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 171 | weapons[iNumWeapons].createWeapon("Wrath Missile",14,pinfo,DATADIR "w_hud/missile.bmp"); | ^~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:171:64: note: in expansion of macro ‘DATADIR’ 171 | weapons[iNumWeapons].createWeapon("Wrath Missile",14,pinfo,DATADIR "w_hud/missile.bmp"); | ^~~~~~~ Game.cpp:200:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 200 | weapons[iNumWeapons].createWeapon("Lightning",2,pinfo,DATADIR "w_hud/lightning.bmp"); | ^~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:200:59: note: in expansion of macro ‘DATADIR’ 200 | weapons[iNumWeapons].createWeapon("Lightning",2,pinfo,DATADIR "w_hud/lightning.bmp"); | ^~~~~~~ Game.cpp:228:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 228 | weapons[iNumWeapons].createWeapon("Shot Gun",14,pinfo,DATADIR "w_hud/shotgun.bmp"); | ^~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:228:59: note: in expansion of macro ‘DATADIR’ 228 | weapons[iNumWeapons].createWeapon("Shot Gun",14,pinfo,DATADIR "w_hud/shotgun.bmp"); | ^~~~~~~ Game.cpp:257:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 257 | weapons[iNumWeapons].createWeapon("Plasma Mine",25,pinfo,DATADIR "w_hud/one_mine.bmp"); | ^~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:257:62: note: in expansion of macro ‘DATADIR’ 257 | weapons[iNumWeapons].createWeapon("Plasma Mine",25,pinfo,DATADIR "w_hud/one_mine.bmp"); | ^~~~~~~ Game.cpp:287:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 287 | weapons[iNumWeapons].createWeapon("Tri-Shot",7,pinfo,DATADIR "w_hud/tri_shot.bmp"); | ^~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:287:58: note: in expansion of macro ‘DATADIR’ 287 | weapons[iNumWeapons].createWeapon("Tri-Shot",7,pinfo,DATADIR "w_hud/tri_shot.bmp"); | ^~~~~~~ Game.cpp:316:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 316 | weapons[iNumWeapons].createWeapon("Homing Missiles",14,pinfo,DATADIR "w_hud/homing_missile.bmp"); | ^~~~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:316:66: note: in expansion of macro ‘DATADIR’ 316 | weapons[iNumWeapons].createWeapon("Homing Missiles",14,pinfo,DATADIR "w_hud/homing_missile.bmp"); | ^~~~~~~ Game.cpp:345:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 345 | weapons[iNumWeapons].createWeapon("Spider Mine",25,pinfo,DATADIR "w_hud/four_mines.bmp"); | ^~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:345:62: note: in expansion of macro ‘DATADIR’ 345 | weapons[iNumWeapons].createWeapon("Spider Mine",25,pinfo,DATADIR "w_hud/four_mines.bmp"); | ^~~~~~~ Game.cpp:374:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 374 | weapons[iNumWeapons].createWeapon("Concussion",25,pinfo,DATADIR "w_hud/concussion.bmp"); | ^~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:374:61: note: in expansion of macro ‘DATADIR’ 374 | weapons[iNumWeapons].createWeapon("Concussion",25,pinfo,DATADIR "w_hud/concussion.bmp"); | ^~~~~~~ Game.cpp:403:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 403 | weapons[iNumWeapons].createWeapon("Defense Ring",50,pinfo,DATADIR "w_hud/defense.bmp"); | ^~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:403:63: note: in expansion of macro ‘DATADIR’ 403 | weapons[iNumWeapons].createWeapon("Defense Ring",50,pinfo,DATADIR "w_hud/defense.bmp"); | ^~~~~~~ Game.cpp:433:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 433 | weapons[iNumWeapons].createWeapon("Redeemer Missile",20,pinfo,DATADIR "w_hud/redeemer.bmp"); | ^~~~~~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:433:67: note: in expansion of macro ‘DATADIR’ 433 | weapons[iNumWeapons].createWeapon("Redeemer Missile",20,pinfo,DATADIR "w_hud/redeemer.bmp"); | ^~~~~~~ Game.cpp:462:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 462 | weapons[iNumWeapons].createWeapon("Gattling Gun",2,pinfo,DATADIR "w_hud/gattling.bmp"); | ^~~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:462:62: note: in expansion of macro ‘DATADIR’ 462 | weapons[iNumWeapons].createWeapon("Gattling Gun",2,pinfo,DATADIR "w_hud/gattling.bmp"); | ^~~~~~~ Game.cpp:490:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 490 | weapons[iNumWeapons].createWeapon("Rebound Gun",40,pinfo,DATADIR "w_hud/rebound.bmp"); | ^~~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:490:62: note: in expansion of macro ‘DATADIR’ 490 | weapons[iNumWeapons].createWeapon("Rebound Gun",40,pinfo,DATADIR "w_hud/rebound.bmp"); | ^~~~~~~ Game.cpp:518:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 518 | weapons[iNumWeapons].createWeapon("EMP Wave",30,pinfo,DATADIR "w_hud/emp.bmp"); | ^~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:518:59: note: in expansion of macro ‘DATADIR’ 518 | weapons[iNumWeapons].createWeapon("EMP Wave",30,pinfo,DATADIR "w_hud/emp.bmp"); | ^~~~~~~ Game.cpp:548:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 548 | weapons[iNumWeapons].createWeapon("Berserkers",25,pinfo,DATADIR "w_hud/berserkers.bmp"); | ^~~~~~~~~~~~ : warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] Game.cpp:548:61: note: in expansion of macro ‘DATADIR’ 548 | weapons[iNumWeapons].createWeapon("Berserkers",25,pinfo,DATADIR "w_hud/berserkers.bmp"); | ^~~~~~~ Game.cpp: In member function ‘void Game::constructObjectList()’: Game.cpp:581:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 581 | outtext(LOGFILE,"\nConstructing Object List\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Game.cpp:583:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 583 | outtext(LOGFILE," adding players to object list\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Game.cpp:594:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 594 | outtext(LOGFILE," adding walls to object list\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Game.cpp:604:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 604 | outtext(LOGFILE," adding projectiles to object list\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Game.cpp:611:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 611 | outtext(LOGFILE," adding asteroids to object list\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Game.cpp:618:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 618 | outtext(LOGFILE," adding powerups to object list\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Game.cpp: In member function ‘void Game::clearObjectList()’: Game.cpp:632:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 632 | outtext(LOGFILE,"\nClearing Object List\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Game.cpp: In member function ‘void Game::draw()’: Game.cpp:680:99: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 680 | writeText_2D(400-(strlen(endGameMessage)*15)/2,100,0,makecol(200,200,200),allFonts[4],"Hit Enter to Continue"); | ^~~~~~~~~~~~~~~~~~~~~~~ Game.cpp: In member function ‘int Game::addPlayer(Player*)’: Game.cpp:896:13: warning: deleting object of polymorphic class type ‘Player’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 896 | delete players[n]; //delete the old player | ^~~~~~~~~~~~~~~~~ Game.cpp: In destructor ‘Game::~Game()’: Game.cpp:986:9: warning: deleting object of polymorphic class type ‘Player’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 986 | delete players[n]; | ^~~~~~~~~~~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o asteroid.o -c asteroid.cpp Game.cpp: In member function ‘char* Game::getWeaponName(int)’: Game.cpp:968:1: warning: control reaches end of non-void function [-Wreturn-type] 968 | } | ^ particle.cpp: In member function ‘int Particle::move()’: particle.cpp:87:1: warning: no return statement in function returning non-void [-Wreturn-type] 87 | } | ^ In file included from ShipArray.h:17, from ShipArray.cpp:5: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from ShipArray.h:18: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from ShipArray.h:19: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ particle.cpp: In member function ‘Particle::setString(char*)’: particle.cpp:62:12: warning: ‘strncpy’ specified bound 5 equals destination size [-Wstringop-truncation] 62 | strncpy(string,s,5); | ^ ShipArray.cpp: In member function ‘void ShipArray::init()’: ShipArray.cpp:27:9: warning: unused variable ‘iNumDefs’ [-Wunused-variable] 27 | int iNumDefs=0; | ^~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Controller.o -c Controller.cpp ShipArray.cpp: In member function ‘TShipDef ShipArray::retShipDef(int)’: ShipArray.cpp:23:1: warning: control reaches end of non-void function [-Wreturn-type] 23 | } | ^ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o SfxSingleton.o -c SfxSingleton.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o GameMode.o -c GameMode.cpp particlesystem.cpp: In member function ‘void ParticleSystem::setupVArray(int)’: particlesystem.cpp:198:11: warning: variable ‘x’ set but not used [-Wunused-but-set-variable] 198 | float x,y,z,s; | ^ particlesystem.cpp:198:13: warning: variable ‘y’ set but not used [-Wunused-but-set-variable] 198 | float x,y,z,s; | ^ particlesystem.cpp:198:15: warning: variable ‘z’ set but not used [-Wunused-but-set-variable] 198 | float x,y,z,s; | ^ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o AsteroidsGameMode.o -c AsteroidsGameMode.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o NewMenu.o -c NewMenu.cpp particlegenerator.cpp: In member function ‘void ParticleGenerator::makePartRing()’: particlegenerator.cpp:301:11: warning: unused variable ‘ang2’ [-Wunused-variable] 301 | float ang2=(float)(rand()%100)/100 * M_PI; | ^~~~ particlegenerator.cpp:307:11: warning: unused variable ‘velRand’ [-Wunused-variable] 307 | float velRand; | ^~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Button.o -c Button.cpp SfxSingleton.cpp: In member function ‘void SfxSingleton::setData(char*)’: SfxSingleton.cpp:41:25: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 41 | outtext(LOGFILE,"Could not load sounds"); | ^~~~~~~~~~~~~~~~~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o CheckBox.o -c CheckBox.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o ShipSelector.o -c ShipSelector.cpp g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o MissileAvoid.o -c MissileAvoid.cpp In file included from asteroid.h:20, from asteroid.cpp:6: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from asteroid.h:22: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from asteroid.h:23: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ asteroid.cpp: In member function ‘void AsteroidArray::setModels(Model*, int, int)’: asteroid.cpp:184:9: warning: variable ‘r’ set but not used [-Wunused-but-set-variable] 184 | int r; | ^ In file included from Widget.h:17, from Button.h:16, from Button.cpp:6: BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ Button.cpp: In member function ‘virtual void Button::draw()’: Button.cpp:59:8: warning: the address of ‘Button::caption’ will never be NULL [-Waddress] 59 | if(caption) | ^~~~~~~ Button.h:33:10: note: ‘Button::caption’ declared here 33 | char caption[50]; | ^~~~~~~ In file included from Widget.h:17, from Button.h:16, from CheckBox.h:15, from CheckBox.cpp:6: BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ CheckBox.cpp: In member function ‘virtual void CheckBox::draw()’: CheckBox.cpp:42:8: warning: the address of ‘Button::caption’ will never be NULL [-Waddress] 42 | if(caption) | ^~~~~~~ Button.h:33:10: note: ‘Button::caption’ declared here 33 | char caption[50]; | ^~~~~~~ In file included from Arena.h:18, from GameMode.h:10, from GameMode.cpp:6: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Game.h:14, from GameMode.h:11: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Game.h:16: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ In file included from Arena.h:18, from GameMode.h:10, from AsteroidsGameMode.h:9, from AsteroidsGameMode.cpp:6: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Game.h:14, from GameMode.h:11: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from Game.h:16: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o AIPlayer.o -c AIPlayer.cpp In file included from ShipArray.h:17, from NewMenu.h:16, from NewMenu.cpp:5: BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from ShipArray.h:18: SObject.h:42:10: note: by ‘void SObject::reactToCollision(TColInfo)’ 42 | void reactToCollision(TColInfo colInfo) { /*a static object does nothing*/ } | ^~~~~~~~~~~~~~~~ BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ In file included from NewMenu.h:17, from GameMode.h:14: Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ GameMode.cpp: In member function ‘virtual TMenuPage GameMode::createMenuPage(FONT**, TButtonAtts, int, Model*, ShipArray*, Game*)’: GameMode.cpp:112:80: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 112 | page.widgets[0] = new Button(0,makeVector2(0,-3,true),4.5,2.45,allFonts[2],"Play",bAtts); | ^~~~~~ GameMode.cpp:115:78: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 115 | page.widgets[1] = new Button(1,makeVector2(0,-6,true),5,2.45,allFonts[2],"Back",bAtts); | ^~~~~~ GameMode.cpp:124:80: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 124 | page.widgets[4] = new CheckBox(4,makeVector2(-15,-13,true),1,1,allFonts[4],"Enable Asteroids",bAtts); | ^~~~~~~~~~~~~~~~~~ GameMode.cpp:127:78: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 127 | page.widgets[5] = new CheckBox(5,makeVector2(0,-13,true),1,1,allFonts[4],"Walls On",bAtts,true); | ^~~~~~~~~~ GameMode.cpp: In member function ‘virtual void GameMode::runInGame(Game*)’: GameMode.cpp:140:20: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 140 | g->endGame("Player 2 Wins"); | ^~~~~~~~~~~~~~~ GameMode.cpp:143:20: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 143 | g->endGame("Player 1 Wins"); | ^~~~~~~~~~~~~~~ GameMode.cpp: In member function ‘virtual void GameMode::writeStats(Game*)’: GameMode.cpp:163:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 163 | writeText_2D(xx,130,0,makecol(200,250,200),allFonts[4],"Player1"); | ^~~~~~~~~ GameMode.cpp:167:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 167 | writeText_2D(xx,130,0,makecol(200,250,200),allFonts[4],"Player2"); | ^~~~~~~~~ BRect.h:93:27: warning: ‘virtual CollisionInfo BRect::reactToCollision()’ was hidden [-Woverloaded-virtual=] 93 | virtual CollisionInfo reactToCollision(void); | ^~~~~~~~~~~~~~~~ In file included from ShipArray.h:19: PObject.h:70:10: note: by ‘void PObject::reactToCollision(TColInfo)’ 70 | void reactToCollision(TColInfo colInfo); | ^~~~~~~~~~~~~~~~ BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ In file included from NewMenu.h:17, from GameMode.h:14: Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ g++ -std=c++14 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char -Wno-deprecated-declarations -Wno-non-virtual-dtor -DDATADIR=\"/usr/share/duel3/\" -o Turret.o -c Turret.cpp BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ AsteroidsGameMode.cpp: In member function ‘virtual TMenuPage AsteroidsGameMode::createMenuPage(FONT**, TButtonAtts, int, Model*, ShipArray*, Game*)’: AsteroidsGameMode.cpp:88:81: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 88 | page.widgets[0] = new Button(0,makeVector2(0,1.5,true),4.5,2.45,allFonts[2],"Play",bAtts); | ^~~~~~ AsteroidsGameMode.cpp:91:78: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 91 | page.widgets[1] = new Button(1,makeVector2(0,-6,true),5,2.45,allFonts[2],"Back",bAtts); | ^~~~~~ AsteroidsGameMode.cpp:94:80: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 94 | page.widgets[2] = new CheckBox(2,makeVector2(-19,-10,true),1,1,allFonts[4],"Walls On",bAtts,false); | ^~~~~~~~~~ AsteroidsGameMode.cpp:97:79: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 97 | page.widgets[3] = new CheckBox(3,makeVector2(-4,-10,true),1,1,allFonts[4],"Maniac Mode",bAtts,false); | ^~~~~~~~~~~~~ AsteroidsGameMode.cpp:100:78: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 100 | page.widgets[4] = new CheckBox(4,makeVector2(5,-10,true),1,1,allFonts[4],"Projectile Wrap",bAtts,false); | ^~~~~~~~~~~~~~~~~ AsteroidsGameMode.cpp: In member function ‘virtual void AsteroidsGameMode::runInGame(Game*)’: AsteroidsGameMode.cpp:124:20: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 124 | g->endGame("Game Over"); | ^~~~~~~~~~~ AsteroidsGameMode.cpp: In member function ‘virtual void AsteroidsGameMode::writeStats(Game*)’: AsteroidsGameMode.cpp:137:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 137 | writeText_2D(xx,130,0,makecol(200,250,200),allFonts[4],"Player1"); | ^~~~~~~~~ AsteroidsGameMode.cpp:141:68: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 141 | writeText_2D(xx,130,0,makecol(200,250,200),allFonts[4],"Player2"); | ^~~~~~~~~ BRect.h:91:18: warning: ‘virtual void BRect::update()’ was hidden [-Woverloaded-virtual=] 91 | virtual void update(void){ /*if(exist==true) pos += vel;*/ } | ^~~~~~ In file included from NewMenu.h:17: Widget.h:47:18: note: by ‘virtual void Widget::update(TMouse&)’ 47 | virtual void update(TMouse &mouse); | ^~~~~~ BRect.h:90:18: warning: ‘virtual void BRect::draw(bool)’ was hidden [-Woverloaded-virtual=] 90 | virtual void draw(bool wireframe=false); | ^~~~ Widget.h:45:18: note: by ‘virtual void Widget::draw()’ 45 | virtual void draw(void); | ^~~~ GameMode.cpp: In member function ‘virtual int GameMode::getPlayerShipNum(int)’: GameMode.cpp:97:1: warning: control reaches end of non-void function [-Wreturn-type] 97 | } | ^ NewMenu.cpp: In destructor ‘NewMenu::~NewMenu()’: NewMenu.cpp:14:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 14 | outtext(LOGFILE,"Deleting Menu\n"); | ^~~~~~~~~~~~~~~~~ NewMenu.cpp:15:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 15 | for(int n=0 ; n::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 57 | if(curPage>=0 && curPage