2024-04-10 12:53 ftp://ftp.de.debian.org/debian/pool/main/n/njam/njam_1.25.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 9e7578e (2024-04-10 11:32:42 +0200) count: 212 196 elapsed-time: 1.9 2.0 head-timing-info: old-timing-info: head results: njam-1.25-src/src/SDL_main.c:117:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] njam-1.25-src/src/SDL_main.c:125:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] njam-1.25-src/src/SDL_main.c:137:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] njam-1.25-src/src/SDL_main.c:195:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_NOPARACHUTE [valueFlowBailoutIncompleteVar] njam-1.25-src/src/SDL_main.c:266:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamfont.cpp:47:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SRCCOLORKEY [valueFlowBailoutIncompleteVar] njam-1.25-src/src/SDL_main.c:186:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] njam-1.25-src/src/SDL_main.c:308:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] njam-1.25-src/src/SDL_main.c:317:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] njam-1.25-src/src/SDL_main.c:277:2: error: Resource leak: newfp [resourceLeak] njam-1.25-src/src/SDL_main.c:310:3: error: Resource leak: newfp [resourceLeak] njam-1.25-src/src/SDL_main.c:319:3: error: Resource leak: newfp [resourceLeak] njam-1.25-src/src/SDL_main.c:324:2: error: Resource leak: newfp [resourceLeak] njam-1.25-src/src/SDL_main.c:170:15: style: Variable 'appname' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/SDL_main.c:249:8: style: Variable 'bufp' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/SDL_main.c:252:8: style: Variable 'newfp' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamfont.h:29:6: style:inconclusive: Technically the member function 'NjamFont::GetCharWidth' can be const. [functionConst] njam-1.25-src/src/njamfont.cpp:65:15: note: Technically the member function 'NjamFont::GetCharWidth' can be const. njam-1.25-src/src/njamfont.h:29:6: note: Technically the member function 'NjamFont::GetCharWidth' can be const. njam-1.25-src/src/njamfont.h:30:6: style:inconclusive: Technically the member function 'NjamFont::GetCharHeight' can be const. [functionConst] njam-1.25-src/src/njamfont.cpp:70:15: note: Technically the member function 'NjamFont::GetCharHeight' can be const. njam-1.25-src/src/njamfont.h:30:6: note: Technically the member function 'NjamFont::GetCharHeight' can be const. njam-1.25-src/src/njamutils.h:35:2: style: Class 'LogFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] njam-1.25-src/src/njamfont.cpp:40:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamfont.cpp:130:15: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamfont.cpp:35:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamfont.cpp:39:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamfont.cpp:43:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamfont.cpp:129:9: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:355:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_VIDEO [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njam.cpp:973:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamedit.cpp:67:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamedit.cpp:358:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_y [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamedit.cpp:447:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamedit.cpp:588:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njammap.cpp:31:10: warning: Member variable 'NjamMap::m_Images' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njammap.cpp:31:10: warning: Member variable 'NjamMap::m_TileW' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njammap.cpp:31:10: warning: Member variable 'NjamMap::m_TileH' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njammap.h:50:14: style:inconclusive: Technically the member function 'NjamMap::FindSpecificTile' can be const. [functionConst] njam-1.25-src/src/njammap.cpp:377:19: note: Technically the member function 'NjamMap::FindSpecificTile' can be const. njam-1.25-src/src/njammap.h:50:14: note: Technically the member function 'NjamMap::FindSpecificTile' can be const. njam-1.25-src/src/njammap.h:51:6: style:inconclusive: Technically the member function 'NjamMap::CountSpecificTiles' can be const. [functionConst] njam-1.25-src/src/njammap.cpp:332:14: note: Technically the member function 'NjamMap::CountSpecificTiles' can be const. njam-1.25-src/src/njammap.h:51:6: note: Technically the member function 'NjamMap::CountSpecificTiles' can be const. njam-1.25-src/src/njammap.h:53:11: style:inconclusive: Technically the member function 'NjamMap::GetTile' can be const. [functionConst] njam-1.25-src/src/njammap.cpp:195:19: note: Technically the member function 'NjamMap::GetTile' can be const. njam-1.25-src/src/njammap.h:53:11: note: Technically the member function 'NjamMap::GetTile' can be const. njam-1.25-src/src/njammap.h:55:14: style:inconclusive: Technically the member function 'NjamMap::GhostHouseXY' can be const. [functionConst] njam-1.25-src/src/njammap.cpp:309:19: note: Technically the member function 'NjamMap::GhostHouseXY' can be const. njam-1.25-src/src/njammap.h:55:14: note: Technically the member function 'NjamMap::GhostHouseXY' can be const. njam-1.25-src/src/njammap.h:56:7: style:inconclusive: Technically the member function 'NjamMap::IsOk' can be const. [functionConst] njam-1.25-src/src/njammap.cpp:114:15: note: Technically the member function 'NjamMap::IsOk' can be const. njam-1.25-src/src/njammap.h:56:7: note: Technically the member function 'NjamMap::IsOk' can be const. njam-1.25-src/src/njamnet.cpp:342:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_KP_ENTER [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamgame.cpp:149:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_LAST [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamgame.cpp:660:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SRCALPHA [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamgame.cpp:925:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_LAST [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamgame.cpp:1462:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_LAST [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamgame.cpp:1643:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_KP_ENTER [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamnet.cpp:214:8: style: Local variable 'player' shadows outer variable [shadowVariable] njam-1.25-src/src/njamnet.cpp:188:6: note: Shadowed declaration njam-1.25-src/src/njamnet.cpp:214:8: note: Shadow variable njam-1.25-src/src/njamnet.cpp:344:13: style: Local variable 'dest' shadows outer variable [shadowVariable] njam-1.25-src/src/njamnet.cpp:305:12: note: Shadowed declaration njam-1.25-src/src/njamnet.cpp:344:13: note: Shadow variable njam-1.25-src/src/njamnet.cpp:236:3: warning: Unused variable value 'm_NetLobbyImage' [constStatement] njam-1.25-src/src/njamnet.cpp:123:16: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamnet.cpp:97:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:104:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:109:5: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:113:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:177:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:184:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:200:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:210:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:213:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:220:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:226:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:359:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:375:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:404:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamnet.cpp:414:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamutils.cpp:46:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_KEYDOWN [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamutils.cpp:57:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamutils.cpp:90:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BYTEORDER [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamutils.cpp:116:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BYTEORDER [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamutils.cpp:138:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] njam-1.25-src/src/njamutils.cpp:81:16: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamutils.cpp:86:27: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamutils.cpp:97:27: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamutils.cpp:107:16: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamutils.cpp:112:19: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamutils.cpp:129:14: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamutils.cpp:143:11: style: Local variable 'x' shadows outer variable [shadowVariable] njam-1.25-src/src/njamutils.cpp:135:9: note: Shadowed declaration njam-1.25-src/src/njamutils.cpp:143:11: note: Shadow variable njam-1.25-src/src/njamutils.cpp:145:12: style: Local variable 'y' shadows outer variable [shadowVariable] njam-1.25-src/src/njamutils.cpp:135:12: note: Shadowed declaration njam-1.25-src/src/njamutils.cpp:145:12: note: Shadow variable njam-1.25-src/src/njamutils.cpp:133:52: style: Parameter 'r' can be declared as reference to const [constParameterReference] njam-1.25-src/src/njamutils.cpp:135:9: style: Unused variable: x [unusedVariable] njam-1.25-src/src/njamutils.cpp:135:12: style: Unused variable: y [unusedVariable] njam-1.25-src/src/njamedit.cpp:497:28: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] njam-1.25-src/src/njam.cpp:639:29: error: Array 'm_GameOptions.ServerIP[16]' accessed at index 17, which is out of bounds. [arrayIndexOutOfBounds] njam-1.25-src/src/njam.cpp:637:7: note: After for loop, i has value 17 njam-1.25-src/src/njam.cpp:639:29: note: Array index out of bounds njam-1.25-src/src/njam.cpp:697:15: warning: Either the condition 'i>=40' is redundant or the array 'buff[40]' is accessed at index 40, which is out of bounds. [arrayIndexOutOfBoundsCond] njam-1.25-src/src/njam.cpp:691:10: note: Assuming that condition 'i>=40' is not redundant njam-1.25-src/src/njam.cpp:695:4: note: i is incremented', new value is 40 njam-1.25-src/src/njam.cpp:697:15: note: Array index out of bounds njam-1.25-src/src/njam.cpp:571:11: error: Buffer is accessed out of bounds: Filename [bufferAccessOutOfBounds] njam-1.25-src/src/njam.cpp:586:11: error: Buffer is accessed out of bounds: Filename [bufferAccessOutOfBounds] njam-1.25-src/src/njam.cpp:680:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] njam-1.25-src/src/njam.cpp:689:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] njam-1.25-src/src/njam.cpp:697:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] njam-1.25-src/src/njamedit.cpp:475:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::TopTenScores' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::linux_sdl_driver' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_NumberOfSkins' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_Sounds' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_NumberOfMenuItems' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_ActiveMenu' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_fps' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_Freeze' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_Bonus' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_LivesLeft' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_TripleDinged' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_CurrentMap' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_Levels' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_GameType' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_Player' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_CookiesLeft' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_Sprite' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_Ghosts' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_NetworkEscapedGame' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:119:13: warning: Member variable 'NjamEngine::m_SwapLevel' is not initialized in the constructor. [uninitMemberVar] njam-1.25-src/src/njam.cpp:134:2: performance: Variable 'm_ServerSocket' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] njam-1.25-src/src/njam.cpp:979:11: style: Condition '!MenuItemSelected(SelectedMenuItem)' is always false [knownConditionTrueFalse] njam-1.25-src/src/njam.cpp:979:28: note: Calling function 'MenuItemSelected' returns 1 njam-1.25-src/src/njam.cpp:979:11: note: Condition '!MenuItemSelected(SelectedMenuItem)' is always false njam-1.25-src/src/njam.cpp:997:11: style: Condition '!MenuItemSelected(SelectedMenuItem)' is always false [knownConditionTrueFalse] njam-1.25-src/src/njam.cpp:997:28: note: Calling function 'MenuItemSelected' returns 1 njam-1.25-src/src/njam.cpp:997:11: note: Condition '!MenuItemSelected(SelectedMenuItem)' is always false njam-1.25-src/src/njam.cpp:372:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:425:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:445:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:465:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:475:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:485:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:495:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:506:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:517:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:528:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:548:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:587:12: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:592:13: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:875:13: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:888:14: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:940:13: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njam.cpp:51:26: style: Parameter 'argv' can be declared as const array [constParameter] njam-1.25-src/src/njam.cpp:653:7: style: Variable 'DefaultNames' can be declared as const array [constVariable] njam-1.25-src/src/njam.cpp:111:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:224:5: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:354:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:363:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:367:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:371:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:375:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:378:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:396:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:416:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:420:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:424:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:428:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:440:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:444:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:448:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:460:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:464:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:468:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:470:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:474:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:478:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:480:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:484:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:488:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:490:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:494:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:498:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:501:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:505:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:509:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:512:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:516:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:520:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:523:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:527:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:531:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:543:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:547:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:555:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:580:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:591:5: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:604:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:607:2: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:612:5: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:620:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:649:9: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:652:5: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:671:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:710:5: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:715:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:721:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:874:7: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:887:8: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njam.cpp:939:7: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamedit.cpp:275:8: style: Local variable 'buff' shadows outer variable [shadowVariable] njam-1.25-src/src/njamedit.cpp:265:7: note: Shadowed declaration njam-1.25-src/src/njamedit.cpp:275:8: note: Shadow variable njam-1.25-src/src/njamedit.cpp:131:11: style: Variable 'types' can be declared as const array [constVariable] njam-1.25-src/src/njamedit.cpp:313:32: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] njam-1.25-src/src/njamedit.cpp:335:30: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] njam-1.25-src/src/njamedit.cpp:508:20: style: Variable 'selected' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamedit.cpp:117:14: style: Instance of 'LogFile::LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamedit.cpp:134:15: style: Instance of 'LogFile::LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamgame.cpp:203:13: style: C-style pointer casting [cstyleCast] njam-1.25-src/src/njamgame.cpp:418:10: style: Local variable 'total' shadows outer variable [shadowVariable] njam-1.25-src/src/njamgame.cpp:304:9: note: Shadowed declaration njam-1.25-src/src/njamgame.cpp:418:10: note: Shadow variable njam-1.25-src/src/njamgame.cpp:535:18: style: Local variable 'src' shadows outer variable [shadowVariable] njam-1.25-src/src/njamgame.cpp:506:14: note: Shadowed declaration njam-1.25-src/src/njamgame.cpp:535:18: note: Shadow variable njam-1.25-src/src/njamgame.cpp:535:23: style: Local variable 'dest' shadows outer variable [shadowVariable] njam-1.25-src/src/njamgame.cpp:506:19: note: Shadowed declaration njam-1.25-src/src/njamgame.cpp:535:23: note: Shadow variable njam-1.25-src/src/njamgame.cpp:544:14: style: Local variable 'i' shadows outer variable [shadowVariable] njam-1.25-src/src/njamgame.cpp:521:14: note: Shadowed declaration njam-1.25-src/src/njamgame.cpp:544:14: note: Shadow variable njam-1.25-src/src/njamgame.cpp:620:12: style: Local variable 'src' shadows outer variable [shadowVariable] njam-1.25-src/src/njamgame.cpp:506:14: note: Shadowed declaration njam-1.25-src/src/njamgame.cpp:620:12: note: Shadow variable njam-1.25-src/src/njamgame.cpp:620:17: style: Local variable 'dest' shadows outer variable [shadowVariable] njam-1.25-src/src/njamgame.cpp:506:19: note: Shadowed declaration njam-1.25-src/src/njamgame.cpp:620:17: note: Shadow variable njam-1.25-src/src/njamgame.cpp:483:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:484:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:523:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:636:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:790:29: style: Variable 'p' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:844:29: style: Variable 'p' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:845:29: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:1579:10: style: Variable 'name2' can be declared as pointer to const [constVariablePointer] njam-1.25-src/src/njamgame.cpp:115:9: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamgame.cpp:198:3: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamgame.cpp:202:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamgame.cpp:207:4: style: Instance of 'LogFile' object is destroyed immediately. [unusedScopedObject] njam-1.25-src/src/njamgame.cpp:542:9: warning: Uninitialized variable: d [uninitvar] njam-1.25-src/src/njamgame.cpp:540:9: note: Assuming condition is false njam-1.25-src/src/njamgame.cpp:542:9: note: Uninitialized variable: d diff: head njam-1.25-src/src/SDL_main.c:125:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/SDL_main.c:137:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/SDL_main.c:195:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_NOPARACHUTE [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/SDL_main.c:266:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njam.cpp:973:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamedit.cpp:358:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_y [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamedit.cpp:447:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamedit.cpp:588:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_ESCAPE [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamgame.cpp:1462:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_LAST [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamgame.cpp:1643:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_KP_ENTER [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamgame.cpp:660:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SRCALPHA [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamgame.cpp:925:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_LAST [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamutils.cpp:116:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BYTEORDER [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamutils.cpp:138:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamutils.cpp:57:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head njam-1.25-src/src/njamutils.cpp:90:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BYTEORDER [valueFlowBailoutIncompleteVar] DONE