2026-05-02 12:12 ftp://ftp.de.debian.org/debian/pool/main/h/hex-a-hop/hex-a-hop_1.1.0+git20140926.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sdl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 29 26 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: hexahop/src/state.h:38:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hexahop/src/gfx.cpp:142:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] hexahop/src/gfx.cpp:194:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] hexahop/src/gfx.cpp:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_VIDEO [valueFlowBailoutIncompleteVar] hexahop/src/state.h:60:2: style: Class 'String' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] hexahop/src/state.h:212:2: style: Class 'StateMaker' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] hexahop/src/state.h:214:9: style: The function 'Create' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] hexahop/src/state.h:175:17: note: Virtual function in base class hexahop/src/state.h:214:9: note: Function in derived class hexahop/src/state.h:52:19: style: C-style pointer casting [cstyleCast] hexahop/src/state.h:63:47: style: C-style pointer casting [cstyleCast] hexahop/src/gfx.cpp:281:8: style: The scope of the variable 'x' can be reduced. [variableScope] hexahop/src/state.h:229:27: style:inconclusive: Function 'LoadSaveDialog' argument 1 names different: declaration 'save' definition ''. [funcArgNamesDifferentUnnamed] hexahop/src/state.h:229:38: style:inconclusive: Function 'LoadSaveDialog' argument 2 names different: declaration 'levels' definition ''. [funcArgNamesDifferentUnnamed] hexahop/src/state.h:229:59: style:inconclusive: Function 'LoadSaveDialog' argument 3 names different: declaration 'title' definition ''. [funcArgNamesDifferentUnnamed] hexahop/src/gfx.cpp:180:9: style: Local variable 'base_path' shadows outer variable [shadowVariable] hexahop/src/gfx.cpp:163:8: note: Shadowed declaration hexahop/src/gfx.cpp:180:9: note: Shadow variable hexahop/src/state.h:163:24: style: Variable 's' can be declared as pointer to const [constVariablePointer] hexahop/src/gfx.cpp:281:10: style: Variable 'x' is assigned a value that is never used. [unreadVariable] hexahop/src/i18n.cpp:50:7: style: The statement 'if (!IsInit) IsInit=true' is logically equivalent to 'IsInit=true'. [duplicateConditionalAssign] hexahop/src/i18n.cpp:52:10: note: Assignment 'IsInit=true' hexahop/src/i18n.cpp:50:7: note: Condition '!IsInit' is redundant hexahop/src/menus.h:151:1: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_NAME is a macro then please configure it. [unknownMacro] hexahop/src/sfx.cpp:113:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hexahop/src/sfx.cpp:251:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_AUDIO [valueFlowBailoutIncompleteVar] hexahop/src/system-directory.c:90:3: error: Memory leak: self.path [memleak] hexahop/src/system-directory.c:86:23: warning: Either the condition 'path==NULL' is redundant or there is possible null pointer dereference: path. [nullPointerRedundantCheck] hexahop/src/system-directory.c:87:11: note: Assuming that condition 'path==NULL' is not redundant hexahop/src/system-directory.c:86:23: note: Null pointer dereference hexahop/src/sfx.cpp:79:2: style: Class 'SoundEngine' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] hexahop/src/sfx.cpp:83:9: style: The scope of the variable 'pth' can be reduced. [variableScope] hexahop/src/sfx.cpp:217:5: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] hexahop/src/text.cpp:226:2: error: #error "Font path not configured, please use the --with-font-path configure argument" [preprocessorErrorDirective] hexahop/src/sfx.cpp:139:68: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] hexahop/src/sfx.cpp:145:68: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] hexahop/src/sfx.cpp:214:60: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] diff: head hexahop/src/state.h:229:27: style:inconclusive: Function 'LoadSaveDialog' argument 1 names different: declaration 'save' definition ''. [funcArgNamesDifferentUnnamed] head hexahop/src/state.h:229:38: style:inconclusive: Function 'LoadSaveDialog' argument 2 names different: declaration 'levels' definition ''. [funcArgNamesDifferentUnnamed] head hexahop/src/state.h:229:59: style:inconclusive: Function 'LoadSaveDialog' argument 3 names different: declaration 'title' definition ''. [funcArgNamesDifferentUnnamed] DONE