2026-05-04 09:33 ftp://ftp.de.debian.org/debian/pool/main/p/pps-tools/pps-tools_1.0.3.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-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 43 43 elapsed-time: 0.2 0.1 head-timing-info: old-timing-info: head results: redlab-i-pps-tools-c50cb71/timepps.h:89:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/timepps.h:121:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_GETPARAMS [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/timepps.h:145:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_SETPARAMS [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/timepps.h:151:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_GETCAP [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/timepps.h:162:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_TSFMT_TSPEC [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/timepps.h:208:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:47:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:78:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_KC_HARDPPS [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:83:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_KC_HARDPPS [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:91:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:111:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:128:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:149:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:230:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsctl.c:235:23: style: Condition 'bind(handle,0)<0' is always true [knownConditionTrueFalse] redlab-i-pps-tools-c50cb71/ppsctl.c:78:24: note: Calling function 'time_pps_kcbind' returns -1 redlab-i-pps-tools-c50cb71/ppsctl.c:235:11: note: Calling function 'bind' returns -1 redlab-i-pps-tools-c50cb71/ppsctl.c:235:23: note: Condition 'bind(handle,0)<0' is always true redlab-i-pps-tools-c50cb71/ppsctl.c:241:30: style: Condition 'bind(handle,opt_edge)<0' is always true [knownConditionTrueFalse] redlab-i-pps-tools-c50cb71/ppsctl.c:78:24: note: Calling function 'time_pps_kcbind' returns -1 redlab-i-pps-tools-c50cb71/ppsctl.c:241:11: note: Calling function 'bind' returns -1 redlab-i-pps-tools-c50cb71/ppsctl.c:241:30: note: Condition 'bind(handle,opt_edge)<0' is always true redlab-i-pps-tools-c50cb71/ppsctl.c:40:30: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppsctl.c:126:32: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppsctl.c:147:24: style: Variable 'long_options' can be declared as const array [constVariable] redlab-i-pps-tools-c50cb71/ppsldisc.c:31:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsldisc.c:39:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_PPS [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppsldisc.c:59:2: error: Resource leak: fd [resourceLeak] redlab-i-pps-tools-c50cb71/ppsldisc.c:29:18: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppstest.c:36:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppstest.c:94:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_CANWAIT [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppstest.c:128:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppstest.c:157:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppstest.c:112:2: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] redlab-i-pps-tools-c50cb71/ppstest.c:112:2: warning: %ld in format string (no. 7) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] redlab-i-pps-tools-c50cb71/ppstest.c:28:23: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppstest.c:83:39: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppstest.c:83:52: style: Parameter 'avail_mode' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppstest.c:126:18: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppswatch.c:53:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppswatch.c:110:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PPS_CANWAIT [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppswatch.c:166:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppswatch.c:178:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppswatch.c:279:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] redlab-i-pps-tools-c50cb71/ppswatch.c:151:3: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] redlab-i-pps-tools-c50cb71/ppswatch.c:204:12: style: Local variable 'c' shadows outer variable [shadowVariable] redlab-i-pps-tools-c50cb71/ppswatch.c:173:7: note: Shadowed declaration redlab-i-pps-tools-c50cb71/ppswatch.c:204:12: note: Shadow variable redlab-i-pps-tools-c50cb71/ppswatch.c:45:23: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppswatch.c:164:25: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] redlab-i-pps-tools-c50cb71/ppswatch.c:176:24: style: Variable 'long_options' can be declared as const array [constVariable] diff: DONE