2025-07-10 23:36 ftp://ftp.de.debian.org/debian/pool/main/p/ptouch-driver/ptouch-driver_1.7.1.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 -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: 8f3d36a (2025-07-08 11:07:56 +0200) count: 44 44 elapsed-time: 1.6 1.6 head-timing-info: old-timing-info: head results: printer-driver-ptouch-1.7.1/ptexplain.c:210:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/ptexplain.c:228:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/ptexplain.c:276:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/ptexplain.c:547:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/ptexplain.c:780:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/ptexplain.c:817:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAVE_LIBPNG [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/ptexplain.c:636:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] printer-driver-ptouch-1.7.1/ptexplain.c:76:17: style: Variable 'color' can be declared as pointer to const [constVariablePointer] printer-driver-ptouch-1.7.1/ptexplain.c:123:19: style: Variable 'color' can be declared as pointer to const [constVariablePointer] printer-driver-ptouch-1.7.1/ptexplain.c:456:41: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] printer-driver-ptouch-1.7.1/ptexplain.c:674:6: style: Variable 'd' is assigned a value that is never used. [unreadVariable] printer-driver-ptouch-1.7.1/ptexplain.c:685:6: style: Variable 'd' is assigned a value that is never used. [unreadVariable] printer-driver-ptouch-1.7.1/ptexplain.c:690:6: style: Variable 'd' is assigned a value that is never used. [unreadVariable] printer-driver-ptouch-1.7.1/rastertoptch.c:464:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:641:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:664:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:735:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:823:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:1027:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:1114:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:1484:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CUPS_RASTER_READ [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:1572:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:1606:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] printer-driver-ptouch-1.7.1/rastertoptch.c:534:11: style: The if condition is the same as the previous if condition [duplicateCondition] printer-driver-ptouch-1.7.1/rastertoptch.c:528:11: note: First condition printer-driver-ptouch-1.7.1/rastertoptch.c:534:11: note: Second condition printer-driver-ptouch-1.7.1/rastertoptch.c:823:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] printer-driver-ptouch-1.7.1/rastertoptch.c:1114:9: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] printer-driver-ptouch-1.7.1/rastertoptch.c:1114:9: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] printer-driver-ptouch-1.7.1/rastertoptch.c:1557:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] printer-driver-ptouch-1.7.1/rastertoptch.c:559:27: warning: Either the condition 'value' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] printer-driver-ptouch-1.7.1/rastertoptch.c:549:6: note: Assuming that condition 'value' is not redundant printer-driver-ptouch-1.7.1/rastertoptch.c:559:27: note: Null pointer dereference printer-driver-ptouch-1.7.1/rastertoptch.c:592:27: warning: Either the condition 'value' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] printer-driver-ptouch-1.7.1/rastertoptch.c:582:6: note: Assuming that condition 'value' is not redundant printer-driver-ptouch-1.7.1/rastertoptch.c:592:27: note: Null pointer dereference printer-driver-ptouch-1.7.1/rastertoptch.c:493:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] printer-driver-ptouch-1.7.1/rastertoptch.c:509:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] printer-driver-ptouch-1.7.1/rastertoptch.c:525:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] printer-driver-ptouch-1.7.1/rastertoptch.c:543:7: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] printer-driver-ptouch-1.7.1/rastertoptch.c:332:8: style: Local variable 'buffer' shadows outer variable [shadowVariable] printer-driver-ptouch-1.7.1/rastertoptch.c:308:16: note: Shadowed declaration printer-driver-ptouch-1.7.1/rastertoptch.c:332:8: note: Shadow variable printer-driver-ptouch-1.7.1/rastertoptch.c:689:31: style: Parameter 'job_options' can be declared as pointer to const [constParameterPointer] printer-driver-ptouch-1.7.1/rastertoptch.c:720:43: style: Parameter 'job_options' can be declared as pointer to const [constParameterPointer] printer-driver-ptouch-1.7.1/rastertoptch.c:721:49: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] printer-driver-ptouch-1.7.1/rastertoptch.c:800:32: style: Parameter 'job_options' can be declared as pointer to const [constParameterPointer] printer-driver-ptouch-1.7.1/rastertoptch.c:951:36: style: Parameter 'in_buffer' can be declared as pointer to const [constParameterPointer] printer-driver-ptouch-1.7.1/rastertoptch.c:1341:9: style: Variable 'pt2px' can be declared as const array [constVariable] printer-driver-ptouch-1.7.1/rastertoptch.c:1492:11: style: Variable 'pt2px' can be declared as const array [constVariable] printer-driver-ptouch-1.7.1/rastertoptch.c:1501:12: style: Variable 'bbox' can be declared as pointer to const [constVariablePointer] printer-driver-ptouch-1.7.1/rastertoptch.c:1589:26: style: Variable 'long_options' can be declared as const array [constVariable] diff: DONE