Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/glaxium.spec'], chrootPath='/var/lib/mock/f40-build-752754-116814/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/glaxium.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Wrote: /builddir/build/SRPMS/glaxium-0.5-41.fc40.src.rpm RPM build warnings: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/glaxium.spec'], chrootPath='/var/lib/mock/f40-build-752754-116814/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/glaxium.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689724800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nJn0jw + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf glaxium_0.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/glaxium_0.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd glaxium_0.5 + rm -rf /builddir/build/BUILD/glaxium_0.5-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/glaxium_0.5-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (glaxium-0.5-fixes.patch):' Patch #0 (glaxium-0.5-fixes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file scratcher.hpp patching file tank.hpp patching file variables.cpp patching file Makefile.in + echo 'Patch #1 (glaxium_0.5-allow-running-when-dsp-busy.patch):' Patch #1 (glaxium_0.5-allow-running-when-dsp-busy.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file main.cpp patching file sprite.cpp patching file variables.cpp patching file variables.hpp + echo 'Patch #2 (glaxium_0.5-glutInit.patch):' Patch #2 (glaxium_0.5-glutInit.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file main.cpp Patch #3 (glaxium_0.5-rh553067.patch): + echo 'Patch #3 (glaxium_0.5-rh553067.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file tank.cpp patching file elem.cpp Patch #4 (glaxium_0.5-64bit-crash.patch): + echo 'Patch #4 (glaxium_0.5-64bit-crash.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file scene.cpp Patch #5 (glaxium_0.5-fighter2_meshes-fix.patch): + echo 'Patch #5 (glaxium_0.5-fighter2_meshes-fix.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file fighter2.cpp + echo 'Patch #6 (0001-Stop-mixing-glut-and-SDL-usage.patch):' Patch #6 (0001-Stop-mixing-glut-and-SDL-usage.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file bandit2.cpp patching file configure.in patching file cube.cpp patching file diamond.cpp patching file fighter2.cpp patching file fire.cpp patching file glax_glut.cpp patching file glax_glut.hpp patching file main.cpp patching file myship.cpp patching file piege.cpp patching file scene.cpp patching file scratcher.cpp patching file ship1.cpp patching file spirale.cpp patching file sprite.hpp patching file tache.cpp patching file tank.cpp + autoreconf -ivf autoreconf: export WARNINGS= autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: Entering directory '.' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' acinclude.m4:8: warning: underquoted definition of FC_EXPAND_DIR acinclude.m4:8: run info Automake 'Extending aclocal' acinclude.m4:8: or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal autoreconf: configure.in: tracing autoreconf: configure.in: not using Libtool autoreconf: configure.in: not using Intltool autoreconf: configure.in: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.in:3: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.in:3: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.in:3: the top level configure.in:11: warning: The macro `AC_TRY_RUN' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... acinclude.m4:28: AM_PATH_SDL is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... acinclude.m4:28: AM_PATH_SDL is expanded from... configure.in:11: the top level configure.in:45: warning: AC_OUTPUT should be used without arguments. configure.in:45: You should run autoupdate. autoreconf: running: /usr/bin/autoheader --force autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoheader: warning: WARNING: Using auxiliary files such as 'acconfig.h', 'config.h.bot' autoheader: WARNING: and 'config.h.top', to define templates for 'config.h.in' autoheader: WARNING: is deprecated and discouraged. autoheader: autoheader: WARNING: Using the third argument of 'AC_DEFINE_UNQUOTED' and autoheader: WARNING: 'AC_DEFINE' allows one to define a template without autoheader: WARNING: 'acconfig.h': autoheader: autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader: [Define if a function 'main' is needed.]) autoheader: autoheader: WARNING: More sophisticated templates can also be produced, see the autoheader: WARNING: documentation. autoreconf: configure.in: not using Automake autoreconf: Leaving directory '.' + sed -i 's|/games/glaxium|/glaxium|g' configure configure.in configure~ Makefile.in + sed -i 's/\r//g' CHANGES.txt LICENSE README.txt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.muDufe + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd glaxium_0.5 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' x '!=' x ']' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh ++ grep -q runstatedir=DIR ./configure ++ echo --runstatedir=/run + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info configure: WARNING: unrecognized options: --disable-dependency-tracking checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking how to run the C preprocessor... gcc -E checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking whether make sets $(MAKE)... yes checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.1.5... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for SDL.h... yes checking for Mix_PlayMusic in -lSDL_mixer... yes checking for SDL_mixer.h... yes checking for glVertex3f in -lGL... yes checking for gluPerspective in -lGLU... yes checking for XDestroyWindow in -lX11... yes checking for XFreeDeviceControl in -lXi... no checking for XmuScanlineNot in -lXmu... no checking for png_write_rows in -lpng... yes checking for GL/gl.h... yes checking for GL/glu.h... yes checking for GL/glx.h... yes checking for png.h... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: creating conf.h configure: WARNING: unrecognized options: --disable-dependency-tracking + make -j4 g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT bandit2.cpp -o bandit2.o -DDATADIR=\"/usr/share/glaxium\" g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT cube.cpp -o cube.o -DDATADIR=\"/usr/share/glaxium\" g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT diamond.cpp -o diamond.o -DDATADIR=\"/usr/share/glaxium\" g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT elem.cpp -o elem.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT explosion.cpp -o explosion.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ cube.cpp: In member function ‘virtual void Cube::collision(Sprite*)’: cube.cpp:267:24: warning: unused variable ‘i’ [-Wunused-variable] 267 | static int i=0; | ^ cube.cpp:231:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] 231 | switch(contact->getType()) | ^ cube.cpp:231:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] cube.cpp:231:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] diamond.cpp: In member function ‘virtual void Diamond::collision(Sprite*)’: diamond.cpp:208:18: warning: enumeration value ‘POWERUP’ not handled in switch [-Wswitch] 208 | switch (type_) { | ^ diamond.cpp:208:18: warning: enumeration value ‘INVUL’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_MY_FIRE2’ not handled in switch [-Wswitch] 197 | switch(contact->getType()) | ^ diamond.cpp:197:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_CUBE’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] diamond.cpp:197:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] bandit2.cpp: In constructor ‘Bandit2::Bandit2(List*, float, float, float, int)’: bandit2.cpp:33:9: warning: unused variable ‘nb’ [-Wunused-variable] 33 | int nb=random()%5; | ^~ bandit2.cpp: In member function ‘virtual void Bandit2::collision(Sprite*)’: bandit2.cpp:220:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 220 | switch(contact->getType()) | ^ bandit2.cpp:220:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] bandit2.cpp:220:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] bandit2.cpp: In member function ‘virtual void Bandit2Fire::collision(Sprite*)’: bandit2.cpp:346:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 346 | switch(contact->getType()) | ^ bandit2.cpp:346:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] bandit2.cpp:346:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] explosion.cpp: In member function ‘virtual void PieceOfShip::drawShadowable()’: explosion.cpp:220:11: warning: unused variable ‘pColor’ [-Wunused-variable] 220 | float pColor[] = {1.0,1.0,1.0,1.0}; | ^~~~~~ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT fighter2.cpp -o fighter2.o -DDATADIR=\"/usr/share/glaxium\" g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT fire.cpp -o fire.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT glax_glut.cpp -o glax_glut.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ In file included from listsprite.hpp:24, from fire.cpp:20: list.hpp:41:16: warning: ‘virtual void List::Add(Elem*)’ was hidden [-Woverloaded-virtual=] 41 | virtual void Add(Elem * el); | ^~~ listsprite.hpp:38:10: note: by ‘void ListSprite::Add(Sprite*)’ 38 | void Add(Sprite * el); | ^~~ fire.cpp: In member function ‘virtual void MyFire1::collision(Sprite*)’: fire.cpp:123:11: warning: enumeration value ‘TYPE_MY_SPACE_SHIP’ not handled in switch [-Wswitch] 123 | switch(contact->getType()) | ^ fire.cpp:123:11: warning: enumeration value ‘TYPE_MY_FIRE1’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_MY_FIRE2’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] fire.cpp:123:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] fire.cpp: In member function ‘virtual void MyFire2::move()’: fire.cpp:233:11: warning: enumeration value ‘NOT_STARTED’ not handled in switch [-Wswitch] 233 | switch(state_) | ^ fire.cpp:233:11: warning: enumeration value ‘MOVING’ not handled in switch [-Wswitch] fire.cpp:233:11: warning: enumeration value ‘TOUCHING’ not handled in switch [-Wswitch] fire.cpp:233:11: warning: enumeration value ‘DEAD’ not handled in switch [-Wswitch] fire.cpp: In member function ‘virtual void MyFire3::collision(Sprite*)’: fire.cpp:474:11: warning: enumeration value ‘TYPE_MY_SPACE_SHIP’ not handled in switch [-Wswitch] 474 | switch(contact->getType()) | ^ fire.cpp:474:11: warning: enumeration value ‘TYPE_MY_FIRE1’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_MY_FIRE2’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] fire.cpp:474:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] fire.cpp: In member function ‘virtual void MyFire4::collision(Sprite*)’: fire.cpp:633:11: warning: enumeration value ‘TYPE_MY_SPACE_SHIP’ not handled in switch [-Wswitch] 633 | switch(contact->getType()) | ^ fire.cpp:633:11: warning: enumeration value ‘TYPE_MY_FIRE1’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_MY_FIRE2’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] fire.cpp:633:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] fighter2.cpp: In constructor ‘Fighter2::Fighter2(List*, float, float, float, int)’: fighter2.cpp:33:9: warning: unused variable ‘nb’ [-Wunused-variable] 33 | int nb=random()%5; | ^~ fighter2.cpp: In member function ‘virtual void Fighter2::collision(Sprite*)’: fighter2.cpp:205:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 205 | switch(contact->getType()) | ^ fighter2.cpp:205:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] fighter2.cpp:205:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] fighter2.cpp: In member function ‘virtual void Fighter2Fire::collision(Sprite*)’: fighter2.cpp:331:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 331 | switch(contact->getType()) | ^ fighter2.cpp:331:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] fighter2.cpp:331:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT list.cpp -o list.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT listsprite.cpp -o listsprite.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT main.cpp -o main.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT myship.cpp -o myship.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ In file included from listsprite.hpp:24, from listsprite.cpp:20: list.hpp:41:16: warning: ‘virtual void List::Add(Elem*)’ was hidden [-Woverloaded-virtual=] 41 | virtual void Add(Elem * el); | ^~~ listsprite.hpp:38:10: note: by ‘void ListSprite::Add(Sprite*)’ 38 | void Add(Sprite * el); | ^~~ listsprite.cpp: In member function ‘void ListSprite::move()’: listsprite.cpp:96:9: warning: unused variable ‘i’ [-Wunused-variable] 96 | int i=0; | ^ In file included from listsprite.hpp:24, from scene.hpp:26, from main.cpp:37: list.hpp:41:16: warning: ‘virtual void List::Add(Elem*)’ was hidden [-Woverloaded-virtual=] 41 | virtual void Add(Elem * el); | ^~~ listsprite.hpp:38:10: note: by ‘void ListSprite::Add(Sprite*)’ 38 | void Add(Sprite * el); | ^~~ main.cpp: In function ‘int main(int, char**)’: main.cpp:233:69: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 233 | GLvar->module2 = Mix_LoadMUS(GLvar->getFullPath("samples/glax3.xm")); | ^~~~~~~~~~~~~~~~~~ main.cpp:244:21: warning: deleting object of polymorphic class type ‘ListSprite’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 244 | delete scene->globalList; | ^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:265:93: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 265 | GLvar->module1 = Mix_LoadMUS(GLvar->getFullPath("samples/glax.xm")); | ^~~~~~~~~~~~~~~~~ main.cpp:74:9: warning: unused variable ‘keyA’ [-Wunused-variable] 74 | int keyA=0; | ^~~~ main.cpp:75:9: warning: unused variable ‘keyZ’ [-Wunused-variable] 75 | int keyZ=0; | ^~~~ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT piege.cpp -o piege.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT pngtex.cpp -o pngtex.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT scene.cpp -o scene.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ myship.cpp: In constructor ‘MyShip::MyShip(List*, int)’: myship.cpp:79:13: warning: unused variable ‘i’ [-Wunused-variable] 79 | int i; | ^ pngtex.cpp: In constructor ‘PngTex::PngTex(const char*)’: pngtex.cpp:46:10: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 46 | fread( header, 1, sizeof(header), fp); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ myship.cpp: In member function ‘virtual void MyShip::draw()’: myship.cpp:412:13: warning: unused variable ‘i’ [-Wunused-variable] 412 | int i; | ^ myship.cpp: In member function ‘virtual void MyShip::move()’: myship.cpp:558:33: warning: variable ‘explode’ set but not used [-Wunused-but-set-variable] 558 | Sprite *explode; | ^~~~~~~ myship.cpp:611:12: warning: enumeration value ‘UNTOUCHABLE’ not handled in switch [-Wswitch] 611 | switch (state_) | ^ myship.cpp: In member function ‘virtual void MyShip::collision(Sprite*)’: myship.cpp:805:15: warning: enumeration value ‘TYPE_MY_SPACE_SHIP’ not handled in switch [-Wswitch] 805 | switch(contact->getType()) | ^ myship.cpp:805:15: warning: enumeration value ‘TYPE_MY_FIRE1’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_MY_FIRE2’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] myship.cpp:805:15: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT scratcher.cpp -o scratcher.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ piege.cpp: In member function ‘virtual void Piege::move()’: piege.cpp:220:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 220 | if (ringing_) | ^~ piege.cpp:229:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 229 | switch(state_) | ^~~~~~ piege.cpp: In member function ‘virtual void Piege::collision(Sprite*)’: piege.cpp:329:11: warning: enumeration value ‘TYPE_MY_FIRE1’ not handled in switch [-Wswitch] 329 | switch(contact->getType()) | ^ piege.cpp:329:11: warning: enumeration value ‘TYPE_MY_FIRE2’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_CUBE’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] piege.cpp:329:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] In file included from listsprite.hpp:24, from scene.hpp:26, from scene.cpp:24: list.hpp:41:16: warning: ‘virtual void List::Add(Elem*)’ was hidden [-Woverloaded-virtual=] 41 | virtual void Add(Elem * el); | ^~~ listsprite.hpp:38:10: note: by ‘void ListSprite::Add(Sprite*)’ 38 | void Add(Sprite * el); | ^~~ scene.cpp: In member function ‘void Scene::initVariables()’: scene.cpp:256:15: warning: unused variable ‘j’ [-Wunused-variable] 256 | int i,j,k; | ^ scene.cpp:256:17: warning: unused variable ‘k’ [-Wunused-variable] 256 | int i,j,k; | ^ scene.cpp: In member function ‘void Scene::drawFloor()’: scene.cpp:607:72: warning: comparison of integer expressions of different signedness: ‘GLuint’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 607 | if (GLvar->texture_floorMap[textureMap]!=oldFloorMap) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ scene.cpp:613:69: warning: comparison of integer expressions of different signedness: ‘GLuint’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 613 | if (GLvar->texture_floorMap[texture]!=oldFloor) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ scene.cpp:378:16: warning: unused variable ‘dot3LightX’ [-Wunused-variable] 378 | static float dot3LightX = 0; | ^~~~~~~~~~ scene.cpp:379:22: warning: unused variable ‘cpt’ [-Wunused-variable] 379 | static float cpt=0; | ^~~ scene.cpp: In member function ‘void Scene::drawPlayers()’: scene.cpp:869:13: warning: unused variable ‘i’ [-Wunused-variable] 869 | int i; | ^ scene.cpp: In member function ‘void Scene::drawFPS()’: scene.cpp:1056:13: warning: unused variable ‘i’ [-Wunused-variable] 1056 | int i; | ^ scene.cpp:1057:13: warning: variable ‘diff’ set but not used [-Wunused-but-set-variable] 1057 | int diff; | ^~~~ scene.cpp: In member function ‘void Scene::drawFPSBench()’: scene.cpp:2078:13: warning: unused variable ‘i’ [-Wunused-variable] 2078 | int i; | ^ scene.cpp:2079:13: warning: variable ‘diff’ set but not used [-Wunused-but-set-variable] 2079 | int diff; | ^~~~ scene.cpp: In member function ‘void Scene::drawMenu()’: scene.cpp:2115:13: warning: unused variable ‘i’ [-Wunused-variable] 2115 | int i, j; | ^ scene.cpp: In member function ‘void Scene::menuIdle()’: scene.cpp:2321:20: warning: variable ‘benchTime’ set but not used [-Wunused-but-set-variable] 2321 | static int benchTime; | ^~~~~~~~~ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT ship1.cpp -o ship1.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ In file included from sprite.hpp:39, from scratcher.hpp:25, from scratcher.cpp:19: list.hpp:41:16: warning: ‘virtual void List::Add(Elem*)’ was hidden [-Woverloaded-virtual=] 41 | virtual void Add(Elem * el); | ^~~ In file included from scene.hpp:26, from scratcher.cpp:20: listsprite.hpp:38:10: note: by ‘void ListSprite::Add(Sprite*)’ 38 | void Add(Sprite * el); | ^~~ scratcher.cpp: In constructor ‘Scratcher::Scratcher(List*, float, float, int)’: scratcher.cpp:99:11: warning: unused variable ‘dist’ [-Wunused-variable] 99 | float dist = (float)sqrt(dx*dx+dz*dz); | ^~~~ scratcher.cpp: In member function ‘virtual void Scratcher::collision(Sprite*)’: scratcher.cpp:161:11: warning: enumeration value ‘TYPE_MY_SPACE_SHIP’ not handled in switch [-Wswitch] 161 | switch(contact->getType()) | ^ scratcher.cpp:161:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_CUBE’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] scratcher.cpp:161:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] scene.cpp:2342:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2342 | fscanf(fOptions, "%d %d %d %d", &filterValue, &anisValue, &detailValue, &nshadows); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT spirale.cpp -o spirale.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT sprite.cpp -o sprite.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ ship1.cpp: In constructor ‘Ship1::Ship1(List*, float, float, float, int)’: ship1.cpp:35:9: warning: unused variable ‘nb’ [-Wunused-variable] 35 | int nb=random()%5; | ^~ ship1.cpp: In member function ‘virtual void Ship1::collision(Sprite*)’: ship1.cpp:330:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 330 | switch(contact->getType()) | ^ ship1.cpp:330:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] ship1.cpp:330:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] ship1.cpp: In member function ‘virtual void Ship1Fire::collision(Sprite*)’: ship1.cpp:446:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 446 | switch(contact->getType()) | ^ ship1.cpp:446:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_CUBE’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] ship1.cpp:446:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] spirale.cpp: In member function ‘virtual void Spirale::collision(Sprite*)’: spirale.cpp:147:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 147 | switch(contact->getType()) | ^ spirale.cpp:147:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] spirale.cpp:147:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT tache.cpp -o tache.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT tank.cpp -o tank.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ g++ -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/X11R6/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT variables.cpp -o variables.o -DDATADIR=\"/usr/share/glaxium\" cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++ cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-int’ is not valid for C++ In file included from sprite.hpp:39, from tank.hpp:24, from tank.cpp:20: list.hpp:41:16: warning: ‘virtual void List::Add(Elem*)’ was hidden [-Woverloaded-virtual=] 41 | virtual void Add(Elem * el); | ^~~ In file included from scene.hpp:26, from tank.cpp:21: listsprite.hpp:38:10: note: by ‘void ListSprite::Add(Sprite*)’ 38 | void Add(Sprite * el); | ^~~ tank.cpp: In member function ‘virtual void Tank::collision(Sprite*)’: tank.cpp:489:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] 489 | switch(contact->getType()) | ^ tank.cpp:489:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_CUBE’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] tank.cpp:489:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] tank.cpp: In member function ‘virtual void TankFire::collision(Sprite*)’: tank.cpp:633:11: warning: enumeration value ‘TYPE_MY_FIRE4’ not handled in switch [-Wswitch] 633 | switch(contact->getType()) | ^ tank.cpp:633:11: warning: enumeration value ‘TYPE_WALL’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_ENEMY1’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_CUBE’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_EXPLOSION’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_PIECEOFSHIP’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_SHIP1’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_FIRE_SHIP1’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_SPIRALE’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_PIEGE’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_POTO’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_TANK’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_FIRE_TANK’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_SCRATCHER’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_TACHE’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_BANDIT2’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_FIRE_BANDIT2’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_DIAMOND’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_SMOKE’ not handled in switch [-Wswitch] tank.cpp:633:11: warning: enumeration value ‘TYPE_UNDEF’ not handled in switch [-Wswitch] In file included from sprite.hpp:39, from variables.cpp:19: list.hpp:41:16: warning: ‘virtual void List::Add(Elem*)’ was hidden [-Woverloaded-virtual=] 41 | virtual void Add(Elem * el); | ^~~ In file included from variables.cpp:20: listsprite.hpp:38:10: note: by ‘void ListSprite::Add(Sprite*)’ 38 | void Add(Sprite * el); | ^~~ variables.cpp:39:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 39 | "welcome.wav", | ^~~~~~~~~~~~~ variables.cpp:40:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 40 | "tir.wav", | ^~~~~~~~~ variables.cpp:41:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 41 | "explode1.wav", | ^~~~~~~~~~~~~~ variables.cpp:42:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 42 | "explode2.wav", | ^~~~~~~~~~~~~~ variables.cpp:43:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 43 | "tachefire.wav", | ^~~~~~~~~~~~~~~ variables.cpp:44:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 44 | "glups.wav", | ^~~~~~~~~~~ variables.cpp:45:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 45 | "powerup.wav", | ^~~~~~~~~~~~~ variables.cpp:46:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 46 | "detection.wav", | ^~~~~~~~~~~~~~~ variables.cpp:47:9: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 47 | "gameover.wav" | ^~~~~~~~~~~~~~ variables.cpp: In member function ‘void GlaxiumVariables::initVariables()’: variables.cpp:161:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 161 | space_name[0] = "textures/space1.png"; | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:162:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 162 | space_name[1] = "textures/space0.png"; | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:163:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 163 | space_name[2] = "textures/space3.png"; | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:164:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 164 | space_name[3] = "textures/space2.png"; | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp: In member function ‘void GlaxiumVariables::initTextures()’: variables.cpp:229:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 229 | initTexture(texture_floorMap[0], "textures/floormap.png"); | ^~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:232:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 232 | initTexture(texture_floorMap[1], "textures/floormap1.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:235:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 235 | initTexture(texture_floorMap[2], "textures/floormap2.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:238:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 238 | initTexture(texture_floorMap[3], "textures/floormap3.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:241:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 241 | initTexture(texture_floorMap[4], "textures/floormap4.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:245:35: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 245 | initTexture(texture_mark, "textures/mark.png"); | ^~~~~~~~~~~~~~~~~~~ variables.cpp:246:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 246 | initTexture(texture_building, "textures/cube.png"); | ^~~~~~~~~~~~~~~~~~~ variables.cpp:247:36: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 247 | initTexture(texture_tache, "textures/tache.png"); | ^~~~~~~~~~~~~~~~~~~~ variables.cpp:248:40: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 248 | initTexture(texture_deadtache, "textures/deadtache.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:249:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 249 | initTexture(texture_camouflage, "textures/camouflage.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:250:48: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 250 | initTexture(texture_thunder, "textures/thunder.png"); | ^~~~~~~~~~~~~~~~~~~~~~ variables.cpp:251:55: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 251 | initTexture(texture_specialeffect1, "textures/effect1.png"); | ^~~~~~~~~~~~~~~~~~~~~~ variables.cpp:253:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 253 | initTexture(texture_chaine, "textures/chain.png"); | ^~~~~~~~~~~~~~~~~~~~ variables.cpp:254:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 254 | initTexture(texture_myship, "textures/myship.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:255:36: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 255 | initTexture(texture_piege, "textures/piege.png"); | ^~~~~~~~~~~~~~~~~~~~ variables.cpp:256:38: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 256 | initTexture(texture_bandit1, "textures/bandit1.png"); | ^~~~~~~~~~~~~~~~~~~~~~ variables.cpp:257:36: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 257 | initTexture(texture_fire3, "textures/missile.png"); | ^~~~~~~~~~~~~~~~~~~~~~ variables.cpp:258:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 258 | initTexture(texture_fighter2, "textures/fighter2.png"); | ^~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:260:38: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 260 | initTexture(texture_bandit2, "textures/bandit2.png"); | ^~~~~~~~~~~~~~~~~~~~~~ variables.cpp:261:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 261 | initTexture(texture_sphere, "textures/sphere.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:263:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 263 | initTexture(texture_fumee[0], "textures/fumee1.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:264:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 264 | initTexture(texture_fumee[1], "textures/fumee2.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:265:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 265 | initTexture(texture_fumee[2], "textures/fumee3.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:267:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 267 | initTexture(texture_gameover, "textures/gameover.png"); | ^~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:268:36: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 268 | initTexture(texture_board, "textures/board.png"); | ^~~~~~~~~~~~~~~~~~~~ variables.cpp:269:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 269 | initTexture(texture_galaxy, "textures/galaxy.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:271:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 271 | initTexture(texture_capsule[Diamond::POWER], "textures/capsule_shield.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:272:56: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 272 | initTexture(texture_capsule[Diamond::POWERUP], "textures/capsule_power.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:273:53: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 273 | initTexture(texture_capsule[Diamond::BOMB], "textures/capsule_bomb.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:274:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 274 | initTexture(texture_capsule[Diamond::INVUL], "textures/capsule_invul.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp:276:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 276 | initTexture(texture_floor[0], "textures/floor.png"); | ^~~~~~~~~~~~~~~~~~~~ variables.cpp:277:38: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 277 | initTexture(texture_letters, "textures/chars.png"); | ^~~~~~~~~~~~~~~~~~~~ variables.cpp:281:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 281 | initTexture(texture_floor[1], "textures/floor1.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:284:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 284 | initTexture(texture_floor[2], "textures/floor2.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:287:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 287 | initTexture(texture_floor[3], "textures/floor3.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:290:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 290 | initTexture(texture_floor[4], "textures/floor4.png"); | ^~~~~~~~~~~~~~~~~~~~~ variables.cpp:293:37: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 293 | initTexture(texture_border, "textures/border2.png"); | ^~~~~~~~~~~~~~~~~~~~~~ variables.cpp:308:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 308 | texture = new PngTex(getFullPath("textures/glax2.png")); | ^~~~~~~~~~~~~~~~~~~~ variables.cpp: In member function ‘void GlaxiumVariables::initSound()’: variables.cpp:367:39: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 367 | module2 = Mix_LoadMUS(getFullPath("samples/glax3.xm")); | ^~~~~~~~~~~~~~~~~~ In file included from variables.hpp:28, from sprite.hpp:37: variables.cpp: In member function ‘void GlaxiumVariables::initInstallDir()’: conf.h:4:17: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4 | #define DATADIR "/usr/share/glaxium" variables.cpp:401:38: note: in expansion of macro ‘DATADIR’ 401 | installDir = DATADIR"/"; | ^~~~~~~ variables.cpp:404:24: warning: too many arguments for format [-Wformat-extra-args] 404 | printf("Found textures in ./\n", DATADIR); | ^~~~~~~~~~~~~~~~~~~~~~~~ variables.cpp: In static member function ‘static bool GlaxiumVariables::isExtensionSupported(const char*)’: variables.cpp:498:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 498 | if (where == start || *(where - 1) == ' ') | ^~ variables.cpp:501:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 501 | start = terminator; | ^~~~~ variables.cpp: In member function ‘void GlaxiumVariables::initOptionsFile(bool)’: variables.cpp:108:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 108 | fscanf(fOptions, "%d %d %d %d", &filter, &anis, &details, &nShad); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -g -o glaxium bandit2.o cube.o diamond.o elem.o explosion.o fighter2.o fire.o glax_glut.o list.o listsprite.o main.o myship.o piege.o pngtex.o scene.o scratcher.o ship1.o spirale.o sprite.o tache.o tank.o variables.o -lpng -lX11 -lGLU -lGL -lSDL_mixer -L/usr/X11R6/lib -lSDL -lm + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.FpTv2G + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd glaxium_0.5 + mkdir -p /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/bin + echo 'warning: %makeinstall is deprecated, try %make_install instead' warning: %makeinstall is deprecated, try %make_install instead + /usr/bin/make prefix=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr exec_prefix=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr bindir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/bin sbindir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/sbin sysconfdir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/etc datadir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share includedir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/include libdir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/lib64 libexecdir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/libexec localstatedir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/var sharedstatedir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/var/lib mandir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/man infodir=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/info install Instaling glaxium in /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/bin and its data in /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/glaxium + ln -s opengl-game-wrapper.sh /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/bin/glaxium-wrapper + mkdir -p /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/applications + desktop-file-install --dir /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/applications /builddir/build/SOURCES/glaxium.desktop + mkdir -p /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/icons/hicolor/128x128/apps + install -p -m 644 /builddir/build/SOURCES/glaxium.png /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/icons/hicolor/128x128/apps + mkdir -p /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/appdata + install -p -m 644 /builddir/build/SOURCES/glaxium.appdata.xml /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/appdata + appstream-util validate-relax --nonet /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/appdata/glaxium.appdata.xml /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/appdata/glaxium.appdata.xml: OK + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 0.5-41.fc40 --unique-debug-suffix -0.5-41.fc40.riscv64 --unique-debug-src-base glaxium-0.5-41.fc40.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/glaxium_0.5 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/glaxium-0.5-41.fc40.riscv64 1432 blocks find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: glaxium-0.5-41.fc40.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.9mFVeJ + umask 022 + cd /builddir/build/BUILD + cd glaxium_0.5 + DOCDIR=/builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/doc/glaxium + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/doc/glaxium + cp -pr /builddir/build/BUILD/glaxium_0.5/CHANGES.txt /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/doc/glaxium + cp -pr /builddir/build/BUILD/glaxium_0.5/LICENSE /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/doc/glaxium + cp -pr /builddir/build/BUILD/glaxium_0.5/README.txt /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64/usr/share/doc/glaxium + RPM_EC=0 ++ jobs -p + exit 0 Provides: application() application(glaxium.desktop) glaxium = 0.5-41.fc40 glaxium(riscv-64) = 0.5-41.fc40 metainfo() metainfo(glaxium.appdata.xml) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libGL.so.1()(64bit) libGLU.so.1()(64bit) libSDL-1.2.so.0()(64bit) libSDL_mixer-1.2.so.0()(64bit) libX11.so.6()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libpng16.so.16()(64bit) libpng16.so.16(PNG16_0)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Processing files: glaxium-debugsource-0.5-41.fc40.riscv64 Provides: glaxium-debugsource = 0.5-41.fc40 glaxium-debugsource(riscv-64) = 0.5-41.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: glaxium-debuginfo-0.5-41.fc40.riscv64 Provides: debuginfo(build-id) = 253f5c6cfce29148ef5183c12ddbd948dec9e1bc glaxium-debuginfo = 0.5-41.fc40 glaxium-debuginfo(riscv-64) = 0.5-41.fc40 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: glaxium-debugsource(riscv-64) = 0.5-41.fc40 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64 Wrote: /builddir/build/RPMS/glaxium-debuginfo-0.5-41.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/glaxium-debugsource-0.5-41.fc40.riscv64.rpm Wrote: /builddir/build/RPMS/glaxium-0.5-41.fc40.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.K8tpsn + umask 022 + cd /builddir/build/BUILD + cd glaxium_0.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/glaxium-0.5-41.fc40.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.tvcE0B + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/glaxium_0.5-SPECPARTS + rm -rf glaxium_0.5 glaxium_0.5.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Child return code was: 0