2025-05-09 02:19 ftp://ftp.de.debian.org/debian/pool/main/x/xsensors/xsensors_0.80.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 10 8 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: 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/gui.c:444:1: error: failed to expand 'g_signal_connect', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] xsensors-0.80/src/chips.c:33:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 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/prefs.c:503:1: 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: head xsensors-0.80/src/gui.c:444:1: error: failed to expand 'g_signal_connect', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] head xsensors-0.80/src/prefs.c:503:1: error: failed to expand 'g_signal_connect', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] DONE