2025-09-01 09:19 ftp://ftp.de.debian.org/debian/pool/main/libs/libsdl2-ttf/libsdl2-ttf_2.24.0+dfsg.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 4 48 elapsed-time: 0.7 4.2 head-timing-info: old-timing-info: head results: SDL2_ttf-2.24.0/SDL_ttf.c:1399:0: error: failed to evaluate #if condition, undefined function-like macro invocation: SDL_VERSION_ATLEAST( ... ) [preprocessorErrorDirective] SDL2_ttf-2.24.0/SDL_ttf.c:1399:2: error: failed to evaluate #if condition, undefined function-like macro invocation: SDL_VERSION_ATLEAST( ... ) [preprocessorErrorDirective] SDL2_ttf-2.24.0/cmake/test/main.c:9:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] SDL2_ttf-2.24.0/glfont.c:513:26: style: Parameter 'argv' can be declared as const array [constParameter] diff: 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1283:1: style: Expression is always false because 'else if' condition matches previous condition at line 1283. [multiCondition] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1283:1: style: Same expression on both sides of '||'. [duplicateExpression] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1285:1: style: Expression is always false because 'else if' condition matches previous condition at line 1285. [multiCondition] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1286:1: style: Expression is always false because 'else if' condition matches previous condition at line 1286. [multiCondition] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1286:1: style: Same expression on both sides of '||'. [duplicateExpression] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1287:1: style: Expression is always false because 'else if' condition matches previous condition at line 1287. [multiCondition] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1287:1: style: Same expression on both sides of '||'. [duplicateExpression] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1289:1: style: Expression is always false because 'else if' condition matches previous condition at line 1289. [multiCondition] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1290:1: style: Expression is always false because 'else if' condition matches previous condition at line 1290. [multiCondition] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1291:1: style: Expression is always false because 'else if' condition matches previous condition at line 1291. [multiCondition] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1337:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ALPHA_OPAQUE [valueFlowBailoutIncompleteVar] head SDL2_ttf-2.24.0/SDL_ttf.c:1399:0: error: failed to evaluate #if condition, undefined function-like macro invocation: SDL_VERSION_ATLEAST( ... ) [preprocessorErrorDirective] head SDL2_ttf-2.24.0/SDL_ttf.c:1399:2: error: failed to evaluate #if condition, undefined function-like macro invocation: SDL_VERSION_ATLEAST( ... ) [preprocessorErrorDirective] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1445:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_MAX_SINT32 [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1493:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PIXELFORMAT_INDEX8 [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1520:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PIXELFORMAT_INDEX8 [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1584:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PIXELFORMAT_ARGB8888 [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1611:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PIXELFORMAT_ARGB8888 [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1757:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RW_SEEK_SET [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1823:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_OPEN_STREAM [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1842:9: style: Condition '!found' is always true [knownConditionTrueFalse] SDL2_ttf-2.24.0/SDL_ttf.c:1835:13: note: Assignment 'found=0', assigned value is 0 SDL2_ttf-2.24.0/SDL_ttf.c:1842:9: note: Condition '!found' is always true 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:1944:35: style: Condition 'TTF_initFontMetrics(font)<0' is always false [knownConditionTrueFalse] SDL2_ttf-2.24.0/SDL_ttf.c:1944:28: note: Calling function 'TTF_initFontMetrics' returns 0 SDL2_ttf-2.24.0/SDL_ttf.c:1944:35: note: Condition 'TTF_initFontMetrics(font)<0' is always false 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:2109:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_LOAD_DEFAULT [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:2142:31: style: Variable 'metrics' can be declared as pointer to const [constVariablePointer] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:2143:17: style: Condition 'metrics' is always true [knownConditionTrueFalse] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:2792:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:2836:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:2892:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:2906:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3316:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_KERNING_UNFITTED [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3468:59: style:inconclusive: Function 'TTF_MeasureText' argument 3 names different: declaration 'measure_width' definition 'width'. [funcArgNamesDifferent] SDL2_ttf-2.24.0/SDL_ttf.h:923:83: note: Function 'TTF_MeasureText' argument 3 names different: declaration 'measure_width' definition 'width'. SDL2_ttf-2.24.0/SDL_ttf.c:3468:59: note: Function 'TTF_MeasureText' argument 3 names different: declaration 'measure_width' definition 'width'. 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3473:59: style:inconclusive: Function 'TTF_MeasureUTF8' argument 3 names different: declaration 'measure_width' definition 'width'. [funcArgNamesDifferent] SDL2_ttf-2.24.0/SDL_ttf.h:947:83: note: Function 'TTF_MeasureUTF8' argument 3 names different: declaration 'measure_width' definition 'width'. SDL2_ttf-2.24.0/SDL_ttf.c:3473:59: note: Function 'TTF_MeasureUTF8' argument 3 names different: declaration 'measure_width' definition 'width'. 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3478:64: style:inconclusive: Function 'TTF_MeasureUNICODE' argument 3 names different: declaration 'measure_width' definition 'width'. [funcArgNamesDifferent] SDL2_ttf-2.24.0/SDL_ttf.h:976:88: note: Function 'TTF_MeasureUNICODE' argument 3 names different: declaration 'measure_width' definition 'width'. SDL2_ttf-2.24.0/SDL_ttf.c:3478:64: note: Function 'TTF_MeasureUNICODE' argument 3 names different: declaration 'measure_width' definition 'width'. 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3537:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_ALPHA_OPAQUE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3700:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_TRUE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3708:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_TRUE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:3754:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint8 [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4091:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_STYLE_FLAG_BOLD [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4120:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_STYLE_FLAG_BOLD [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4151:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_LOAD_TARGET_LIGHT [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4173:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_LOAD_TARGET_LIGHT [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4187:30: style: Parameter 'font' can be declared as pointer to const [constParameterPointer] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4202:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4248:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_KERNING_DEFAULT [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:4281:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_KERNING_DEFAULT [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:438:127: style: Parameter 'fg' can be declared as pointer to const [constParameterPointer] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:568:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint32 [valueFlowBailoutIncompleteVar] 2.18.0 SDL2_ttf-2.24.0/SDL_ttf.c:609:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Uint32 [valueFlowBailoutIncompleteVar] DONE