2025-07-15 21:34 ftp://ftp.de.debian.org/debian/pool/main/s/sdl-ball/sdl-ball_1.04+dfsg.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=opengl --library=sdl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: b62f571 (2025-07-15 18:23:53 +0200) count: 289 283 elapsed-time: 11.4 11.8 head-timing-info: old-timing-info: head results: sdl-ball-1.04+dfsg/leveleditor/gimp-leveleditor/gimp-sdlball.c:42:1: error: There is an unknown macro here somewhere. Configuration is required. If MAIN is a macro then please configure it. [unknownMacro] sdl-ball-1.04+dfsg/highscores.cpp:30:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfxTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/highscores.cpp:40:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/highscores.cpp:56:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable showHighScores [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/highscores.cpp:99:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable score [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/input.cpp:65:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable joyEnabled [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/input.cpp:101:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable paused [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/input.cpp:117:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable titleScreenShow [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/input.cpp:148:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable globalTicks [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/input.cpp:300:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable menuJoyCalStage [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/background.cpp:42:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable level [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/background.cpp:121:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/highscores.cpp:29:7: performance: Variable 'name' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] sdl-ball-1.04+dfsg/highscores.cpp:92:10: performance:inconclusive: Technically the member function 'highScoreClass::isHighScore' can be static (but you may consider moving to unnamed namespace). [functionStatic] sdl-ball-1.04+dfsg/background.cpp:30:5: warning: Member variable 'backgroundClass::r' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/background.cpp:30:5: warning: Member variable 'backgroundClass::g' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/background.cpp:30:5: warning: Member variable 'backgroundClass::b' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/background.cpp:30:5: warning: Member variable 'backgroundClass::a' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/background.cpp:30:5: warning: Member variable 'backgroundClass::dir' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/loadlevel.cpp:36:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lvlTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/loadlevel.cpp:141:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/loadlevel.cpp:239:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable posx [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:46:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transition_half_done [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:52:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable globalTicksSinceLastDraw [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:102:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable globalTicksSinceLastDraw [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:275:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAD [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:292:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable globalTicksSinceLastDraw [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:363:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:435:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable effectnum [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:458:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FX_SPARKS [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:476:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FX_SPARKS [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:673:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable globalMilliTicksSinceLastDraw [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:35:1: style: The class 'transit_effect_class' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] sdl-ball-1.04+dfsg/effects.cpp:89:3: warning: Member variable 'sparkle::size' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:89:3: warning: Member variable 'sparkle::ang' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:89:3: warning: Member variable 'sparkle::life' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:89:3: warning: Member variable 'sparkle::lifeleft' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:89:3: warning: Member variable 'sparkle::vars' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:236:1: style: The class 'particleFieldClass' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] sdl-ball-1.04+dfsg/effects.cpp:343:5: warning: Member variable 'effect_class::sparks' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:343:5: warning: Member variable 'effect_class::transit' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:343:5: warning: Member variable 'effect_class::pf' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:500:3: warning: Member variable 'effectManager::vars' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:661:5: warning: Member variable 'glAnnounceMessageClass::life' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:661:5: warning: Member variable 'glAnnounceMessageClass::font' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:367:16: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] sdl-ball-1.04+dfsg/effects.cpp:364:14: note: i is assigned sdl-ball-1.04+dfsg/effects.cpp:367:16: note: i is overwritten sdl-ball-1.04+dfsg/effects.cpp:351:15: style: The scope of the variable 'angle' can be reduced. [variableScope] sdl-ball-1.04+dfsg/effects.cpp:354:11: style: The scope of the variable 'life' can be reduced. [variableScope] sdl-ball-1.04+dfsg/effects.cpp:457:11: style: The scope of the variable 'i' can be reduced. [variableScope] sdl-ball-1.04+dfsg/effects.cpp:475:11: style: The scope of the variable 'i' can be reduced. [variableScope] sdl-ball-1.04+dfsg/effects.cpp:252:68: style:inconclusive: Function 'init' argument 2 names different: declaration 'p' definition 'spawnPos'. [funcArgNamesDifferent] sdl-ball-1.04+dfsg/effects.cpp:244:52: note: Function 'init' argument 2 names different: declaration 'p' definition 'spawnPos'. sdl-ball-1.04+dfsg/effects.cpp:252:68: note: Function 'init' argument 2 names different: declaration 'p' definition 'spawnPos'. sdl-ball-1.04+dfsg/effects.cpp:252:50: performance: Function parameter 'varsP' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/effects.cpp:190:31: style: Parameter 'b' can be declared as reference to const [constParameterReference] sdl-ball-1.04+dfsg/effects.cpp:83:11: style: class member 'sparkle::ang' is never used. [unusedStructMember] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::accel' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::joystickx' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::joysticky' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::joystickbtnA' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::joystickbtnB' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::joyBtnALock' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::calMin' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::calMax' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::calLowJitter' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:56:18: warning: Member variable 'controllerClass::calHighJitter' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/input.cpp:146:10: style: Variable 'keyStates' can be declared as pointer to const [constVariablePointer] sdl-ball-1.04+dfsg/scoreboard.cpp:66:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FONT_HIGHSCORE [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/scoreboard.cpp:31:3: warning: Member variable 'glScoreBoard::tempText' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/scoreboard.cpp:61:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] sdl-ball-1.04+dfsg/sound.cpp:50:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUDIO_S16 [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/sound.cpp:72:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sndTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/sound.cpp:85:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sound [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/sound.cpp:106:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_START [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/sound.cpp:142:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sound [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/sound.cpp:231:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDSAMPLES [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/sound.cpp:25:1: style: The class 'soundClass' does not declare a constructor although it has private member variables which likely require initialization. [noConstructor] sdl-ball-1.04+dfsg/sound.cpp:148:8: style: The scope of the variable 'same' can be reduced. [variableScope] sdl-ball-1.04+dfsg/menu.cpp:139:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfxTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/menu.cpp:207:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/menu.cpp:249:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/menu.cpp:281:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable menu [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/loadlevel.cpp:34:5: performance: Variable 'evilPowerups' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] sdl-ball-1.04+dfsg/title.cpp:30:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/title.cpp:37:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/title.cpp:84:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfxTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/title.cpp:142:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clearScreen [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/title.cpp:300:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfxTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/text.cpp:62:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfxTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/text.cpp:147:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gfxTheme [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/text.cpp:227:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/background.cpp:25:8: style: class member 'backgroundClass::dir' is never used. [unusedStructMember] sdl-ball-1.04+dfsg/title.cpp:28:26: warning: Member variable 'powerupDescriptionClass::tex' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/title.cpp:77:19: warning: Member variable 'titleScreenClass::rot' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/title.cpp:77:19: warning: Member variable 'titleScreenClass::rotDir' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/title.cpp:293:24: performance:inconclusive: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). [functionStatic] sdl-ball-1.04+dfsg/title.cpp:71:10: note: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). sdl-ball-1.04+dfsg/title.cpp:293:24: note: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). sdl-ball-1.04+dfsg/title.cpp:297:7: style: The scope of the variable 'p' can be reduced. [variableScope] sdl-ball-1.04+dfsg/title.cpp:298:8: style: The scope of the variable 'flip' can be reduced. [variableScope] sdl-ball-1.04+dfsg/title.cpp:135:51: style: Parameter 'maxFrameAge' can be declared as pointer to const [constParameterPointer] sdl-ball-1.04+dfsg/text.cpp:50:22: style:inconclusive: Technically the member function 'glTextClass::getHeight' can be const. [functionConst] sdl-ball-1.04+dfsg/text.cpp:45:13: note: Technically the member function 'glTextClass::getHeight' can be const. sdl-ball-1.04+dfsg/text.cpp:50:22: note: Technically the member function 'glTextClass::getHeight' can be const. sdl-ball-1.04+dfsg/text.cpp:203:45: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfResources] sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assuming allocation function fails sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assignment 't=SDL_CreateRGBSurface(0,512,512,32,rmask,gmask,bmask,amask)', assigned value is 0 sdl-ball-1.04+dfsg/text.cpp:203:45: note: Null pointer dereference sdl-ball-1.04+dfsg/text.cpp:203:51: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfResources] sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assuming allocation function fails sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assignment 't=SDL_CreateRGBSurface(0,512,512,32,rmask,gmask,bmask,amask)', assigned value is 0 sdl-ball-1.04+dfsg/text.cpp:203:51: note: Null pointer dereference sdl-ball-1.04+dfsg/text.cpp:203:84: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfResources] sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assuming allocation function fails sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assignment 't=SDL_CreateRGBSurface(0,512,512,32,rmask,gmask,bmask,amask)', assigned value is 0 sdl-ball-1.04+dfsg/text.cpp:203:84: note: Null pointer dereference sdl-ball-1.04+dfsg/text.cpp:128:16: style: The scope of the variable 'c' can be reduced. [variableScope] sdl-ball-1.04+dfsg/text.cpp:212:14: style: The scope of the variable 'sY' can be reduced. [variableScope] sdl-ball-1.04+dfsg/menu.cpp:131:3: warning: Member variable 'menuClass::saveGameSlot' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/menu.cpp:131:3: warning: Member variable 'menuClass::themeChanged' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/menu.cpp:30:7: style: The scope of the variable 'delim' can be reduced. [variableScope] sdl-ball-1.04+dfsg/menu.cpp:273:9: style: The scope of the variable 'i' can be reduced. [variableScope] sdl-ball-1.04+dfsg/menu.cpp:919:15: style: Local variable 'i' shadows outer variable [shadowVariable] sdl-ball-1.04+dfsg/menu.cpp:273:9: note: Shadowed declaration sdl-ball-1.04+dfsg/menu.cpp:919:15: note: Shadow variable sdl-ball-1.04+dfsg/menu.cpp:948:15: style: Local variable 'i' shadows outer variable [shadowVariable] sdl-ball-1.04+dfsg/menu.cpp:273:9: note: Shadowed declaration sdl-ball-1.04+dfsg/menu.cpp:948:15: note: Shadow variable sdl-ball-1.04+dfsg/menu.cpp:1003:15: style: Local variable 'i' shadows outer variable [shadowVariable] sdl-ball-1.04+dfsg/menu.cpp:273:9: note: Shadowed declaration sdl-ball-1.04+dfsg/menu.cpp:1003:15: note: Shadow variable sdl-ball-1.04+dfsg/menu.cpp:1198:11: style: Local variable 'i' shadows outer variable [shadowVariable] sdl-ball-1.04+dfsg/menu.cpp:273:9: note: Shadowed declaration sdl-ball-1.04+dfsg/menu.cpp:1198:11: note: Shadow variable sdl-ball-1.04+dfsg/main.cpp:336:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/text.cpp:68:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/text.cpp:175:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:555:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_RGBA [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:614:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/sound.cpp:75:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/menu.cpp:149:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/menu.cpp:899:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:779:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:1000:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/loadlevel.cpp:39:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:65:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/effects.cpp:131:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/background.cpp:100:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:1197:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:1445:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:1664:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2438:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2789:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_PROJECTION [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2810:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_SMOOTH [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2833:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2839:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_OPENGL [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2907:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_GRAB_OFF [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2913:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_GRAB_ON [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:2923:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3092:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/highscores.cpp:58:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3240:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3368:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3417:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3444:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3460:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable out [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3483:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3507:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3634:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/input.cpp:73:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/input.cpp:337:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/title.cpp:86:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/title.cpp:144:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/title.cpp:320:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3676:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3716:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_v [valueFlowBailoutIncompleteVar] sdl-ball-1.04+dfsg/main.cpp:3259:24: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sdl-ball-1.04+dfsg/main.cpp:4665:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] sdl-ball-1.04+dfsg/main.cpp:445:5: warning: Member variable 'textureClass::playing' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:445:5: warning: Member variable 'textureClass::pos' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:445:5: warning: Member variable 'textureClass::prop' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'paddle_class::destwidth' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'paddle_class::layerTex' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'object::opacity' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'object::posx' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'object::dl' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'object::active' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'object::collide' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:726:5: warning: Member variable 'object::reflect' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'moving_object::velocity' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::opacity' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::posx' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::posy' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::width' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::height' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::dl' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::active' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::collide' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/main.cpp:1120:5: warning: Member variable 'object::reflect' is not initialized in the constructor. Maybe it should be initialized directly in the class object? [uninitDerivedMemberVar] sdl-ball-1.04+dfsg/effects.cpp:89:3: warning: Member variable 'sparkle::p' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:89:3: warning: Member variable 'sparkle::v' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:343:5: warning: Member variable 'effect_class::spawn_pos' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/effects.cpp:721:5: warning: Member variable 'glAnnounceTextClass::it' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1138:5: warning: Member variable 'bulletsClass::active' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::x' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::y' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::r' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::g' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::b' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::a' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::s' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::color' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1477:5: warning: Member variable 'tracer::tex' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::rad' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::shrinking' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::destwidth' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::explosive' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::gluedX' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::bsin' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::bcos' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::lastX' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:1544:3: warning: Member variable 'ball::lastY' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:2164:5: warning: Member variable 'powerupClass::score' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:2164:5: warning: Member variable 'powerupClass::type' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:2164:5: warning: Member variable 'powerupClass::level' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:2164:5: warning: Member variable 'powerupClass::maxlevel' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:2164:5: warning: Member variable 'powerupClass::gravity' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:2468:5: warning: Member variable 'powerupManager::tex' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:3196:3: warning: Member variable 'hudClass::nixTime' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:3196:3: warning: Member variable 'hudClass::timeStruct' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:3196:3: warning: Member variable 'hudClass::clockString' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:3196:3: warning: Member variable 'hudClass::shopItemBlocked' is not initialized in the constructor. [uninitMemberVar] sdl-ball-1.04+dfsg/main.cpp:3199:5: performance: Variable 'texBall' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] sdl-ball-1.04+dfsg/main.cpp:551:10: performance:inconclusive: Technically the member function 'textureManager::load' can be static (but you may consider moving to unnamed namespace). [functionStatic] sdl-ball-1.04+dfsg/main.cpp:845:8: style:inconclusive: Technically the member function 'brick::n' can be const. [functionConst] sdl-ball-1.04+dfsg/main.cpp:1009:8: style:inconclusive: Technically the member function 'brick::growExplosive' can be const. [functionConst] sdl-ball-1.04+dfsg/loadlevel.cpp:128:8: style:inconclusive: Technically the member function 'powerupLoaderClass::randomEvilPowerup' can be const. [functionConst] sdl-ball-1.04+dfsg/main.cpp:1883:10: style:inconclusive: Technically the member function 'ballManager::getSpeed' can be const. [functionConst] sdl-ball-1.04+dfsg/main.cpp:3410:10: performance:inconclusive: Technically the member function 'speedometerClass::draw' can be static (but you may consider moving to unnamed namespace). [functionStatic] sdl-ball-1.04+dfsg/title.cpp:22:19: warning: The class 'powerupDescriptionClass' defines member variable with name 'tex' also defined in its parent class 'object'. [duplInheritedMember] sdl-ball-1.04+dfsg/main.cpp:711:18: note: Parent variable 'object::tex' sdl-ball-1.04+dfsg/title.cpp:22:19: note: Derived variable 'powerupDescriptionClass::tex' sdl-ball-1.04+dfsg/main.cpp:1138:5: style: Class 'bulletsClass' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sdl-ball-1.04+dfsg/main.cpp:1865:5: style: Class 'ballManager' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] sdl-ball-1.04+dfsg/main.cpp:369:16: style: Condition 'i==1' is always true [knownConditionTrueFalse] sdl-ball-1.04+dfsg/main.cpp:366:9: note: Assuming that condition 'i==0' is not redundant sdl-ball-1.04+dfsg/main.cpp:364:18: note: Assuming that condition 'i<2' is not redundant sdl-ball-1.04+dfsg/main.cpp:369:16: note: Condition 'i==1' is always true sdl-ball-1.04+dfsg/scoreboard.cpp:61:9: portability: %i in format string (no. 1) requires 'int' but the argument type is 'uint {aka unsigned int}'. [invalidPrintfArgType_sint] sdl-ball-1.04+dfsg/main.cpp:2465:7: warning: Possible leak in public function. The pointer 'tex' is not deallocated before it is allocated. [publicAllocationError] sdl-ball-1.04+dfsg/main.cpp:3686:48: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3686:48: note: Null pointer dereference sdl-ball-1.04+dfsg/main.cpp:3687:44: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3687:44: note: Null pointer dereference sdl-ball-1.04+dfsg/main.cpp:3689:35: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3689:35: note: Null pointer dereference sdl-ball-1.04+dfsg/main.cpp:3690:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3690:10: note: Null pointer dereference sdl-ball-1.04+dfsg/main.cpp:3453:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sdl-ball-1.04+dfsg/main.cpp:3467:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sdl-ball-1.04+dfsg/main.cpp:3489:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sdl-ball-1.04+dfsg/main.cpp:3531:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sdl-ball-1.04+dfsg/main.cpp:3550:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] sdl-ball-1.04+dfsg/main.cpp:2466:11: style: Variable 'tex' is reassigned a value before the old one has been used. [redundantAssignment] sdl-ball-1.04+dfsg/main.cpp:2465:11: note: tex is assigned sdl-ball-1.04+dfsg/main.cpp:2466:11: note: tex is overwritten sdl-ball-1.04+dfsg/text.cpp:60:15: style: The scope of the variable 'set' can be reduced. [variableScope] sdl-ball-1.04+dfsg/text.cpp:60:23: style: The scope of the variable 'tempName' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:455:9: style: The scope of the variable 'col' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:455:15: style: The scope of the variable 'row' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:490:10: style: The scope of the variable 'f' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:604:10: style: The scope of the variable 'rgba' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:606:17: style: The scope of the variable 'set' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:1689:29: style: The scope of the variable 'o' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:1701:24: style: The scope of the variable 'R' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2950:11: style: The scope of the variable 'x' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2950:13: style: The scope of the variable 'y' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2951:7: style: The scope of the variable 'i' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2953:7: style: The scope of the variable 'points' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2954:11: style: The scope of the variable 'px' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2954:16: style: The scope of the variable 'py' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2955:8: style: The scope of the variable 'col' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2956:8: style: The scope of the variable 'dirfound' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:2957:11: style: The scope of the variable 'dist' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:3104:7: style: The scope of the variable 'i' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:3104:9: style: The scope of the variable 'points' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:3105:11: style: The scope of the variable 'x' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:3105:13: style: The scope of the variable 'y' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:3105:20: style: The scope of the variable 'py' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:3106:8: style: The scope of the variable 'col' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:3814:15: style: The scope of the variable 'set' can be reduced. [variableScope] sdl-ball-1.04+dfsg/main.cpp:1823:11: style: Local variable 'rad' shadows outer variable [shadowVariable] sdl-ball-1.04+dfsg/main.cpp:1527:11: note: Shadowed declaration sdl-ball-1.04+dfsg/main.cpp:1823:11: note: Shadow variable sdl-ball-1.04+dfsg/main.cpp:309:24: performance: Function parameter 'path' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/main.cpp:309:37: performance: Function parameter 'theme' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/text.cpp:125:37: performance: Function parameter 'TTFfontName' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/text.cpp:209:32: performance: Function parameter 'text' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/main.cpp:551:22: performance: Function parameter 'file' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/main.cpp:602:28: performance: Function parameter 'fileName' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/loadlevel.cpp:136:23: performance: Function parameter 'file' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/effects.cpp:556:34: performance: Function parameter 'tex' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/main.cpp:2919:40: performance: Function parameter 'tex' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/main.cpp:3196:25: performance: Function parameter 'texB' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/main.cpp:3439:32: performance: Function parameter 'name' should be passed by const reference. [passedByValue] sdl-ball-1.04+dfsg/main.cpp:1138:33: style: Parameter 'texBullet' can be declared as reference to const [constParameterReference] sdl-ball-1.04+dfsg/main.cpp:1596:27: style: Parameter 'paddle' can be declared as reference to const [constParameterReference] sdl-ball-1.04+dfsg/main.cpp:3102:41: style: Parameter 'p' can be declared as reference to const [constParameterReference] sdl-ball-1.04+dfsg/main.cpp:3628:24: style: Parameter 'dir' can be declared as reference to const [constParameterReference] sdl-ball-1.04+dfsg/main.cpp:357:18: style: Variable 'pent' can be declared as pointer to const [constVariablePointer] sdl-ball-1.04+dfsg/main.cpp:1459:46: style: Parameter 'c' can be declared as const array [constParameter] sdl-ball-1.04+dfsg/main.cpp:1865:30: style: Parameter 'btex' can be declared as const array [constParameter] sdl-ball-1.04+dfsg/main.cpp:3684:17: style: Variable 'TGAheader' can be declared as const array [constVariable] sdl-ball-1.04+dfsg/main.cpp:3685:17: style: Variable 'header' can be declared as const array [constVariable] sdl-ball-1.04+dfsg/effects.cpp:631:7: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] sdl-ball-1.04+dfsg/sound.cpp:97:16: error: Uninitialized variable: qt.num [uninitvar] sdl-ball-1.04+dfsg/sound.cpp:97:16: error: Uninitialized struct member: qt.num [uninitStructMember] sdl-ball-1.04+dfsg/main.cpp:440:10: style: class member 'textureClass::playing' is never used. [unusedStructMember] sdl-ball-1.04+dfsg/main.cpp:1136:9: style: class member 'bulletsClass::active' is never used. [unusedStructMember] sdl-ball-1.04+dfsg/main.cpp:2161:9: style: class member 'powerupClass::level' is never used. [unusedStructMember] sdl-ball-1.04+dfsg/main.cpp:2161:16: style: class member 'powerupClass::maxlevel' is never used. [unusedStructMember] sdl-ball-1.04+dfsg/main.cpp:455:12: style: Variable 'col' is assigned a value that is never used. [unreadVariable] sdl-ball-1.04+dfsg/main.cpp:455:18: style: Variable 'row' is assigned a value that is never used. [unreadVariable] sdl-ball-1.04+dfsg/main.cpp:2951:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] sdl-ball-1.04+dfsg/main.cpp:3135:12: style: Variable 'col' is assigned a value that is never used. [unreadVariable] diff: head sdl-ball-1.04+dfsg/effects.cpp:721:5: warning: Member variable 'glAnnounceTextClass::it' is not initialized in the constructor. [uninitMemberVar] 2.17.0 sdl-ball-1.04+dfsg/main.cpp:3453:14: style: C-style pointer casting [cstyleCast] head sdl-ball-1.04+dfsg/main.cpp:3453:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sdl-ball-1.04+dfsg/main.cpp:3467:15: style: C-style pointer casting [cstyleCast] head sdl-ball-1.04+dfsg/main.cpp:3467:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sdl-ball-1.04+dfsg/main.cpp:3489:13: style: C-style pointer casting [cstyleCast] head sdl-ball-1.04+dfsg/main.cpp:3489:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sdl-ball-1.04+dfsg/main.cpp:3531:13: style: C-style pointer casting [cstyleCast] head sdl-ball-1.04+dfsg/main.cpp:3531:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.17.0 sdl-ball-1.04+dfsg/main.cpp:3550:15: style: C-style pointer casting [cstyleCast] head sdl-ball-1.04+dfsg/main.cpp:3550:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head sdl-ball-1.04+dfsg/main.cpp:3686:48: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3686:48: note: Null pointer dereference head sdl-ball-1.04+dfsg/main.cpp:3687:44: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3687:44: note: Null pointer dereference head sdl-ball-1.04+dfsg/main.cpp:3689:35: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3689:35: note: Null pointer dereference head sdl-ball-1.04+dfsg/main.cpp:3690:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fscreen [nullPointerOutOfResources] sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assuming allocation function fails sdl-ball-1.04+dfsg/main.cpp:3679:18: note: Assignment 'fscreen=std::fopen(cName,"wb")', assigned value is 0 sdl-ball-1.04+dfsg/main.cpp:3690:10: note: Null pointer dereference 2.17.0 sdl-ball-1.04+dfsg/main.cpp:377:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head sdl-ball-1.04+dfsg/text.cpp:203:51: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfResources] sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assuming allocation function fails sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assignment 't=SDL_CreateRGBSurface(0,512,512,32,rmask,gmask,bmask,amask)', assigned value is 0 sdl-ball-1.04+dfsg/text.cpp:203:51: note: Null pointer dereference head sdl-ball-1.04+dfsg/text.cpp:203:84: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfResources] sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assuming allocation function fails sdl-ball-1.04+dfsg/text.cpp:148:27: note: Assignment 't=SDL_CreateRGBSurface(0,512,512,32,rmask,gmask,bmask,amask)', assigned value is 0 sdl-ball-1.04+dfsg/text.cpp:203:84: note: Null pointer dereference 2.17.0 sdl-ball-1.04+dfsg/text.cpp:45:13: style:inconclusive: Technically the member function 'glTextClass::getHeight' can be const. [functionConst] sdl-ball-1.04+dfsg/text.cpp:50:22: note: Technically the member function 'glTextClass::getHeight' can be const. sdl-ball-1.04+dfsg/text.cpp:45:13: note: Technically the member function 'glTextClass::getHeight' can be const. head sdl-ball-1.04+dfsg/text.cpp:50:22: style:inconclusive: Technically the member function 'glTextClass::getHeight' can be const. [functionConst] sdl-ball-1.04+dfsg/text.cpp:45:13: note: Technically the member function 'glTextClass::getHeight' can be const. sdl-ball-1.04+dfsg/text.cpp:50:22: note: Technically the member function 'glTextClass::getHeight' can be const. head sdl-ball-1.04+dfsg/title.cpp:293:24: performance:inconclusive: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). [functionStatic] sdl-ball-1.04+dfsg/title.cpp:71:10: note: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). sdl-ball-1.04+dfsg/title.cpp:293:24: note: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). 2.17.0 sdl-ball-1.04+dfsg/title.cpp:71:10: performance:inconclusive: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). [functionStatic] sdl-ball-1.04+dfsg/title.cpp:293:24: note: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). sdl-ball-1.04+dfsg/title.cpp:71:10: note: Technically the member function 'titleScreenClass::readDescriptions' can be static (but you may consider moving to unnamed namespace). DONE