* Package: games-fps/blackshades-20070723-r1 * Repository: gentoo * Maintainer: games@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking Textures.tar.bz2 to /var/tmp/portage/games-fps/blackshades-20070723-r1/work >>> Unpacking blackshades-20070723.tar.bz2 to /var/tmp/portage/games-fps/blackshades-20070723-r1/work >>> Source unpacked in /var/tmp/portage/games-fps/blackshades-20070723-r1/work >>> Preparing source in /var/tmp/portage/games-fps/blackshades-20070723-r1/work/blackshades ... * Applying blackshades-datadir.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-fps/blackshades-20070723-r1/work/blackshades ... >>> Source configured. >>> Compiling source in /var/tmp/portage/games-fps/blackshades-20070723-r1/work/blackshades ... make -j 1 bindir mkdir -p ./objs make -j 1 x86_64-pc-linux-gnu-g++ -c -o objs/Camera.o Source/Camera.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h In file included from Source/Quaternions.h:9, from Source/Camera.h:12, from Source/Camera.cpp:2: Source/Maths.h:8:35: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 8 | double fast_sqrt (register double arg); | ^~~ In file included from Source/Camera.h:12, from Source/Camera.cpp:2: Source/Quaternions.h:72:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 72 | float fast_sqrt (register float arg); | ^~~ x86_64-pc-linux-gnu-g++ -c -o objs/Decals.o Source/Decals.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h In file included from Source/Quaternions.h:9, from Source/Decals.h:4, from Source/Decals.cpp:1: Source/Maths.h:8:35: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 8 | double fast_sqrt (register double arg); | ^~~ In file included from Source/Decals.h:4, from Source/Decals.cpp:1: Source/Quaternions.h:72:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 72 | float fast_sqrt (register float arg); | ^~~ In file included from Source/Decals.cpp:1: Source/Decals.h: In destructor ‘Decals::~Decals()’: Source/Decals.h:53:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 53 | glDeleteTextures( 1, (const GLuint *)bulletholetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Decals.h:54:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 54 | glDeleteTextures( 1, (const GLuint *)cratertextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-g++ -c -o objs/Fog.o Source/Fog.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h In file included from Source/Quaternions.h:9, from Source/Fog.h:11, from Source/Fog.cpp:2: Source/Maths.h:8:35: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 8 | double fast_sqrt (register double arg); | ^~~ In file included from Source/Fog.h:11, from Source/Fog.cpp:2: Source/Quaternions.h:72:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 72 | float fast_sqrt (register float arg); | ^~~ x86_64-pc-linux-gnu-g++ -c -o objs/Frustum.o Source/Frustum.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h x86_64-pc-linux-gnu-g++ -c -o objs/GameDraw.o Source/GameDraw.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h In file included from Source/Quaternions.h:9, from Source/Game.h:39, from Source/GameDraw.cpp:1: Source/Maths.h:8:35: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 8 | double fast_sqrt (register double arg); | ^~~ In file included from Source/Game.h:39, from Source/GameDraw.cpp:1: Source/Quaternions.h:72:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 72 | float fast_sqrt (register float arg); | ^~~ In file included from Source/Game.h:44, from Source/GameDraw.cpp:1: Source/Text.h: In destructor ‘Text::~Text()’: Source/Text.h:28:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 28 | glDeleteTextures( 1, (const GLuint *)FontTexture ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:48, from Source/GameDraw.cpp:1: Source/Sprites.h: In destructor ‘Sprites::~Sprites()’: Source/Sprites.h:84:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 84 | glDeleteTextures( 1, (const GLuint *)muzzleflaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:85:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 85 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:86:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 86 | glDeleteTextures( 1, (const GLuint *)bullettextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:87:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 87 | glDeleteTextures( 1, (const GLuint *)smoketextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:88:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 88 | glDeleteTextures( 1, (const GLuint *)bloodtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:89:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 89 | glDeleteTextures( 1, (const GLuint *)raintextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:90:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 90 | glDeleteTextures( 1, (const GLuint *)snowtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:50, from Source/GameDraw.cpp:1: Source/Decals.h: In destructor ‘Decals::~Decals()’: Source/Decals.h:53:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 53 | glDeleteTextures( 1, (const GLuint *)bulletholetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Decals.h:54:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 54 | glDeleteTextures( 1, (const GLuint *)cratertextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/GameDraw.cpp:1: Source/Game.h: In destructor ‘Game::~Game()’: Source/Game.h:223:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 223 | glDeleteTextures( 1, (const GLuint *)personspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:224:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 224 | glDeleteTextures( 1, (const GLuint *)deadpersonspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:225:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 225 | glDeleteTextures( 1, (const GLuint *)scopetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:226:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 226 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameDraw.cpp: In member function ‘int Game::DrawGLScene()’: Source/GameDraw.cpp:768:68: warning: narrowing conversion of ‘(((double)fogcolorr) * 1.6000000000000001e+0)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 768 | GLfloat LightDiffuse[]= { fogcolorr*1.6, fogcolorg*1.6, fogcolorr*1.6, 1.0f }; | ~~~~~~~~~^~~~ Source/GameDraw.cpp:768:83: warning: narrowing conversion of ‘(((double)fogcolorg) * 1.6000000000000001e+0)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 768 | GLfloat LightDiffuse[]= { fogcolorr*1.6, fogcolorg*1.6, fogcolorr*1.6, 1.0f }; | ~~~~~~~~~^~~~ Source/GameDraw.cpp:768:98: warning: narrowing conversion of ‘(((double)fogcolorr) * 1.6000000000000001e+0)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 768 | at LightDiffuse[]= { fogcolorr*1.6, fogcolorg*1.6, fogcolorr*1.6, 1.0f }; | ~~~~~~~~~^~~~ Source/GameDraw.cpp:778:68: warning: narrowing conversion of ‘(((double)fogcolorr) * 8.0000000000000004e-1)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 778 | GLfloat LightAmbient[]= { fogcolorr*.8, fogcolorg*.8, fogcolorb*.8, 1.0f}; | ~~~~~~~~~^~~ Source/GameDraw.cpp:778:82: warning: narrowing conversion of ‘(((double)fogcolorg) * 8.0000000000000004e-1)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 778 | GLfloat LightAmbient[]= { fogcolorr*.8, fogcolorg*.8, fogcolorb*.8, 1.0f}; | ~~~~~~~~~^~~ Source/GameDraw.cpp:778:96: warning: narrowing conversion of ‘(((double)fogcolorb) * 8.0000000000000004e-1)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 778 | loat LightAmbient[]= { fogcolorr*.8, fogcolorg*.8, fogcolorb*.8, 1.0f}; | ~~~~~~~~~^~~ Source/GameDraw.cpp:780:68: warning: narrowing conversion of ‘(((double)fogcolorr) * 8.0000000000000004e-1)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 780 | GLfloat LightDiffuse[]= { fogcolorr*.8, fogcolorg*.8, fogcolorr*.8, 1.0f }; | ~~~~~~~~~^~~ Source/GameDraw.cpp:780:82: warning: narrowing conversion of ‘(((double)fogcolorg) * 8.0000000000000004e-1)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 780 | GLfloat LightDiffuse[]= { fogcolorr*.8, fogcolorg*.8, fogcolorr*.8, 1.0f }; | ~~~~~~~~~^~~ Source/GameDraw.cpp:780:96: warning: narrowing conversion of ‘(((double)fogcolorr) * 8.0000000000000004e-1)’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 780 | loat LightDiffuse[]= { fogcolorr*.8, fogcolorg*.8, fogcolorr*.8, 1.0f }; | ~~~~~~~~~^~~ Source/GameDraw.cpp:812:61: warning: narrowing conversion of ‘(1.0000000000000001e-1 + ((double)(sinefluct / (float)5)))’ from ‘double’ to ‘GLfloat’ {aka ‘float’} [-Wnarrowing] 812 | GLfloat LightDiffuse[]= { .1+sinefluct/5, 0, 0, 1.0f }; | ~~^~~~~~~~~~~~ Source/GameDraw.cpp:972:21: warning: unused variable ‘move2’ [-Wunused-variable] 972 | XYZ move2; | ^~~~~ Source/GameDraw.cpp:980:21: warning: unused variable ‘beginoccludex’ [-Wunused-variable] 980 | int beginoccludex,endoccludex; | ^~~~~~~~~~~~~ Source/GameDraw.cpp:980:35: warning: unused variable ‘endoccludex’ [-Wunused-variable] 980 | int beginoccludex,endoccludex; | ^~~~~~~~~~~ Source/GameDraw.cpp:982:21: warning: unused variable ‘beginoccludez’ [-Wunused-variable] 982 | int beginoccludez,endoccludez; | ^~~~~~~~~~~~~ Source/GameDraw.cpp:982:35: warning: unused variable ‘endoccludez’ [-Wunused-variable] 982 | int beginoccludez,endoccludez; | ^~~~~~~~~~~ Source/GameDraw.cpp:1012:21: warning: unused variable ‘numfail’ [-Wunused-variable] 1012 | int numfail; | ^~~~~~~ x86_64-pc-linux-gnu-g++ -c -o objs/GameInitDispose.o Source/GameInitDispose.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h In file included from Source/Quaternions.h:9, from Source/Game.h:39, from Source/GameInitDispose.cpp:7: Source/Maths.h:8:35: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 8 | double fast_sqrt (register double arg); | ^~~ In file included from Source/Game.h:39, from Source/GameInitDispose.cpp:7: Source/Quaternions.h:72:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 72 | float fast_sqrt (register float arg); | ^~~ In file included from Source/Game.h:44, from Source/GameInitDispose.cpp:7: Source/Text.h: In destructor ‘Text::~Text()’: Source/Text.h:28:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 28 | glDeleteTextures( 1, (const GLuint *)FontTexture ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:48, from Source/GameInitDispose.cpp:7: Source/Sprites.h: In destructor ‘Sprites::~Sprites()’: Source/Sprites.h:84:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 84 | glDeleteTextures( 1, (const GLuint *)muzzleflaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:85:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 85 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:86:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 86 | glDeleteTextures( 1, (const GLuint *)bullettextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:87:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 87 | glDeleteTextures( 1, (const GLuint *)smoketextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:88:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 88 | glDeleteTextures( 1, (const GLuint *)bloodtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:89:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 89 | glDeleteTextures( 1, (const GLuint *)raintextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:90:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 90 | glDeleteTextures( 1, (const GLuint *)snowtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:50, from Source/GameInitDispose.cpp:7: Source/Decals.h: In destructor ‘Decals::~Decals()’: Source/Decals.h:53:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 53 | glDeleteTextures( 1, (const GLuint *)bulletholetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Decals.h:54:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 54 | glDeleteTextures( 1, (const GLuint *)cratertextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/GameInitDispose.cpp:7: Source/Game.h: In destructor ‘Game::~Game()’: Source/Game.h:223:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 223 | glDeleteTextures( 1, (const GLuint *)personspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:224:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 224 | glDeleteTextures( 1, (const GLuint *)deadpersonspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:225:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 225 | glDeleteTextures( 1, (const GLuint *)scopetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:226:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 226 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp: In function ‘void LoadSounds(bool)’: Source/GameInitDispose.cpp:89:16: warning: unused variable ‘sFileName’ [-Wunused-variable] 89 | Str255 sFileName; | ^~~~~~~~~ Source/GameInitDispose.cpp:91:15: warning: unused variable ‘fRefNum’ [-Wunused-variable] 91 | short fRefNum; | ^~~~~~~ Source/GameInitDispose.cpp:97:23: warning: unused variable ‘ulEAXVal’ [-Wunused-variable] 97 | unsigned long ulEAXVal; | ^~~~~~~~ Source/GameInitDispose.cpp:99:14: warning: unused variable ‘lGlobalReverb’ [-Wunused-variable] 99 | long lGlobalReverb; | ^~~~~~~~~~~~~ Source/GameInitDispose.cpp: In member function ‘void Game::LoadingScreen(float)’: Source/GameInitDispose.cpp:1164:15: warning: unused variable ‘size’ [-Wunused-variable] 1164 | float size=1; | ^~~~ Source/GameInitDispose.cpp: In member function ‘void Game::InitGame()’: Source/GameInitDispose.cpp:3761:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3761 | LoadPersonSpriteTexture(":Data:Textures:Personsprite.tga",&personspritetextureptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3763:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3763 | LoadPersonSpriteTexture(":Data:Textures:DeadPersonsprite.tga",&deadpersonspritetextureptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3765:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3765 | LoadPersonSpriteTexture(":Data:Textures:Scope.tga",&scopetextureptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3767:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3767 | LoadPersonSpriteTexture(":Data:Textures:Flare.tga",&flaretextureptr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3771:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3771 | sprites.LoadFlareTexture(":Data:Textures:HitFlash.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3773:48: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3773 | sprites.LoadMuzzleFlareTexture(":Data:Textures:MuzzleFlash.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3775:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3775 | sprites.LoadSmokeTexture(":Data:Textures:Smoke.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3777:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3777 | sprites.LoadBloodTexture(":Data:Textures:Blood.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3779:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3779 | sprites.LoadRainTexture(":Data:Textures:rain.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3781:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3781 | sprites.LoadSnowTexture(":Data:Textures:snow.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3783:46: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3783 | decals.LoadBulletHoleTexture(":Data:Textures:BulletHole.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3785:42: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3785 | decals.LoadCraterTexture(":Data:Textures:Crater.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3787:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3787 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood1.tga",0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3789:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3789 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood2.tga",1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3791:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3791 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood3.tga",2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3793:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3793 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood4.tga",3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3795:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3795 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood5.tga",4); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3797:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3797 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood6.tga",5); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3799:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3799 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood7.tga",6); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3801:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3801 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood8.tga",7); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3803:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3803 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood9.tga",8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3805:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3805 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood10.tga",9); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3807:41: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 3807 | decals.LoadBloodTexture(":Data:Textures:Blood:Blood11.tga",10); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameInitDispose.cpp:3865:23: warning: unused variable ‘swapInt’ [-Wunused-variable] 3865 | GLint swapInt = 1; | ^~~~~~~ Source/GameInitDispose.cpp: In member function ‘int Game::InitGL()’: Source/GameInitDispose.cpp:4203:30: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 4203 | text.LoadFontTexture(":Data:Textures:Font.tga"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-g++ -c -o objs/GameLoop.o Source/GameLoop.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h In file included from Source/Quaternions.h:9, from Source/Game.h:39, from Source/GameLoop.cpp:1: Source/Maths.h:8:35: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 8 | double fast_sqrt (register double arg); | ^~~ In file included from Source/Game.h:39, from Source/GameLoop.cpp:1: Source/Quaternions.h:72:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 72 | float fast_sqrt (register float arg); | ^~~ In file included from Source/Game.h:44, from Source/GameLoop.cpp:1: Source/Text.h: In destructor ‘Text::~Text()’: Source/Text.h:28:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 28 | glDeleteTextures( 1, (const GLuint *)FontTexture ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:48, from Source/GameLoop.cpp:1: Source/Sprites.h: In destructor ‘Sprites::~Sprites()’: Source/Sprites.h:84:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 84 | glDeleteTextures( 1, (const GLuint *)muzzleflaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:85:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 85 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:86:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 86 | glDeleteTextures( 1, (const GLuint *)bullettextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:87:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 87 | glDeleteTextures( 1, (const GLuint *)smoketextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:88:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 88 | glDeleteTextures( 1, (const GLuint *)bloodtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:89:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 89 | glDeleteTextures( 1, (const GLuint *)raintextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:90:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 90 | glDeleteTextures( 1, (const GLuint *)snowtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:50, from Source/GameLoop.cpp:1: Source/Decals.h: In destructor ‘Decals::~Decals()’: Source/Decals.h:53:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 53 | glDeleteTextures( 1, (const GLuint *)bulletholetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Decals.h:54:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 54 | glDeleteTextures( 1, (const GLuint *)cratertextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/GameLoop.cpp:1: Source/Game.h: In destructor ‘Game::~Game()’: Source/Game.h:223:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 223 | glDeleteTextures( 1, (const GLuint *)personspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:224:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 224 | glDeleteTextures( 1, (const GLuint *)deadpersonspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:225:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 225 | glDeleteTextures( 1, (const GLuint *)scopetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:226:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 226 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-g++ -c -o objs/GameTick.o Source/GameTick.cpp -pipe -march=native -fno-diagnostics-color -Og -g -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./Source -include Source/Support.h In file included from Source/Quaternions.h:9, from Source/Game.h:39, from Source/GameTick.cpp:1: Source/Maths.h:8:35: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 8 | double fast_sqrt (register double arg); | ^~~ In file included from Source/Game.h:39, from Source/GameTick.cpp:1: Source/Quaternions.h:72:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 72 | float fast_sqrt (register float arg); | ^~~ In file included from Source/Game.h:44, from Source/GameTick.cpp:1: Source/Text.h: In destructor ‘Text::~Text()’: Source/Text.h:28:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 28 | glDeleteTextures( 1, (const GLuint *)FontTexture ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:48, from Source/GameTick.cpp:1: Source/Sprites.h: In destructor ‘Sprites::~Sprites()’: Source/Sprites.h:84:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 84 | glDeleteTextures( 1, (const GLuint *)muzzleflaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:85:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 85 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:86:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 86 | glDeleteTextures( 1, (const GLuint *)bullettextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:87:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 87 | glDeleteTextures( 1, (const GLuint *)smoketextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:88:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 88 | glDeleteTextures( 1, (const GLuint *)bloodtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:89:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 89 | glDeleteTextures( 1, (const GLuint *)raintextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Sprites.h:90:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 90 | glDeleteTextures( 1, (const GLuint *)snowtextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/Game.h:50, from Source/GameTick.cpp:1: Source/Decals.h: In destructor ‘Decals::~Decals()’: Source/Decals.h:53:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 53 | glDeleteTextures( 1, (const GLuint *)bulletholetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Decals.h:54:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 54 | glDeleteTextures( 1, (const GLuint *)cratertextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Source/GameTick.cpp:1: Source/Game.h: In destructor ‘Game::~Game()’: Source/Game.h:223:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 223 | glDeleteTextures( 1, (const GLuint *)personspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:224:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 224 | glDeleteTextures( 1, (const GLuint *)deadpersonspritetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:225:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 225 | glDeleteTextures( 1, (const GLuint *)scopetextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/Game.h:226:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 226 | glDeleteTextures( 1, (const GLuint *)flaretextureptr ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameTick.cpp: In member function ‘void Game::Tick()’: Source/GameTick.cpp:534:39: warning: unused variable ‘rad2deg’ [-Wunused-variable] 534 | float rad2deg=56.54866776; | ^~~~~~~ Source/GameTick.cpp:917:39: warning: statement has no effect [-Wunused-value] 917 | beginx==person[k].whichblockx; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ Source/GameTick.cpp:919:39: warning: statement has no effect [-Wunused-value] 919 | beginz==person[k].whichblocky; | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ Source/GameTick.cpp:921:37: warning: statement has no effect [-Wunused-value] 921 | endx==person[k].whichblockx; | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ Source/GameTick.cpp:923:37: warning: statement has no effect [-Wunused-value] 923 | endz==person[k].whichblocky; | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ Source/GameTick.cpp:1065:33: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1065 | if(k==0)onblockx=-1;onblocky=-1; | ^~ Source/GameTick.cpp:1065:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1065 | if(k==0)onblockx=-1;onblocky=-1; | ^~~~~~~~ Source/GameTick.cpp:3751:175: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] 3751 | hichhit].type!=zombietype&&person[whichhit].currentanimation!=getupfrontanim&person[whichhit].currentanimation!=getupbackanim){ Source/GameTick.cpp:4027:61: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] 4027 | if (!dot_ta <= 0&&!dot_tb <= 0){ | ^~ Source/GameTick.cpp:4027:53: note: add parentheses around left hand side expression to silence this warning 4027 | if (!dot_ta <= 0&&!dot_tb <= 0){ | ^~~~~~~ | ( ) Source/GameTick.cpp:4027:75: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] 4027 | if (!dot_ta <= 0&&!dot_tb <= 0){ | ^~ Source/GameTick.cpp:4027:67: note: add parentheses around left hand side expression to silence this warning 4027 | if (!dot_ta <= 0&&!dot_tb <= 0){ | ^~~~~~~ | ( ) Source/GameTick.cpp:4093:55: warning: unused variable ‘oldend’ [-Wunused-variable] 4093 | XYZ end, aim, oldend; | ^~~~~~ Source/GameTick.cpp:340:23: warning: unused variable ‘speed’ [-Wunused-variable] 340 | float speed=10; | ^~~~~ Source/GameTick.cpp:834:21: warning: unused variable ‘distsquared’ [-Wunused-variable] 834 | int distsquared; | ^~~~~~~~~~~ Source/GameTick.cpp:840:23: warning: unused variable ‘howmuchintersect’ [-Wunused-variable] 840 | float howmuchintersect; | ^~~~~~~~~~~~~~~~ Source/GameTick.cpp:844:23: warning: unused variable ‘olddist’ [-Wunused-variable] 844 | float olddist; | ^~~~~~~ Source/GameTick.cpp:846:21: warning: unused variable ‘nothing’ [-Wunused-variable] 846 | XYZ nothing; | ^~~~~~~ Source/GameTick.cpp:858:21: warning: unused variable ‘pointrotated’ [-Wunused-variable] 858 | XYZ pointrotated; | ^~~~~~~~~~~~ Source/GameTick.cpp:4337:46: warning: unused variable ‘severwhat’ [-Wunused-variable] 4337 | int wherex,wherey,whichsound,severwhat; | ^~~~~~~~~ Source/GameTick.cpp:4891:23: warning: unused variable ‘tempInt’ [-Wunused-variable] 4891 | ALint tempInt; | ^~~~~~~ Source/GameTick.cpp:4529:106: warning: ‘totalarea’ may be used uninitialized in this function [-Wmaybe-uninitialized] 4529 | totalarea+=(200/findDistancefast(DoRotation(person[j].skeleton.joints[k].position,0,person[j].playerrotation,0)+person[j].playercoords,hitstruct.hitlocation)); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Source/GameTick.cpp:4253:65: warning: ‘olddistance’ may be used uninitialized in this function [-Wmaybe-uninitialized] 4253 | if(distance constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp:357:13: error: reference to ‘max’ is ambiguous 357 | if (max == ABS(normalv[0])) {i = 1; j = 2;} // y, z | ^~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from Source/Maths.h:6, from Source/Quaternions.h:9, from Source/Quaternions.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: candidates are: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp:358:13: error: reference to ‘max’ is ambiguous 358 | if (max == ABS(normalv[1])) {i = 0; j = 2;} // x, z | ^~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from Source/Maths.h:6, from Source/Quaternions.h:9, from Source/Quaternions.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: candidates are: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp:359:13: error: reference to ‘max’ is ambiguous 359 | if (max == ABS(normalv[2])) {i = 0; j = 1;} // x, y | ^~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from Source/Maths.h:6, from Source/Quaternions.h:9, from Source/Quaternions.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: candidates are: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp: In function ‘bool LineFacet(Vector, Vector, Vector, Vector, Vector, Vector*)’: Source/Quaternions.cpp:396:10: warning: unused variable ‘a1’ [-Wunused-variable] 396 | float a1,a2,a3; | ^~ Source/Quaternions.cpp:396:13: warning: unused variable ‘a2’ [-Wunused-variable] 396 | float a1,a2,a3; | ^~ Source/Quaternions.cpp:396:16: warning: unused variable ‘a3’ [-Wunused-variable] 396 | float a1,a2,a3; | ^~ Source/Quaternions.cpp:397:10: warning: unused variable ‘total’ [-Wunused-variable] 397 | float total,denom,mu; | ^~~~~ Source/Quaternions.cpp: In function ‘bool PointInTriangle(XYZ*, XYZ, XYZ*, XYZ*, XYZ*)’: Source/Quaternions.cpp:450:9: error: reference to ‘max’ is ambiguous 450 | max = MAX(MAX(ABS(normalv[0]), ABS(normalv[1])), ABS(normalv[2])); | ^~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from Source/Maths.h:6, from Source/Quaternions.h:9, from Source/Quaternions.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: candidates are: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp:452:13: error: reference to ‘max’ is ambiguous 452 | if (max == ABS(normalv[0])) {i = 1; j = 2;} // y, z | ^~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from Source/Maths.h:6, from Source/Quaternions.h:9, from Source/Quaternions.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: candidates are: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp:453:13: error: reference to ‘max’ is ambiguous 453 | if (max == ABS(normalv[1])) {i = 0; j = 2;} // x, z | ^~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from Source/Maths.h:6, from Source/Quaternions.h:9, from Source/Quaternions.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: candidates are: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp:454:13: error: reference to ‘max’ is ambiguous 454 | if (max == ABS(normalv[2])) {i = 0; j = 1;} // x, y | ^~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/cmath:1927, from Source/Maths.h:6, from Source/Quaternions.h:9, from Source/Quaternions.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:300:5: note: candidates are: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/stl_algobase.h:254:5: note: ‘template constexpr const _Tp& std::max(const _Tp&, const _Tp&)’ 254 | max(const _Tp& __a, const _Tp& __b) | ^~~ Source/Quaternions.cpp:319:14: note: ‘float max’ 319 | extern float max; | ^~~ Source/Quaternions.cpp: In function ‘bool LineFacet(XYZ, XYZ, XYZ, XYZ, XYZ, XYZ*)’: Source/Quaternions.cpp:491:10: warning: unused variable ‘a1’ [-Wunused-variable] 491 | float a1,a2,a3; | ^~ Source/Quaternions.cpp:491:13: warning: unused variable ‘a2’ [-Wunused-variable] 491 | float a1,a2,a3; | ^~ Source/Quaternions.cpp:491:16: warning: unused variable ‘a3’ [-Wunused-variable] 491 | float a1,a2,a3; | ^~ Source/Quaternions.cpp:492:10: warning: unused variable ‘total’ [-Wunused-variable] 492 | float total,denom,mu; | ^~~~~ Source/Quaternions.cpp:493:10: warning: unused variable ‘pa1’ [-Wunused-variable] 493 | XYZ n,pa1,pa2,pa3; | ^~~ Source/Quaternions.cpp:493:14: warning: unused variable ‘pa2’ [-Wunused-variable] 493 | XYZ n,pa1,pa2,pa3; | ^~~ Source/Quaternions.cpp:493:18: warning: unused variable ‘pa3’ [-Wunused-variable] 493 | XYZ n,pa1,pa2,pa3; | ^~~ Source/Quaternions.cpp: In function ‘bool sphere_line_intersection(float, float, float, float, float, float, float, float, float, float)’: Source/Quaternions.cpp:690:16: warning: unused variable ‘x’ [-Wunused-variable] 690 | float x , y , z; | ^ Source/Quaternions.cpp:690:20: warning: unused variable ‘y’ [-Wunused-variable] 690 | float x , y , z; | ^ Source/Quaternions.cpp:690:24: warning: unused variable ‘z’ [-Wunused-variable] 690 | float x , y , z; | ^ Source/Quaternions.cpp:691:25: warning: unused variable ‘mu’ [-Wunused-variable] 691 | float a, b, c, mu, i ; | ^~ make: *** [Makefile:56: objs/Quaternions.o] Error 1 * ERROR: games-fps/blackshades-20070723-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=games-fps/blackshades-20070723-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=games-fps/blackshades-20070723-r1::gentoo'`. * The complete build log is located at '/var/log/portage/games-fps:blackshades-20070723-r1:20210502-153918.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-fps/blackshades-20070723-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-fps/blackshades-20070723-r1/temp/environment'. * Working directory: '/var/tmp/portage/games-fps/blackshades-20070723-r1/work/blackshades' * S: '/var/tmp/portage/games-fps/blackshades-20070723-r1/work/blackshades'