Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/pekka-kana-2.spec'], chrootPath='/var/lib/mock/fedora-35-i686-1631356585.551019/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tcfqx_vf:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tcfqx_vf:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', '5b3d235a23874b2aa1cdff4530ab98f4', '-D', '/var/lib/mock/fedora-35-i686-1631356585.551019/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tcfqx_vf:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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 --target i686 --nodeps /builddir/build/SPECS/pekka-kana-2.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'} and shell False Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1621987200 Wrote: /builddir/build/SRPMS/pekka-kana-2-1.2.7-1.fc35.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/pekka-kana-2.spec'], chrootPath='/var/lib/mock/fedora-35-i686-1631356585.551019/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=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tcfqx_vf:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tcfqx_vf:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', '9dcc5ff284c94582b3103a7ad419d887', '-D', '/var/lib/mock/fedora-35-i686-1631356585.551019/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tcfqx_vf:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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 --target i686 --nodeps /builddir/build/SPECS/pekka-kana-2.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'} and shell False Building target platforms: i686 Building for target i686 setting SOURCE_DATE_EPOCH=1621987200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nZbn8T + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pekka-kana-2-1.2.7 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/pekka-kana-2-1.2.7.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pekka-kana-2-1.2.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's!/usr/share/games/pekka-kana-2/data!/usr/share/pekka-kana-2/data!' src/pk2.cpp + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PKBCiX + umask 022 + cd /builddir/build/BUILD + cd pekka-kana-2-1.2.7 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + 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 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j2 V=1 VERBOSE=1 mkdir -p bin/ >/dev/null mkdir -p build/ >/dev/null -Some dependence of build/sprite.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/sprite.o -c src/sprite.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/sprite.o -Isrc/ src/sprite.cpp > build/sprite.d src/sprite.cpp: In member function 'int PK2Sprite::AI_Seuraa_Pelaajaa_Jos_Nakee(PK2Sprite&)': src/sprite.cpp:1279:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1279 | if ((pelaaja.x < x && flip_x) || (pelaaja.x > x && ! flip_x)) | ^ src/sprite.cpp: In member function 'int PK2Sprite::AI_Seuraa_Pelaajaa_Jos_Nakee_Vert_Hori(PK2Sprite&)': src/sprite.cpp:1398:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1398 | if ((pelaaja.x < x && flip_x) || (pelaaja.x > x && ! flip_x)) | ^ -Some dependence of build/map.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/map.o -c src/map.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/map.o -Isrc/ src/map.cpp > build/map.d src/map.cpp: In constructor 'PK2Kartta::PK2Kartta()': src/map.cpp:121:23: warning: comparison of integer expressions of different signedness: 'int' and 'const DWORD' {aka 'const unsigned int'} [-Wsign-compare] 121 | for (int i=0;i PK2KARTTA_KARTTA_LEVEYS) continue; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/map.cpp:1343:62: warning: comparison of integer expressions of different signedness: 'int' and 'const DWORD' {aka 'const unsigned int'} [-Wsign-compare] 1343 | if (y + kartta_y < 0 || y + kartta_y > PK2KARTTA_KARTTA_KORKEUS) continue; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/map.cpp:1346:37: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1346 | if(i<0 || i >= sizeof(taustat)) continue; //Dont access a not allowed address | ~~^~~~~~~~~~~~~~~~~~ src/map.cpp: In member function 'int PK2Kartta::Piirra_Seinat(int, int, bool)': src/map.cpp:1412:62: warning: comparison of integer expressions of different signedness: 'int' and 'const DWORD' {aka 'const unsigned int'} [-Wsign-compare] 1412 | if (x + kartta_x < 0 || x + kartta_x > PK2KARTTA_KARTTA_LEVEYS) continue; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/map.cpp:1413:62: warning: comparison of integer expressions of different signedness: 'int' and 'const DWORD' {aka 'const unsigned int'} [-Wsign-compare] 1413 | if (y + kartta_y < 0 || y + kartta_y > PK2KARTTA_KARTTA_KORKEUS) continue; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/map.cpp:1416:37: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1416 | if(i<0 || i >= sizeof(seinat)) continue; //Dont access a not allowed address | ~~^~~~~~~~~~~~~~~~~ src/map.cpp:1371:17: warning: unused variable 'by' [-Wunused-variable] 1371 | by = 0, bx = 0, | ^~ src/map.cpp:1371:25: warning: unused variable 'bx' [-Wunused-variable] 1371 | by = 0, bx = 0, | ^~ -Some dependence of build/draw.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/draw.o -c src/draw.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/draw.o -Isrc/ src/draw.cpp > build/draw.d -Some dependence of build/pk2.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/pk2.o -c src/pk2.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/pk2.o -Isrc/ src/pk2.cpp > build/pk2.d src/pk2.cpp: In function 'int PK_Sumenna_Kuva(int, DWORD, int, int)': src/pk2.cpp:1555:31: warning: comparison of integer expressions of different signedness: 'DWORD' {aka 'unsigned int'} and 'int' [-Wsign-compare] 1555 | if (x == startx || x == kleveys-31 || y == 35 || y == kkorkeus-31) | ~~^~~~~~~~~ src/pk2.cpp: In function 'void PK_Kartta_Laske_Reunat()': src/pk2.cpp:1581:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 1581 | for (int x=1;x PK2KARTTA_KARTTA_LEVEYS || y < 0 || y > PK2KARTTA_KARTTA_LEVEYS) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/pk2.cpp:2753:64: warning: comparison of integer expressions of different signedness: 'int' and 'const DWORD' {aka 'const unsigned int'} [-Wsign-compare] 2753 | if (x < 0 || x > PK2KARTTA_KARTTA_LEVEYS || y < 0 || y > PK2KARTTA_KARTTA_LEVEYS) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/pk2.cpp: In function 'int PK_Kartta_Aseta_Spritet()': src/pk2.cpp:3013:23: warning: comparison of integer expressions of different signedness: 'int' and 'const DWORD' {aka 'const unsigned int'} [-Wsign-compare] 3013 | for (int x=0;xmuutos > -1) | ^~ src/pk2.cpp:4979:73: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 4979 | break; | ^~~~~ src/pk2.cpp: In function 'int PK_Piirra_Tausta()': src/pk2.cpp:5739:13: warning: unused variable 'pallarx2' [-Wunused-variable] 5739 | int pallarx2 = (kamera_x%1280)/2; | ^~~~~~~~ src/pk2.cpp:5740:13: warning: unused variable 'pallary2' [-Wunused-variable] 5740 | int pallary2 = (kamera_y%960)/2; | ^~~~~~~~ src/pk2.cpp: In function 'int PK_Piirra_Menut_Kontrollit()': src/pk2.cpp:6737:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 6737 | if (PK_Piirra_Menut_Valinta(tekstit->Hae_Teksti(txt_controls_edit),100,90+my)) | ^~ src/pk2.cpp:6739:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 6739 | menu_valittu_id = 0; //Set menu cursor to 0 | ^~~~~~~~~~~~~~~ src/pk2.cpp: In function 'int PK_Piirra_Kartta()': src/pk2.cpp:7034:13: warning: unused variable 'nuppi_x' [-Wunused-variable] 7034 | int nuppi_x = 0, nuppi_y = 0; | ^~~~~~~ src/pk2.cpp:7034:26: warning: unused variable 'nuppi_y' [-Wunused-variable] 7034 | int nuppi_x = 0, nuppi_y = 0; | ^~~~~~~ src/pk2.cpp: In function 'int PK_Piirra_Pistelasku()': src/pk2.cpp:7141:13: warning: variable 'vali' set but not used [-Wunused-but-set-variable] 7141 | int vali = 20; | ^~~~ src/pk2.cpp:7144:17: warning: unused variable 'vari' [-Wunused-variable] 7144 | int vari = 0, kerroin; | ^~~~ src/pk2.cpp: In function 'int PK_Main_Pistelasku()': src/pk2.cpp:7472:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 7472 | if (pistelaskudelay == 0) | ^ src/pk2.cpp:7470:13: warning: unused variable 'energia' [-Wunused-variable] 7470 | int energia = spritet[pelaaja_index].energia; | ^~~~~~~ In file included from /usr/include/string.h:519, from src/map.h:17, from src/pk2.cpp:31: In function 'strcpy', inlined from 'PK_Episodit_Aakkosta()' at src/pk2.cpp:1147:12: /usr/include/bits/string_fortified.h:79:33: warning: 'strcpy' accessing 1 byte at offsets [0, 38400] and [0, 38400] overlaps 1 byte at offset [0, 38399] [-Wrestrict] 79 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/pk2.cpp: In function 'PK_Prototyyppi_Lataa_Kaikki()': src/pk2.cpp:2521:47: warning: 'viimeinen_proto' may be used uninitialized in this function [-Wmaybe-uninitialized] 2521 | seuraava_vapaa_proto = viimeinen_proto+1; | ~~~~~~~~~~~~~~~^~ src/pk2.cpp: In function 'PK_Sprite_Liikuta(int)': src/pk2.cpp:4551:43: warning: 'palikat_y_lkm' may be used uninitialized in this function [-Wmaybe-uninitialized] 4551 | for (y=0;y build/font.d src/font.cpp: In member function 'int PisteFont2::LoadFile(const char*, const char*)': src/font.cpp:93:27: warning: variable 'buf_width' set but not used [-Wunused-but-set-variable] 93 | int buf_x, buf_y, buf_width; | ^~~~~~~~~ -Some dependence of build/engine.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/engine.o -c src/engine.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/engine.o -Isrc/ src/engine.cpp > build/engine.d -Some dependence of build/language.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/language.o -c src/language.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/language.o -Isrc/ src/language.cpp > build/language.d -Some dependence of build/input.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/input.o -c src/input.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/input.o -Isrc/ src/input.cpp > build/input.d -Some dependence of build/log.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/log.o -c src/log.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/log.o -Isrc/ src/log.cpp > build/log.d src/log.cpp: In function 'int PisteLog_Kirjoita(char*)': src/log.cpp:30:21: warning: unused variable 'virhe' [-Wunused-variable] 30 | int virhe = 0; | ^~~~~ -Some dependence of build/utils.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/utils.o -c src/utils.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/utils.o -Isrc/ src/utils.cpp > build/utils.d src/utils.cpp: In function 'void PisteUtils_Lower(char*)': src/utils.cpp:27:24: warning: statement has no effect [-Wunused-value] 27 | tolower(string[i]); | ~~~~~~~^~~~~~~~~~~ src/utils.cpp: In function 'char* PisteUtils_FindImage(char*)': src/utils.cpp:56:27: warning: operation on 'c' may be undefined [-Wsequence-point] 56 | while(c != ext) *c++ = toupper(*c); | ~^~ src/utils.cpp:56:27: warning: operation on 'c' may be undefined [-Wsequence-point] -Some dependence of build/sound.o was changed, updating g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -Isrc/ -o build/sound.o -c src/sound.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/include/SDL2 -D_REENTRANT -g -O2 -std=gnu++17 -D_FORTIFY_SOURCE=2 -fPIE -Wno-unused-result -Wno-write-strings -MM -MT build/sound.o -Isrc/ src/sound.cpp > build/sound.d src/sound.cpp: In function 'int PisteSound_Start()': src/sound.cpp:154:34: warning: enum constant in boolean context [-Wint-in-bool-context] 154 | Mix_Init(MIX_INIT_MOD || MIX_INIT_MP3 || MIX_INIT_OGG); | ^~~~~~~~~~~~ src/sound.cpp:154:34: warning: enum constant in boolean context [-Wint-in-bool-context] src/sound.cpp:154:50: warning: enum constant in boolean context [-Wint-in-bool-context] 154 | Mix_Init(MIX_INIT_MOD || MIX_INIT_MP3 || MIX_INIT_OGG); | ^~~~~~~~~~~~ src/sound.cpp: In function 'int PisteSound_Update()': src/sound.cpp:158:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 158 | for(int i=0;i