2024-04-23 09:03 ftp://ftp.de.debian.org/debian/pool/main/x/xsensors/xsensors_0.80.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=gtk --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.14.0 head-info: 9b87f67 (2024-04-23 10:17:07 +0200) count: 8 8 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: xsensors-0.80/src/chips.c:33:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xsensors-0.80/src/gui.c:444:0: error: failed to expand 'g_signal_connect', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] xsensors-0.80/src/main.c:78:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] xsensors-0.80/src/main.c:138:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pw_dir [valueFlowBailoutIncompleteVar] xsensors-0.80/src/prefs.c:503:0: error: failed to expand 'g_signal_connect', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] xsensors-0.80/src/main.c:138:20: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] xsensors-0.80/src/main.c:148:33: style: Condition 'help_msg()==SUCCESS' is always true [knownConditionTrueFalse] xsensors-0.80/src/main.c:148:30: note: Calling function 'help_msg' returns 0 xsensors-0.80/src/main.c:148:33: note: Condition 'help_msg()==SUCCESS' is always true xsensors-0.80/src/main.c:40:10: warning: Either the condition '(temp_str=strdup(optarg))==NULL' is redundant or there is possible null pointer dereference: temp_str. [nullPointerRedundantCheck] xsensors-0.80/src/main.c:163:55: note: Assuming that condition '(temp_str=strdup(optarg))==NULL' is not redundant xsensors-0.80/src/main.c:166:38: note: Calling function 'get_updatetime', 1st argument 'temp_str' value is 0 xsensors-0.80/src/main.c:40:10: note: Null pointer dereference diff: DONE