2025-07-01 03:03 ftp://ftp.de.debian.org/debian/pool/main/t/tdfsb/tdfsb_0.0.10.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=opengl --library=sdl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: dfa16af (2025-06-30 19:43:56 +0200) count: 59 59 elapsed-time: 10.1 10.3 head-timing-info: old-timing-info: head results: tdfsb-0.0.10/tdfsb.c:344:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_TEXTURE_2D [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:374:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:445:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_SWSURFACE [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:503:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COMPILE [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1113:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLU_ERROR [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1475:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1802:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_COLOR_BUFFER_BIT [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1846:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMPEG_ERROR [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2342:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_PRESSED [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2445:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDFSB_FUNC_MOTION [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2674:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDLK_UP [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2745:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_OPENGL [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:2952:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SDL_INIT_VIDEO [valueFlowBailoutIncompleteVar] tdfsb-0.0.10/tdfsb.c:1144:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tdfsb-0.0.10/tdfsb.c:1154:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] tdfsb-0.0.10/tdfsb.c:1457:49: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1457:110: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1463:73: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1464:67: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1465:55: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1481:79: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1492:55: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1500:57: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1500:118: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1506:81: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1507:75: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1508:67: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1514:61: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1520:49: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1521:55: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1539:24: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1549:17: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1462:33: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1505:41: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1611:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1611:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1619:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tdfsb-0.0.10/tdfsb.c:1609:10: style: Variable 'help' is reassigned a value before the old one has been used. [redundantAssignment] tdfsb-0.0.10/tdfsb.c:1608:6: note: help is assigned tdfsb-0.0.10/tdfsb.c:1609:10: note: help is overwritten tdfsb-0.0.10/tdfsb.c:434:13: style: Checking if unsigned expression 'www' is less than zero. [unsignedLessThanZero] tdfsb-0.0.10/tdfsb.c:434:23: style: Checking if unsigned expression 'hhh' is less than zero. [unsignedLessThanZero] tdfsb-0.0.10/tdfsb.c:1299:11: style: Checking if unsigned expression 'count' is less than zero. [unsignedLessThanZero] tdfsb-0.0.10/tdfsb.c:2479:24: warning: Either the condition 'TDFSB_FPS_CONFIG' is redundant or there is division by zero at line 2479. [zerodivcond] tdfsb-0.0.10/tdfsb.c:2481:8: note: Assuming that condition 'TDFSB_FPS_CONFIG' is not redundant tdfsb-0.0.10/tdfsb.c:2479:24: note: Division by zero tdfsb-0.0.10/tdfsb.c:354:16: style: Local variable 'info' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:53:22: note: Shadowed declaration tdfsb-0.0.10/tdfsb.c:354:16: note: Shadow variable tdfsb-0.0.10/tdfsb.c:1223:25: style: Local variable 'temp' shadows outer variable [shadowVariable] tdfsb-0.0.10/tdfsb.c:155:67: note: Shadowed declaration tdfsb-0.0.10/tdfsb.c:1223:25: note: Shadow variable tdfsb-0.0.10/tdfsb.c:1221:20: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] tdfsb-0.0.10/tdfsb.c:1271:17: style: Variable 'ls_ent' can be declared as pointer to const [constVariablePointer] tdfsb-0.0.10/tdfsb.c:1360:30: style: Variable 'temptype' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1360:37: style: Variable 'uni0' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1360:44: style: Variable 'uni1' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1360:51: style: Variable 'uni2' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1536:65: style: Variable 'momx' is assigned a value that is never used. [unreadVariable] tdfsb-0.0.10/tdfsb.c:1840:16: style: Unused variable: errCode [unusedVariable] tdfsb-0.0.10/tdfsb.c:2415:9: style: Unused variable: i [unusedVariable] diff: 2.17.0 tdfsb-0.0.10/tdfsb.c:1280:9: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 tdfsb-0.0.10/tdfsb.c:1296:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head tdfsb-0.0.10/tdfsb.c:1457:110: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] head tdfsb-0.0.10/tdfsb.c:1500:118: style: Expression 'log(1 + x)' can be replaced by 'log1p(x)' to avoid loss of precision. [unpreciseMathCall] DONE