2026-03-13 16:58 ftp://ftp.de.debian.org/debian/pool/main/b/blobwars/blobwars_2.00.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sdl --library=zlib --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 -j1 platform: Linux-6.8.0-100-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 7d80f64 (2026-03-13 11:20:53 +0100) count: 775 775 elapsed-time: 158.1 59.7 head-timing-info: old-timing-info: head results: blobwars-2.00/src/CAudio.cpp:24:8: warning: Member variable 'Audio::engine' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CAudio.cpp:24:8: warning: Member variable 'Audio::musicVolume' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CAudio.cpp:24:8: warning: Member variable 'Audio::soundVolume' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CAudio.cpp:313:13: style:inconclusive: Technically the member function 'Audio::stopAmbiance' can be const. [functionConst] blobwars-2.00/src/CAudio.h:62:7: note: Technically the member function 'Audio::stopAmbiance' can be const. blobwars-2.00/src/CAudio.cpp:313:13: note: Technically the member function 'Audio::stopAmbiance' can be const. blobwars-2.00/src/CAudio.cpp:338:13: style:inconclusive: Technically the member function 'Audio::pause' can be const. [functionConst] blobwars-2.00/src/CAudio.h:63:7: note: Technically the member function 'Audio::pause' can be const. blobwars-2.00/src/CAudio.cpp:338:13: note: Technically the member function 'Audio::pause' can be const. blobwars-2.00/src/CAudio.cpp:349:13: style:inconclusive: Technically the member function 'Audio::resume' can be const. [functionConst] blobwars-2.00/src/CAudio.h:64:7: note: Technically the member function 'Audio::resume' can be const. blobwars-2.00/src/CAudio.cpp:349:13: note: Technically the member function 'Audio::resume' can be const. blobwars-2.00/src/CAudio.cpp:365:13: style:inconclusive: Technically the member function 'Audio::stopMusic' can be const. [functionConst] blobwars-2.00/src/CAudio.h:65:7: note: Technically the member function 'Audio::stopMusic' can be const. blobwars-2.00/src/CAudio.cpp:365:13: note: Technically the member function 'Audio::stopMusic' can be const. blobwars-2.00/src/CAudio.cpp:373:13: style:inconclusive: Technically the member function 'Audio::fadeMusic' can be const. [functionConst] blobwars-2.00/src/CAudio.h:66:7: note: Technically the member function 'Audio::fadeMusic' can be const. blobwars-2.00/src/CAudio.cpp:373:13: note: Technically the member function 'Audio::fadeMusic' can be const. blobwars-2.00/src/CBoss.h:26:7: warning: The class 'Boss' defines member variable with name 'thinktime' also defined in its parent class 'Entity'. [duplInheritedMember] blobwars-2.00/src/CEntity.h:37:14: note: Parent variable 'Entity::thinktime' blobwars-2.00/src/CBoss.h:26:7: note: Derived variable 'Boss::thinktime' blobwars-2.00/src/CWidget.h:40:11: warning: The class 'Widget' defines member variable with name 'previous' also defined in its parent class 'GameObject'. [duplInheritedMember] blobwars-2.00/src/CGameObject.h:26:22: note: Parent variable 'GameObject::previous' blobwars-2.00/src/CWidget.h:40:11: note: Derived variable 'Widget::previous' blobwars-2.00/src/CCollision.cpp:35:35: style: Parameter 'ent1' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CCollision.cpp:35:49: style: Parameter 'ent2' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CCollision.cpp:43:35: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CCollision.cpp:43:48: style: Parameter 'swt' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CConfig.cpp:80:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CConfig.cpp:3:9: warning: Member variable 'Config::engine' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CConfig.cpp:35:28: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CData.cpp:46:12: style:inconclusive: Technically the member function 'Data::isComplete' can be const. [functionConst] blobwars-2.00/src/CData.h:33:7: note: Technically the member function 'Data::isComplete' can be const. blobwars-2.00/src/CData.cpp:46:12: note: Technically the member function 'Data::isComplete' can be const. blobwars-2.00/src/CEngine.cpp:170:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BUTTON_LEFT [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CEngine.cpp:335:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_SPACE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CEngine.cpp:438:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CEngine.cpp:776:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_UP [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CEngine.cpp:581:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CEngine.cpp:612:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CEngine.cpp:950:2: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CEngine.cpp:954:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::frameLoop' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::mouseX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::mouseY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::lastButtonPressed' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::joyprevX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::joyprevY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::joykeyX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::joykeyY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::joykeyFire' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::paused' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::userHomeDirectory' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::skill' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::sdlrw' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::messagePriority' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::messageType' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::saveSlot' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::continueSaveSlot' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::playerPosX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::playerPosY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:26:9: warning: Member variable 'Engine::cheats' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEngine.cpp:333:14: style:inconclusive: Technically the member function 'Engine::userAccepts' can be const. [functionConst] blobwars-2.00/src/CEngine.h:108:7: note: Technically the member function 'Engine::userAccepts' can be const. blobwars-2.00/src/CEngine.cpp:333:14: note: Technically the member function 'Engine::userAccepts' can be const. blobwars-2.00/src/CEngine.cpp:1099:14: style: The member function 'Engine::delay' can be static. [functionStatic] blobwars-2.00/src/CEngine.h:144:7: note: The member function 'Engine::delay' can be static. blobwars-2.00/src/CEngine.cpp:1099:14: note: The member function 'Engine::delay' can be static. blobwars-2.00/src/CEngine.cpp:585:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/CEngine.cpp:590:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/CEngine.cpp:960:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/CEngine.cpp:581:16: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/CEngine.cpp:950:9: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/CEngine.cpp:553:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:553:80: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:563:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:616:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:623:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:627:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:642:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:646:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:664:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:668:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:728:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:732:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:747:81: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:753:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:981:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:985:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:1005:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:1009:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:1057:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:1062:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CEngine.cpp:335:175: style: Same expression 'keyState[SDL_SCANCODE_LCTRL]' found multiple times in chain of '||' operators. [duplicateExpression] blobwars-2.00/src/CEngine.cpp:466:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] blobwars-2.00/src/CEngine.cpp:577:6: style: The scope of the variable 'i' can be reduced. [variableScope] blobwars-2.00/src/CEngine.cpp:579:10: style: The scope of the variable 'widget' can be reduced. [variableScope] blobwars-2.00/src/CEngine.cpp:979:6: style: The scope of the variable 'rtn' can be reduced. [variableScope] blobwars-2.00/src/CEngine.cpp:1003:6: style: The scope of the variable 'rtn' can be reduced. [variableScope] blobwars-2.00/src/CEngine.cpp:1039:7: style: The scope of the variable 'found' can be reduced. [variableScope] blobwars-2.00/src/CEngine.cpp:1053:8: style: The scope of the variable 'data' can be reduced. [variableScope] blobwars-2.00/src/CEngine.cpp:1032:46: style:inconclusive: Function 'getValueOfFlagTokens' argument 1 names different: declaration 'line' definition 'realLine'. [funcArgNamesDifferent] blobwars-2.00/src/CEngine.h:143:39: note: Function 'getValueOfFlagTokens' argument 1 names different: declaration 'line' definition 'realLine'. blobwars-2.00/src/CEngine.cpp:1032:46: note: Function 'getValueOfFlagTokens' argument 1 names different: declaration 'line' definition 'realLine'. blobwars-2.00/src/CEngine.cpp:574:69: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/CEngine.cpp:711:10: style: Variable 'widget' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/CEngine.cpp:1045:8: style: Variable 'word' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/CEngine.cpp:907:8: warning: Uninitialized variable: *lasts [uninitvar] blobwars-2.00/src/CEngine.cpp:1045:35: note: Calling function 'strtok_r', 3rd argument '&store' value is blobwars-2.00/src/CEngine.cpp:907:8: note: Uninitialized variable: *lasts blobwars-2.00/src/CEngine.cpp:457:11: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/CEngine.cpp:979:10: style: Variable 'rtn' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/CEngine.cpp:1003:10: style: Variable 'rtn' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/CEntity.cpp:24:9: warning: Member variable 'Entity::damage' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEntity.cpp:24:9: warning: Member variable 'Entity::currentFrame' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEntity.cpp:24:9: warning: Member variable 'Entity::currentTime' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEntity.cpp:24:9: warning: Member variable 'Entity::currentWeapon' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CEntity.cpp:43:10: style: Variable 'falling' is reassigned a value before the old one has been used. [redundantAssignment] blobwars-2.00/src/CEntity.cpp:34:10: note: falling is assigned blobwars-2.00/src/CEntity.cpp:43:10: note: falling is overwritten blobwars-2.00/src/CEntity.cpp:44:8: style: Variable 'owner' is reassigned a value before the old one has been used. [redundantAssignment] blobwars-2.00/src/CEntity.cpp:38:8: note: owner is assigned blobwars-2.00/src/CEntity.cpp:44:8: note: owner is overwritten blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::objectiveCheckPointX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::objectiveCheckPointY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::skill' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::checkPointX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::checkPointY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::teleportPointX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::teleportPointY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::missionOverReason' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:24:7: warning: Member variable 'Game::missionOver' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGame.cpp:143:11: style:inconclusive: Technically the member function 'Game::getWeaponAccuracy' can be const. [functionConst] blobwars-2.00/src/CGame.h:73:7: note: Technically the member function 'Game::getWeaponAccuracy' can be const. blobwars-2.00/src/CGame.cpp:143:11: note: Technically the member function 'Game::getWeaponAccuracy' can be const. blobwars-2.00/src/CGame.cpp:158:11: style:inconclusive: Technically the member function 'Game::getTotalAccuracy' can be const. [functionConst] blobwars-2.00/src/CGame.h:75:7: note: Technically the member function 'Game::getTotalAccuracy' can be const. blobwars-2.00/src/CGame.cpp:158:11: note: Technically the member function 'Game::getTotalAccuracy' can be const. blobwars-2.00/src/CGame.cpp:171:11: style:inconclusive: Technically the member function 'Game::getMostUsedWeapon' can be const. [functionConst] blobwars-2.00/src/CGame.h:76:7: note: Technically the member function 'Game::getMostUsedWeapon' can be const. blobwars-2.00/src/CGame.cpp:171:11: note: Technically the member function 'Game::getMostUsedWeapon' can be const. blobwars-2.00/src/CGame.cpp:160:6: style: The scope of the variable 'fired' can be reduced. [variableScope] blobwars-2.00/src/CGameData.cpp:41:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:45:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:64:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:68:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:84:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:91:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:110:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:117:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:132:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:136:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:154:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:158:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:172:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:176:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:188:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:192:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:205:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:211:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:230:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:234:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:252:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:256:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:271:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:275:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGameData.cpp:108:56: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CGraphics.cpp:25:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BLENDMODE_BLEND [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:212:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_F12 [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:234:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:571:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TTF_STYLE_NORMAL [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:679:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BYTEORDER [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:715:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_BYTEORDER [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:843:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:1027:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:1122:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:1169:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:1198:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CGraphics.cpp:917:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CGraphics.cpp:931:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CGraphics.cpp:932:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CGraphics.cpp:933:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CGraphics.cpp:943:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CGraphics.cpp:964:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::engine' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::font' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::screenshot' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::chatString' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::medalMessage' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::fadeBlack' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::window' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::renderer' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::texture' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::screen' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::medal' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::license' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::infoBar' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::red' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::yellow' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::green' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::darkGreen' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::skyBlue' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::blue' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::cyan' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::white' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::lightGrey' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::grey' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::darkGrey' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:29:11: warning: Member variable 'Graphics::black' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CGraphics.cpp:161:16: style: The member function 'Graphics::setTransparent' can be static. [functionStatic] blobwars-2.00/src/CGraphics.h:82:7: note: The member function 'Graphics::setTransparent' can be static. blobwars-2.00/src/CGraphics.cpp:161:16: note: The member function 'Graphics::setTransparent' can be static. blobwars-2.00/src/CGraphics.cpp:296:16: style: The member function 'Graphics::HSVtoRGB' can be static. [functionStatic] blobwars-2.00/src/CGraphics.h:87:7: note: The member function 'Graphics::HSVtoRGB' can be static. blobwars-2.00/src/CGraphics.cpp:296:16: note: The member function 'Graphics::HSVtoRGB' can be static. blobwars-2.00/src/CGraphics.cpp:638:15: style:inconclusive: Technically the member function 'Graphics::getLavaAnim' can be const. [functionConst] blobwars-2.00/src/CGraphics.h:101:6: note: Technically the member function 'Graphics::getLavaAnim' can be const. blobwars-2.00/src/CGraphics.cpp:638:15: note: Technically the member function 'Graphics::getLavaAnim' can be const. blobwars-2.00/src/CGraphics.cpp:659:16: style: The member function 'Graphics::putPixel' can be static. [functionStatic] blobwars-2.00/src/CGraphics.h:103:7: note: The member function 'Graphics::putPixel' can be static. blobwars-2.00/src/CGraphics.cpp:659:16: note: The member function 'Graphics::putPixel' can be static. blobwars-2.00/src/CGraphics.cpp:1071:16: style: The member function 'Graphics::unlock' can be static. [functionStatic] blobwars-2.00/src/CGraphics.h:125:7: note: The member function 'Graphics::unlock' can be static. blobwars-2.00/src/CGraphics.cpp:1071:16: note: The member function 'Graphics::unlock' can be static. blobwars-2.00/src/CGraphics.cpp:522:7: style: Condition 'found' is always true [knownConditionTrueFalse] blobwars-2.00/src/CGraphics.cpp:504:11: note: Assignment 'found=true', assigned value is 1 blobwars-2.00/src/CGraphics.cpp:510:7: note: Assuming condition is false blobwars-2.00/src/CGraphics.cpp:522:7: note: Condition 'found' is always true blobwars-2.00/src/CGraphics.cpp:1138:2: warning: snprintf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] blobwars-2.00/src/CGraphics.cpp:666:13: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/CGraphics.cpp:705:13: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/CGraphics.cpp:77:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:80:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:158:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:586:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:590:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:606:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:610:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:675:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:694:5: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:712:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:721:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CGraphics.cpp:411:15: style: The scope of the variable 'color' can be reduced. [variableScope] blobwars-2.00/src/CGraphics.cpp:487:7: style: The scope of the variable 'found' can be reduced. [variableScope] blobwars-2.00/src/CGraphics.cpp:920:6: style: The scope of the variable 'r' can be reduced. [variableScope] blobwars-2.00/src/CGraphics.cpp:920:9: style: The scope of the variable 'g' can be reduced. [variableScope] blobwars-2.00/src/CGraphics.cpp:920:12: style: The scope of the variable 'b' can be reduced. [variableScope] blobwars-2.00/src/CGraphics.cpp:547:58: style:inconclusive: Function 'loadFont' argument 3 names different: declaration 'pixelSize' definition 'pointSize'. [funcArgNamesDifferent] blobwars-2.00/src/CGraphics.h:94:49: note: Function 'loadFont' argument 3 names different: declaration 'pixelSize' definition 'pointSize'. blobwars-2.00/src/CGraphics.cpp:547:58: note: Function 'loadFont' argument 3 names different: declaration 'pixelSize' definition 'pointSize'. blobwars-2.00/src/CGraphics.cpp:750:34: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CGraphics.cpp:917:8: style: Variable 'word' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/CJoystick.cpp:27:13: style: Variable 'defaultValue' can be declared as const array [constVariable] blobwars-2.00/src/CKeyboard.cpp:31:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_LEFT [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CKeyboard.cpp:69:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_A [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CKeyboard.cpp:42:40: style:inconclusive: Function 'translateKey' argument 1 names different: declaration 'value' definition 'scancode'. [funcArgNamesDifferent] blobwars-2.00/src/CKeyboard.h:9:39: note: Function 'translateKey' argument 1 names different: declaration 'value' definition 'scancode'. blobwars-2.00/src/CKeyboard.cpp:42:40: note: Function 'translateKey' argument 1 names different: declaration 'value' definition 'scancode'. blobwars-2.00/src/CMap.cpp:24:6: warning: Member variable 'Map::offsetX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CMap.cpp:24:6: warning: Member variable 'Map::offsetY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CMap.cpp:107:11: style:inconclusive: Technically the member function 'Map::isPracticeMission' can be const. [functionConst] blobwars-2.00/src/CMap.h:93:7: note: Technically the member function 'Map::isPracticeMission' can be const. blobwars-2.00/src/CMap.cpp:107:11: note: Technically the member function 'Map::isPracticeMission' can be const. blobwars-2.00/src/CMap.cpp:115:11: style: The member function 'Map::isValid' can be static. [functionStatic] blobwars-2.00/src/CMap.h:94:7: note: The member function 'Map::isValid' can be static. blobwars-2.00/src/CMap.cpp:115:11: note: The member function 'Map::isValid' can be static. blobwars-2.00/src/CMap.cpp:198:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:202:7: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:215:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:219:7: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:239:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:243:7: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:427:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:433:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:473:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:477:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:487:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:491:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:501:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMap.cpp:505:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/CMath.cpp:140:28: style:inconclusive: Function 'formatTime' argument 1 names different: declaration 'seconds' definition 't'. [funcArgNamesDifferent] blobwars-2.00/src/CMath.h:45:30: note: Function 'formatTime' argument 1 names different: declaration 'seconds' definition 't'. blobwars-2.00/src/CMath.cpp:140:28: note: Function 'formatTime' argument 1 names different: declaration 'seconds' definition 't'. blobwars-2.00/src/CMedalServer.cpp:23:14: warning: Member variable 'MedalServer::privateKey' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CMedalServer.cpp:152:19: style:inconclusive: Technically the member function 'MedalServer::hasRuby' can be const. [functionConst] blobwars-2.00/src/CMedalServer.h:44:8: note: Technically the member function 'MedalServer::hasRuby' can be const. blobwars-2.00/src/CMedalServer.cpp:152:19: note: Technically the member function 'MedalServer::hasRuby' can be const. blobwars-2.00/src/CMedalServer.cpp:147:26: style:inconclusive: Technically the member function 'MedalServer::getMessage' can be const. [functionConst] blobwars-2.00/src/CMedalServer.h:46:15: note: Technically the member function 'MedalServer::getMessage' can be const. blobwars-2.00/src/CMedalServer.cpp:147:26: note: Technically the member function 'MedalServer::getMessage' can be const. blobwars-2.00/src/CMedalServer.cpp:25:2: warning: Class 'MedalServer' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] blobwars-2.00/src/CMedalServer.cpp:25:2: warning: Class 'MedalServer' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] blobwars-2.00/src/CMedalServer.cpp:122:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/CMedalServer.cpp:100:30: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/CMedalServer.cpp:62:40: style:inconclusive: Function 'postMedal' argument 1 names different: declaration 'medal' definition 'str'. [funcArgNamesDifferent] blobwars-2.00/src/CMedalServer.h:43:29: note: Function 'postMedal' argument 1 names different: declaration 'medal' definition 'str'. blobwars-2.00/src/CMedalServer.cpp:62:40: note: Function 'postMedal' argument 1 names different: declaration 'medal' definition 'str'. blobwars-2.00/src/CPak.cpp:152:2: warning: Return value of function uncompress() is not used. [ignoredReturnValue] blobwars-2.00/src/CPak.cpp:43:11: style: The member function 'Pak::showPakErrorAndExit' can be static. [functionStatic] blobwars-2.00/src/CPak.h:37:7: note: The member function 'Pak::showPakErrorAndExit' can be static. blobwars-2.00/src/CPak.cpp:43:11: note: The member function 'Pak::showPakErrorAndExit' can be static. blobwars-2.00/src/CPak.cpp:165:11: style:inconclusive: Technically the member function 'Pak::fileExists' can be const. [functionConst] blobwars-2.00/src/CPak.h:45:7: note: Technically the member function 'Pak::fileExists' can be const. blobwars-2.00/src/CPak.cpp:165:11: note: Technically the member function 'Pak::fileExists' can be const. blobwars-2.00/src/CPak.cpp:147:31: style: Return value 'showPakErrorAndExit(),false' is always false [knownConditionTrueFalse] blobwars-2.00/src/CPak.cpp:88:6: style: The scope of the variable 'result' can be reduced. [variableScope] blobwars-2.00/src/CPak.cpp:88:13: style: Variable 'result' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/CParticle.cpp:24:11: warning: Member variable 'Particle::currentFrame' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CParticle.cpp:24:11: warning: Member variable 'Particle::currentTime' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CParticle.cpp:24:11: warning: Member variable 'Particle::health' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CParticle.cpp:24:11: warning: Member variable 'Particle::flags' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CRadarBlip.cpp:24:12: warning: Member variable 'RadarBlip::x' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CRadarBlip.cpp:24:12: warning: Member variable 'RadarBlip::y' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CRadarBlip.cpp:24:12: warning: Member variable 'RadarBlip::type' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CReplayData.cpp:13:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CReplayData.cpp:28:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CReplayData.cpp:86:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] blobwars-2.00/src/CReplayData.cpp:41:17: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] blobwars-2.00/src/CReplayData.cpp:42:29: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] blobwars-2.00/src/CReplayData.cpp:4:13: warning: Member variable 'ReplayData::index' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CReplayData.cpp:4:13: warning: Member variable 'ReplayData::data' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CReplayData.cpp:4:13: warning: Member variable 'ReplayData::replayMode' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CReplayData.cpp:48:18: style: The member function 'ReplayData::swapHeaderEndians' can be static. [functionStatic] blobwars-2.00/src/CReplayData.h:28:8: note: The member function 'ReplayData::swapHeaderEndians' can be static. blobwars-2.00/src/CReplayData.cpp:48:18: note: The member function 'ReplayData::swapHeaderEndians' can be static. blobwars-2.00/src/CReplayData.cpp:138:18: style:inconclusive: Technically the member function 'ReplayData::read' can be const. [functionConst] blobwars-2.00/src/CReplayData.h:30:8: note: Technically the member function 'ReplayData::read' can be const. blobwars-2.00/src/CReplayData.cpp:138:18: note: Technically the member function 'ReplayData::read' can be const. blobwars-2.00/src/CReplayData.cpp:35:10: warning: Class 'ReplayData' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] blobwars-2.00/src/CReplayData.cpp:35:10: warning: Class 'ReplayData' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] blobwars-2.00/src/CReplayData.cpp:41:6: style: Variable 'timeinfo' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/CReplayData.cpp:164:27: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/CSpawnPoint.cpp:24:13: warning: Member variable 'SpawnPoint::requiredInterval' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CSpawnPoint.cpp:64:18: style:inconclusive: Technically the member function 'SpawnPoint::readyToSpawn' can be const. [functionConst] blobwars-2.00/src/CSpawnPoint.h:40:7: note: Technically the member function 'SpawnPoint::readyToSpawn' can be const. blobwars-2.00/src/CSpawnPoint.cpp:64:18: note: Technically the member function 'SpawnPoint::readyToSpawn' can be const. blobwars-2.00/src/CSprite.cpp:27:9: warning: Member variable 'Sprite::name' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CSprite.cpp:81:14: style:inconclusive: Technically the member function 'Sprite::getNextFrame' can be const. [functionConst] blobwars-2.00/src/CSprite.h:42:7: note: Technically the member function 'Sprite::getNextFrame' can be const. blobwars-2.00/src/CSprite.cpp:81:14: note: Technically the member function 'Sprite::getNextFrame' can be const. blobwars-2.00/src/CTeleporter.cpp:24:13: warning: Member variable 'Teleporter::name' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTeleporter.cpp:24:13: warning: Member variable 'Teleporter::active' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::dx' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::dy' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::pause' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::think' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::name' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::x' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::y' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::startX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::startY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::endX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::endY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::height' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:24:8: warning: Member variable 'Train::width' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrain.cpp:33:14: style:inconclusive: Technically the member function 'Train::getDX' can be const. [functionConst] blobwars-2.00/src/CTrain.h:49:8: note: Technically the member function 'Train::getDX' can be const. blobwars-2.00/src/CTrain.cpp:33:14: note: Technically the member function 'Train::getDX' can be const. blobwars-2.00/src/CTrain.cpp:41:14: style:inconclusive: Technically the member function 'Train::getDY' can be const. [functionConst] blobwars-2.00/src/CTrain.h:50:8: note: Technically the member function 'Train::getDY' can be const. blobwars-2.00/src/CTrain.cpp:41:14: note: Technically the member function 'Train::getDY' can be const. blobwars-2.00/src/CTrain.cpp:62:13: style:inconclusive: Technically the member function 'Train::isMoving' can be const. [functionConst] blobwars-2.00/src/CTrain.h:52:7: note: Technically the member function 'Train::isMoving' can be const. blobwars-2.00/src/CTrain.cpp:62:13: note: Technically the member function 'Train::isMoving' can be const. blobwars-2.00/src/CTrain.cpp:70:13: style:inconclusive: Technically the member function 'Train::waitsForPlayer' can be const. [functionConst] blobwars-2.00/src/CTrain.h:53:7: note: Technically the member function 'Train::waitsForPlayer' can be const. blobwars-2.00/src/CTrain.cpp:70:13: note: Technically the member function 'Train::waitsForPlayer' can be const. blobwars-2.00/src/CTrain.cpp:188:12: style:inconclusive: Technically the member function 'Train::getPause' can be const. [functionConst] blobwars-2.00/src/CTrain.h:59:6: note: Technically the member function 'Train::getPause' can be const. blobwars-2.00/src/CTrain.cpp:188:12: note: Technically the member function 'Train::getPause' can be const. blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::name' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::type' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::damage' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::waitTime' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::speed' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::width' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::height' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::startX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::startY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::endX' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::endY' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:24:7: warning: Member variable 'Trap::sprite' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/CTrap.cpp:37:28: style:inconclusive: Function 'setTrapType' argument 1 names different: declaration 'trapType' definition 'type'. [funcArgNamesDifferent] blobwars-2.00/src/CTrap.h:41:23: note: Function 'setTrapType' argument 1 names different: declaration 'trapType' definition 'type'. blobwars-2.00/src/CTrap.cpp:37:28: note: Function 'setTrapType' argument 1 names different: declaration 'trapType' definition 'type'. blobwars-2.00/src/CTrap.cpp:47:29: style:inconclusive: Function 'setWaitTimes' argument 1 names different: declaration 'wait1' definition 'time1'. [funcArgNamesDifferent] blobwars-2.00/src/CTrap.h:46:24: note: Function 'setWaitTimes' argument 1 names different: declaration 'wait1' definition 'time1'. blobwars-2.00/src/CTrap.cpp:47:29: note: Function 'setWaitTimes' argument 1 names different: declaration 'wait1' definition 'time1'. blobwars-2.00/src/CTrap.cpp:47:40: style:inconclusive: Function 'setWaitTimes' argument 2 names different: declaration 'wait2' definition 'time2'. [funcArgNamesDifferent] blobwars-2.00/src/CTrap.h:46:35: note: Function 'setWaitTimes' argument 2 names different: declaration 'wait2' definition 'time2'. blobwars-2.00/src/CTrap.cpp:47:40: note: Function 'setWaitTimes' argument 2 names different: declaration 'wait2' definition 'time2'. blobwars-2.00/src/CWeapon.cpp:24:9: warning: Member variable 'Weapon::sprite' is not initialized in the constructor. [uninitMemberVar] blobwars-2.00/src/aquaBoss.cpp:79:23: style: Condition 'enemy->health%10' is always true [knownConditionTrueFalse] blobwars-2.00/src/aquaBoss.cpp:78:22: note: Assignment 'enemy->health=-1', assigned value is -1 blobwars-2.00/src/aquaBoss.cpp:79:23: note: Condition 'enemy->health%10' is always true blobwars-2.00/src/aquaBoss.cpp:118:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/aquaBoss.cpp:174:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/aquaBoss.cpp:60:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/aquaBoss.cpp:64:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/bosses.cpp:365:14: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/bosses.cpp:477:29: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/bosses.cpp:77:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/bosses.cpp:97:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/bosses.cpp:164:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/bosses.cpp:171:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/bosses.cpp:439:17: style: Variable 'bullet->owner' is reassigned a value before the old one has been used. [redundantAssignment] blobwars-2.00/src/bosses.cpp:429:17: note: bullet->owner is assigned blobwars-2.00/src/bosses.cpp:439:17: note: bullet->owner is overwritten blobwars-2.00/src/bosses.cpp:209:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/bosses.cpp:209:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/bullets.cpp:289:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/bullets.cpp:296:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/bullets.cpp:159:8: style: The scope of the variable 'dx' can be reduced. [variableScope] blobwars-2.00/src/bullets.cpp:159:12: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/bullets.cpp:292:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/bullets.cpp:292:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/cutscene.cpp:35:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/cutscene.cpp:54:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/cutscene.cpp:61:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/cutscene.cpp:64:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/cutscene.cpp:83:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/cutscene.cpp:103:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/cutscene.cpp:94:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/cutscene.cpp:83:22: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/cutscene.cpp:133:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/cutscene.cpp:185:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/cutscene.cpp:28:7: style: Variable 'sceneLine' can be declared as const array [constVariable] blobwars-2.00/src/cutscene.cpp:29:8: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/cutscene.cpp:83:8: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/droidBoss.cpp:198:19: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/droidBoss.cpp:200:38: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/droidBoss.cpp:200:71: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/droidBoss.cpp:31:12: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/droidBoss.cpp:200:26: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] blobwars-2.00/src/effects.cpp:85:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/effects.cpp:96:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/effects.cpp:46:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/effects.cpp:46:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/effects.cpp:65:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/effects.cpp:65:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/effects.cpp:92:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/effects.cpp:92:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/effects.cpp:44:30: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/effects.cpp:63:23: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/enemies.cpp:862:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/enemies.cpp:885:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/enemies.cpp:837:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/enemies.cpp:874:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/enemies.cpp:862:23: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/enemies.cpp:41:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/enemies.cpp:45:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/enemies.cpp:366:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/enemies.cpp:370:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/enemies.cpp:599:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/enemies.cpp:608:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/enemies.cpp:94:6: style: The scope of the variable 'mx' can be reduced. [variableScope] blobwars-2.00/src/enemies.cpp:94:10: style: The scope of the variable 'my' can be reduced. [variableScope] blobwars-2.00/src/enemies.cpp:377:8: style: The scope of the variable 'comboString' can be reduced. [variableScope] blobwars-2.00/src/enemies.cpp:571:8: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/enemies.cpp:571:11: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/enemies.cpp:60:10: style: Local variable 'defEnemy' shadows outer variable [shadowVariable] blobwars-2.00/src/enemies.h:50:15: note: Shadowed declaration blobwars-2.00/src/enemies.cpp:60:10: note: Shadow variable blobwars-2.00/src/enemies.cpp:834:33: style: Local variable 'weapon' shadows outer variable [shadowVariable] blobwars-2.00/src/enemies.h:52:15: note: Shadowed declaration blobwars-2.00/src/enemies.cpp:834:33: note: Shadow variable blobwars-2.00/src/enemies.cpp:864:33: style: Local variable 'weapon' shadows outer variable [shadowVariable] blobwars-2.00/src/enemies.h:52:15: note: Shadowed declaration blobwars-2.00/src/enemies.cpp:864:33: note: Shadow variable blobwars-2.00/src/enemies.cpp:92:27: style: Parameter 'enemy' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/enemies.cpp:862:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/explosions.cpp:41:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/explosions.cpp:45:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/explosions.cpp:28:8: style: The scope of the variable 'dx' can be reduced. [variableScope] blobwars-2.00/src/explosions.cpp:28:12: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/explosions.cpp:24:57: style: Parameter 'owner' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/finalBattle.cpp:41:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/finalBattle.cpp:276:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/finalBattle.cpp:713:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/finalBattle.cpp:717:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/galdov.cpp:203:38: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/galdov.cpp:203:71: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/galdov.cpp:230:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/galdov.cpp:32:12: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/galdov.cpp:425:6: style: The scope of the variable 'r' can be reduced. [variableScope] blobwars-2.00/src/galdov.cpp:203:26: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] blobwars-2.00/src/game.cpp:103:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/game.cpp:689:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/game.cpp:425:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/game.cpp:429:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/game.cpp:95:6: style: The scope of the variable 'menuSound' can be reduced. [variableScope] blobwars-2.00/src/game.cpp:569:16: style: The scope of the variable 'cur' can be reduced. [variableScope] blobwars-2.00/src/game.cpp:95:16: style: Variable 'menuSound' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/graphics.cpp:47:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/graphics.cpp:28:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/graphics.cpp:28:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/graphics.cpp:28:12: style: The scope of the variable 'h' can be reduced. [variableScope] blobwars-2.00/src/hub.cpp:187:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/hub.cpp:219:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/hub.cpp:366:4: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/hub.cpp:368:42: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/hub.cpp:495:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/hub.cpp:525:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/hub.cpp:545:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/hub.cpp:96:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:100:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:106:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:111:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:127:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:133:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:139:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:145:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:151:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/hub.cpp:199:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/hub.cpp:213:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/hub.cpp:513:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/hub.cpp:187:22: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/hub.cpp:495:22: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/hub.cpp:237:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:259:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:339:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:355:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:563:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:567:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:655:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:660:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/hub.cpp:561:14: style: The scope of the variable 'labelY' can be reduced. [variableScope] blobwars-2.00/src/hub.cpp:598:6: style: The scope of the variable 'labelWidth' can be reduced. [variableScope] blobwars-2.00/src/hub.cpp:187:8: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/hub.cpp:495:8: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/info.cpp:347:6: warning: Either the condition 'text1' is redundant or there is possible null pointer dereference: text1. [nullPointerRedundantCheck] blobwars-2.00/src/info.cpp:386:6: note: Assuming that condition 'text1' is not redundant blobwars-2.00/src/info.cpp:347:6: note: Null pointer dereference blobwars-2.00/src/info.cpp:348:6: warning: Either the condition 'text1' is redundant or there is possible null pointer dereference: text1. [nullPointerRedundantCheck] blobwars-2.00/src/info.cpp:386:6: note: Assuming that condition 'text1' is not redundant blobwars-2.00/src/info.cpp:348:6: note: Null pointer dereference blobwars-2.00/src/info.cpp:253:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/info.cpp:279:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/init.cpp:158:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] blobwars-2.00/src/init.cpp:275:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_VIDEO [valueFlowBailoutIncompleteVar] blobwars-2.00/src/init.cpp:501:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_DISABLE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/init.cpp:53:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/init.cpp:66:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/init.cpp:57:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/init.cpp:53:23: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/init.cpp:53:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/init.cpp:440:15: style: Variable 'thread' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/intro.cpp:113:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/intro.cpp:37:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/intro.cpp:124:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/intro.cpp:166:2: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/intro.cpp:170:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/intro.cpp:125:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/intro.cpp:166:9: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/intro.cpp:129:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/intro.cpp:133:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/intro.cpp:121:8: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/intro.cpp:170:9: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/items.cpp:429:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/items.cpp:448:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/items.cpp:441:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/items.cpp:429:23: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/items.cpp:156:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:158:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:162:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:169:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:189:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:193:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:303:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:307:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:329:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:333:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:344:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:348:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:364:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:370:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/items.cpp:144:6: style: The scope of the variable 'r' can be reduced. [variableScope] blobwars-2.00/src/items.cpp:212:7: style: The scope of the variable 'string' can be reduced. [variableScope] blobwars-2.00/src/items.cpp:429:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/lineDefs.cpp:36:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/lineDefs.cpp:40:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/lineDefs.cpp:49:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/lineDefs.cpp:55:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/loadSave.cpp:365:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] blobwars-2.00/src/loadSave.cpp:110:94: style: Return value 'graphics.showErrorAndExit("The save data loaded was not in the format expected",""),false' is always false [knownConditionTrueFalse] blobwars-2.00/src/loadSave.cpp:128:84: style: Return value 'graphics.showErrorAndExit("Unexpected end of file reading save data",""),false' is always false [knownConditionTrueFalse] blobwars-2.00/src/loadSave.cpp:131:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/loadSave.cpp:172:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/loadSave.cpp:381:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/loadSave.cpp:385:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/loadSave.cpp:392:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/loadSave.cpp:397:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/loadSave.cpp:407:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/loadSave.cpp:411:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/loadSave.cpp:35:8: style: The scope of the variable 'fp' can be reduced. [variableScope] blobwars-2.00/src/loadSave.cpp:92:8: style: The scope of the variable 'data' can be reduced. [variableScope] blobwars-2.00/src/loadSave.cpp:162:14: style: The scope of the variable 'persistant' can be reduced. [variableScope] blobwars-2.00/src/loadSave.cpp:163:15: style: The scope of the variable 'persistData' can be reduced. [variableScope] blobwars-2.00/src/loadSave.cpp:258:6: style: The scope of the variable 'menuSound' can be reduced. [variableScope] blobwars-2.00/src/loadSave.cpp:247:7: style: Local variable 'widgetName' shadows outer variable [shadowVariable] blobwars-2.00/src/defs.h:167:12: note: Shadowed declaration blobwars-2.00/src/loadSave.cpp:247:7: note: Shadow variable blobwars-2.00/src/loadSave.cpp:258:16: style: Variable 'menuSound' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/main.cpp:140:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALEDIR [valueFlowBailoutIncompleteVar] blobwars-2.00/src/map.cpp:414:98: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/map.cpp:674:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/map.cpp:681:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/map.cpp:506:16: style: Condition 'ent==&player' is always true [knownConditionTrueFalse] blobwars-2.00/src/map.cpp:504:14: note: Assuming that condition 'ent==&player' is not redundant blobwars-2.00/src/map.cpp:506:16: note: Condition 'ent==&player' is always true blobwars-2.00/src/map.cpp:574:26: style: Condition '(int)map.waterLevel!=map.requiredWaterLevel' is always true [knownConditionTrueFalse] blobwars-2.00/src/map.cpp:674:23: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/map.cpp:135:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:139:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:143:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:154:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:207:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:214:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:422:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:426:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/map.cpp:322:5: style: Variable 'color' is assigned an expression that holds the same value. [redundantAssignment] blobwars-2.00/src/map.cpp:318:14: note: color is assigned 'graphics.black' here. blobwars-2.00/src/map.cpp:322:5: note: Variable 'color' is assigned an expression that holds the same value. blobwars-2.00/src/map.cpp:326:5: style: Variable 'color' is assigned an expression that holds the same value. [redundantAssignment] blobwars-2.00/src/map.cpp:318:14: note: color is assigned 'graphics.black' here. blobwars-2.00/src/map.cpp:326:5: note: Variable 'color' is assigned an expression that holds the same value. blobwars-2.00/src/map.cpp:39:6: style: The scope of the variable 'brick' can be reduced. [variableScope] blobwars-2.00/src/map.cpp:79:6: style: The scope of the variable 'brick' can be reduced. [variableScope] blobwars-2.00/src/map.cpp:209:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/map.cpp:209:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/map.cpp:210:6: style: The scope of the variable 'width' can be reduced. [variableScope] blobwars-2.00/src/map.cpp:210:13: style: The scope of the variable 'height' can be reduced. [variableScope] blobwars-2.00/src/map.cpp:210:21: style: The scope of the variable 'color' can be reduced. [variableScope] blobwars-2.00/src/map.cpp:612:7: style: Local variable 'y' shadows outer variable [shadowVariable] blobwars-2.00/src/map.cpp:572:6: note: Shadowed declaration blobwars-2.00/src/map.cpp:612:7: note: Shadow variable blobwars-2.00/src/map.cpp:674:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/map.cpp:39:12: style: Variable 'brick' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/mapData.cpp:43:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/mapData.cpp:418:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/mapData.cpp:62:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:99:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:103:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:128:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:133:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:138:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:143:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:154:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:160:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:178:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:192:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:203:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:209:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:214:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:219:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:224:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:229:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:234:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:239:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:250:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:301:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:306:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/mapData.cpp:357:27: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:437:15: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:461:16: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:467:16: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:480:15: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:490:15: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:500:15: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:521:15: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mapData.cpp:47:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:116:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:397:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:401:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:406:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:410:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:422:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:426:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:431:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:435:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:444:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:448:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:474:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:478:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:485:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:489:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:495:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:499:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:505:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:509:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapData.cpp:30:7: style: The scope of the variable 'allowAtSkillLevel' can be reduced. [variableScope] blobwars-2.00/src/mapData.cpp:36:14: style: The scope of the variable 'persistant' can be reduced. [variableScope] blobwars-2.00/src/mapData.cpp:369:7: style: Local variable 'skill' shadows outer variable [shadowVariable] blobwars-2.00/src/defs.h:190:12: note: Shadowed declaration blobwars-2.00/src/mapData.cpp:369:7: note: Shadow variable blobwars-2.00/src/mapData.cpp:34:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/mapData.cpp:277:6: style: Consider using std::distance algorithm instead of a raw loop. [useStlAlgorithm] blobwars-2.00/src/mapData.cpp:30:25: style: Variable 'allowAtSkillLevel' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/mapEditor.cpp:80:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_SPACE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/mapEditor.cpp:383:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_F1 [valueFlowBailoutIncompleteVar] blobwars-2.00/src/mapEditor.cpp:570:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_UP [valueFlowBailoutIncompleteVar] blobwars-2.00/src/mapEditor.cpp:170:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapEditor.cpp:176:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapEditor.cpp:207:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapEditor.cpp:212:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapEditor.cpp:229:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapEditor.cpp:252:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mapEditor.cpp:46:6: style: The scope of the variable 'tile' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:172:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:172:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:172:12: style: The scope of the variable 'absX' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:172:18: style: The scope of the variable 'absY' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:388:7: style: The scope of the variable 'moveLeft' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:389:7: style: The scope of the variable 'moveRight' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:390:7: style: The scope of the variable 'ok' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:392:6: style: The scope of the variable 'left' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:393:6: style: The scope of the variable 'right' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:668:10: style: The scope of the variable 'str2' can be reduced. [variableScope] blobwars-2.00/src/mapEditor.cpp:230:10: style: Variable 'str' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/mapEditor.cpp:46:11: style: Variable 'tile' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/mapEditor.cpp:477:30: style: Variable 'x' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/mapEditor.cpp:477:34: style: Variable 'y' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/mias.cpp:105:26: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/mias.cpp:62:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mias.cpp:70:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:81:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:82:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:86:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:95:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:133:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:138:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:180:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:194:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:247:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:253:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:314:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:320:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/mission.cpp:91:7: style: The scope of the variable 'miaFound' can be reduced. [variableScope] blobwars-2.00/src/objectives.cpp:28:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:32:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:56:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:62:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:113:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:117:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:131:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:135:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:146:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:150:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:168:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:172:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:205:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:209:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:228:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:232:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:243:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:251:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/objectives.cpp:247:6: style: The scope of the variable 'requiredValue' can be reduced. [variableScope] blobwars-2.00/src/obstacles.cpp:42:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/obstacles.cpp:48:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/obstacles.cpp:101:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/obstacles.cpp:107:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/obstacles.cpp:103:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/obstacles.cpp:103:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/options.cpp:79:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/options.cpp:167:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/options.cpp:251:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/options.cpp:434:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/options.cpp:282:8: style: The scope of the variable 'brightness' can be reduced. [variableScope] blobwars-2.00/src/pak.cpp:159:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] blobwars-2.00/src/pak.cpp:193:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] blobwars-2.00/src/pak.cpp:153:5: warning: Return value of function compress2() is not used. [ignoredReturnValue] blobwars-2.00/src/pak.cpp:249:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] blobwars-2.00/src/pak.cpp:44:26: warning: If resource allocation fails, then there is a possible null pointer dereference: dirp [nullPointerOutOfResources] blobwars-2.00/src/pak.cpp:41:16: note: Assuming allocation function fails blobwars-2.00/src/pak.cpp:41:16: note: Assignment 'dirp=opendir(dirName)', assigned value is 0 blobwars-2.00/src/pak.cpp:44:26: note: Null pointer dereference blobwars-2.00/src/pak.cpp:40:10: style: Variable 'dfile' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/pak.cpp:80:10: style: Variable 'dfile' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/particles.cpp:148:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/particles.cpp:155:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/particles.cpp:26:6: style: The scope of the variable 'c' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:27:11: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:27:14: style: The scope of the variable 'dx' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:27:18: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:61:8: style: The scope of the variable 'dx' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:61:12: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:131:8: style: The scope of the variable 'dx' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:131:12: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:151:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/particles.cpp:151:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/player.cpp:81:1: error: Memory leak: data [memleak] blobwars-2.00/src/player.cpp:81:1: error: Resource leak: thread [resourceLeak] blobwars-2.00/src/player.cpp:26:16: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/player.cpp:72:68: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/player.cpp:78:15: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/player.cpp:123:8: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/player.cpp:123:11: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/player.cpp:72:14: style: Variable 'thread' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/resources.cpp:86:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/resources.cpp:97:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/resources.cpp:42:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/resources.cpp:86:23: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/resources.cpp:86:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/spawnPoints.cpp:38:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/spawnPoints.cpp:42:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/spawnPoints.cpp:111:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/spawnPoints.cpp:119:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/spawnPoints.cpp:52:10: style: Variable 'enemy' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/spawnPoints.cpp:115:8: style: Variable 'enemy' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/switches.cpp:26:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/switches.cpp:33:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/switches.cpp:125:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/switches.cpp:131:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/switches.cpp:127:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/switches.cpp:127:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/switches.cpp:127:12: style: The scope of the variable 'absX' can be reduced. [variableScope] blobwars-2.00/src/switches.cpp:127:18: style: The scope of the variable 'absY' can be reduced. [variableScope] blobwars-2.00/src/tankBoss.cpp:184:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/tankBoss.cpp:202:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/tankBoss.cpp:427:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/tankBoss.cpp:449:12: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/tankBoss.cpp:123:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/tankBoss.cpp:127:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/tankBoss.cpp:44:6: style: The scope of the variable 'dx' can be reduced. [variableScope] blobwars-2.00/src/tankBoss.cpp:72:8: style: The scope of the variable 'dx' can be reduced. [variableScope] blobwars-2.00/src/tankBoss.cpp:72:12: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/tankBoss.cpp:95:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/tankBoss.cpp:98:10: style: The scope of the variable 'enemy' can be reduced. [variableScope] blobwars-2.00/src/tankBoss.cpp:117:13: style: Local variable 'i' shadows outer variable [shadowVariable] blobwars-2.00/src/tankBoss.cpp:100:11: note: Shadowed declaration blobwars-2.00/src/tankBoss.cpp:117:13: note: Shadow variable blobwars-2.00/src/tankBoss.cpp:135:14: style: Local variable 'i' shadows outer variable [shadowVariable] blobwars-2.00/src/tankBoss.cpp:100:11: note: Shadowed declaration blobwars-2.00/src/tankBoss.cpp:135:14: note: Shadow variable blobwars-2.00/src/tankBoss.cpp:44:9: style: Variable 'dx' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/teleporters.cpp:51:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/teleporters.cpp:55:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/teleporters.cpp:78:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/teleporters.cpp:85:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/teleporters.cpp:80:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/teleporters.cpp:80:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/teleporters.cpp:81:8: style: The scope of the variable 'dy' can be reduced. [variableScope] blobwars-2.00/src/title.cpp:399:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_ESCAPE [valueFlowBailoutIncompleteVar] blobwars-2.00/src/title.cpp:549:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SCANCODE_DOWN [valueFlowBailoutIncompleteVar] blobwars-2.00/src/title.cpp:486:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/title.cpp:493:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/title.cpp:520:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/title.cpp:501:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/title.cpp:486:16: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/title.cpp:116:7: style: Local variable 'widgetName' shadows outer variable [shadowVariable] blobwars-2.00/src/defs.h:167:12: note: Shadowed declaration blobwars-2.00/src/title.cpp:116:7: note: Shadow variable blobwars-2.00/src/title.cpp:475:8: style: Variable 'line' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/trains.cpp:111:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:113:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:132:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:139:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:323:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:327:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:343:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:350:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/trains.cpp:345:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/trains.cpp:345:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/trains.cpp:345:12: style: The scope of the variable 'oldX' can be reduced. [variableScope] blobwars-2.00/src/trains.cpp:345:18: style: The scope of the variable 'oldY' can be reduced. [variableScope] blobwars-2.00/src/trains.cpp:346:6: style: The scope of the variable 'playSound' can be reduced. [variableScope] blobwars-2.00/src/trains.cpp:107:29: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/trains.cpp:313:32: style: Parameter 'train' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/trains.cpp:134:17: style: Variable 'collision' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/trains.cpp:346:16: style: Variable 'playSound' is assigned a value that is never used. [unreadVariable] blobwars-2.00/src/traps.cpp:136:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/traps.cpp:140:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/traps.cpp:182:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/traps.cpp:191:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/traps.cpp:186:6: style: The scope of the variable 'x' can be reduced. [variableScope] blobwars-2.00/src/traps.cpp:186:9: style: The scope of the variable 'y' can be reduced. [variableScope] blobwars-2.00/src/traps.cpp:186:12: style: The scope of the variable 'mx' can be reduced. [variableScope] blobwars-2.00/src/traps.cpp:186:16: style: The scope of the variable 'my' can be reduced. [variableScope] blobwars-2.00/src/traps.cpp:127:29: style: Parameter 'trap' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/triggers.cpp:56:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:60:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:80:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:81:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:82:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:83:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:87:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:104:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:118:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/triggers.cpp:132:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/weapons.cpp:34:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/weapons.cpp:61:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] blobwars-2.00/src/weapons.cpp:47:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] blobwars-2.00/src/weapons.cpp:34:23: style: C-style pointer casting [cstyleCast] blobwars-2.00/src/weapons.cpp:34:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/widgets.cpp:199:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/widgets.cpp:205:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/widgets.cpp:215:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/widgets.cpp:219:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] blobwars-2.00/src/widgets.cpp:36:8: style: Variable 'c' can be declared as pointer to const [constVariablePointer] blobwars-2.00/src/widgets.cpp:123:37: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] blobwars-2.00/src/widgets.cpp:154:28: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] diff: DONE