2024-04-24 04:22 ftp://ftp.de.debian.org/debian/pool/main/c/cpu-x/cpu-x_5.0.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=opengl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: 7dab204 (2024-04-23 22:20:29 +0200) count: 212 212 elapsed-time: 20.4 20.0 head-timing-info: old-timing-info: head results: CPU-X-5.0.3/src/bandwidth/BMP.c:426:22: style: Condition 'ch<='z'' is always true [knownConditionTrueFalse] CPU-X-5.0.3/src/bandwidth/BMP.c:424:10: note: Assuming that condition 'ch>'z'' is not redundant CPU-X-5.0.3/src/bandwidth/BMP.c:426:22: note: Condition 'ch<='z'' is always true CPU-X-5.0.3/src/bandwidth/BMP.c:489:22: style: Condition 'ch<='z'' is always true [knownConditionTrueFalse] CPU-X-5.0.3/src/bandwidth/BMP.c:487:10: note: Assuming that condition 'ch>'z'' is not redundant CPU-X-5.0.3/src/bandwidth/BMP.c:489:22: note: Condition 'ch<='z'' is always true CPU-X-5.0.3/src/bandwidth/BMP.c:562:22: style: Condition 'ch<='z'' is always true [knownConditionTrueFalse] CPU-X-5.0.3/src/bandwidth/BMP.c:560:10: note: Assuming that condition 'ch>'z'' is not redundant CPU-X-5.0.3/src/bandwidth/BMP.c:562:22: note: Condition 'ch<='z'' is always true CPU-X-5.0.3/src/bandwidth/BMP.c:625:22: style: Condition 'ch<='z'' is always true [knownConditionTrueFalse] CPU-X-5.0.3/src/bandwidth/BMP.c:623:10: note: Assuming that condition 'ch>'z'' is not redundant CPU-X-5.0.3/src/bandwidth/BMP.c:625:22: note: Condition 'ch<='z'' is always true CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:463:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:144:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:59:41: warning: Invalid log2() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'. [invalidFunctionArg] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:47:16: note: Assignment 'max_x=0', assigned value is 0 CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:48:16: note: Assuming condition is false CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:59:41: note: Invalid argument CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:70:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:72:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:77:12: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:78:12: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:79:12: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:80:12: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:263:67: style:inconclusive: Function 'BMPGraphing_plot_linear' argument 4 names different: declaration 'max_amt' definition 'max_y'. [funcArgNamesDifferent] CPU-X-5.0.3/src/bandwidth/BMPGraphing.h:92:74: note: Function 'BMPGraphing_plot_linear' argument 4 names different: declaration 'max_amt' definition 'max_y'. CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:263:67: note: Function 'BMPGraphing_plot_linear' argument 4 names different: declaration 'max_amt' definition 'max_y'. CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:68:20: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:392:20: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:59:17: error: Undefined behaviour: float (-inf) to integer conversion overflow. [floatConversionOverflow] CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:47:16: note: Assignment 'max_x=0', assigned value is 0 CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:48:16: note: Assuming condition is false CPU-X-5.0.3/src/bandwidth/BMPGraphing.c:59:17: note: float to integer conversion CPU-X-5.0.3/src/bandwidth/main.c:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/main.c:256:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/main.c:465:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/main.c:1649:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/main.c:1764:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/main.c:1935:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/main.c:2191:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/bandwidth/main.c:2182:25: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] CPU-X-5.0.3/src/bandwidth/main.c:2908:25: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] CPU-X-5.0.3/src/bandwidth/main.c:1641:25: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] CPU-X-5.0.3/src/bandwidth/main.c:2199:7: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] CPU-X-5.0.3/src/bandwidth/main.c:2096:22: note: 'network_mode' is assigned value 'false' here. CPU-X-5.0.3/src/bandwidth/main.c:2097:24: note: 'network_leader' is assigned value 'false' here. CPU-X-5.0.3/src/bandwidth/main.c:2198:6: note: outer condition: network_mode CPU-X-5.0.3/src/bandwidth/main.c:2199:7: note: identical inner condition: network_leader CPU-X-5.0.3/src/bandwidth/main.c:2996:44: style: Redundant condition: tests[bwd->selected_test].need_mask. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] CPU-X-5.0.3/src/bandwidth/main.c:612:6: style: The if condition is the same as the previous if condition [duplicateCondition] CPU-X-5.0.3/src/bandwidth/main.c:581:6: note: First condition CPU-X-5.0.3/src/bandwidth/main.c:612:6: note: Second condition CPU-X-5.0.3/src/bandwidth/main.c:810:6: style: The if condition is the same as the previous if condition [duplicateCondition] CPU-X-5.0.3/src/bandwidth/main.c:779:6: note: First condition CPU-X-5.0.3/src/bandwidth/main.c:810:6: note: Second condition CPU-X-5.0.3/src/bandwidth/main.c:2319:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/main.c:2320:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/main.c:2321:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/main.c:2323:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/bandwidth/main.c:780:7: style: Local variable 'tmp' shadows outer variable [shadowVariable] CPU-X-5.0.3/src/bandwidth/main.c:756:16: note: Shadowed declaration CPU-X-5.0.3/src/bandwidth/main.c:780:7: note: Shadow variable CPU-X-5.0.3/src/bandwidth/main.c:1715:7: style: Local variable 'amount' shadows outer variable [shadowVariable] CPU-X-5.0.3/src/bandwidth/main.c:1689:6: note: Shadowed declaration CPU-X-5.0.3/src/bandwidth/main.c:1715:7: note: Shadow variable CPU-X-5.0.3/src/bandwidth/main.c:243:22: style: Parameter 's' can be declared as pointer to const [constParameterPointer] CPU-X-5.0.3/src/bandwidth/main.c:253:19: style: Parameter 's' can be declared as pointer to const [constParameterPointer] CPU-X-5.0.3/src/bandwidth/main.c:273:24: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] CPU-X-5.0.3/src/bandwidth/main.c:433:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] CPU-X-5.0.3/src/bandwidth/main.c:1641:18: style: Variable 'host' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/bandwidth/main.c:1645:8: style: Variable 'host_ip' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/bandwidth/main.c:1902:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/bandwidth/main.c:1932:9: style: Variable 'hostname' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/bandwidth/main.c:2367:64: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] CPU-X-5.0.3/src/bandwidth/main.c:1951:30: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] CPU-X-5.0.3/src/bandwidth/main.c:2055:30: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] CPU-X-5.0.3/src/util.hpp:202:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.hpp:49:2: style: Struct 'Tab' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/data.hpp:60:2: style: Struct 'Frame' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/data.hpp:67:2: style: Struct 'MetaFrame' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/data.hpp:77:2: style: Struct 'Label' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/data.hpp:192:5: style: Struct 'Cache' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/data.hpp:270:4: style: Struct 'Stick' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/data.hpp:359:4: style: Struct 'Card' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/data.hpp:392:4: style: Struct 'PrimeNumbers' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/core.cpp:2090:5: style: Condition 'err' is always false [knownConditionTrueFalse] CPU-X-5.0.3/src/core.cpp:2075:12: note: Assignment 'err=0', assigned value is 0 CPU-X-5.0.3/src/core.cpp:2090:5: note: Condition 'err' is always false CPU-X-5.0.3/src/core.cpp:2205:5: style: Condition 'err' is always false [knownConditionTrueFalse] CPU-X-5.0.3/src/core.cpp:2187:12: note: Assignment 'err=0', assigned value is 0 CPU-X-5.0.3/src/core.cpp:2205:5: note: Condition 'err' is always false CPU-X-5.0.3/src/core.cpp:2225:5: style: Condition 'err' is always false [knownConditionTrueFalse] CPU-X-5.0.3/src/core.cpp:2214:12: note: Assignment 'err=0', assigned value is 0 CPU-X-5.0.3/src/core.cpp:2225:5: note: Condition 'err' is always false CPU-X-5.0.3/src/core.cpp:1868:19: style: The scope of the variable 'number' can be reduced. [variableScope] CPU-X-5.0.3/src/core.cpp:2047:46: style: Parameter 'data' can be declared as reference to const [constParameterReference] CPU-X-5.0.3/src/core.cpp:2235:8: style: Variable 'cpu_type' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/daemon_client.cpp:49:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCKET_NAME [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/daemon_client.cpp:88:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DAEMON_TMP_EXEC [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/daemon_client.cpp:197:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable all [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/daemon_client.cpp:217:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/daemon_client.cpp:220:31: style: C-style pointer casting [cstyleCast] CPU-X-5.0.3/src/daemon_server.cpp:218:0: error: #error "Unsupported operating system" [preprocessorErrorDirective] CPU-X-5.0.3/src/data.cpp:47:99: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:71:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:86:101: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:104:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:157:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:174:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:236:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:259:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:272:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:323:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:357:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:394:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:419:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:433:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:448:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:461:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:478:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:535:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:550:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:565:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:581:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:616:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:665:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable endl [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/data.cpp:34:6: warning: Member variable 'Tab::ext' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:54:8: warning:inconclusive: Member variable 'Frame::ext' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:58:8: warning: Member variable 'Frame::ext' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:93:8: warning: Member variable 'Label::ext' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:379:31: warning: Member variable 'Cache::size_i' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:379:31: warning: Member variable 'Cache::speed_i' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:569:23: warning: Member variable 'Memory::mem_used' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:569:23: warning: Member variable 'Memory::mem_buffers' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:569:23: warning: Member variable 'Memory::mem_cached' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:569:23: warning: Member variable 'Memory::mem_free' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:569:23: warning: Member variable 'Memory::mem_total' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:569:23: warning: Member variable 'Memory::swap_used' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:569:23: warning: Member variable 'Memory::swap_total' is not initialized in the constructor. [uninitMemberVar] CPU-X-5.0.3/src/data.cpp:34:22: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/data.cpp:58:26: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/data.cpp:78:34: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/data.cpp:683:53: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/data.cpp:169:12: style: Variable 'cpu_type' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/data.cpp:352:13: style: Variable 'cpu_type' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/data.cpp:374:13: style: Variable 'cache' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/data.cpp:476:13: style: Variable 'stick' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/data.cpp:614:13: style: Variable 'card' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/data.cpp:47:43: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream] CPU-X-5.0.3/src/data.cpp:71:38: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream] CPU-X-5.0.3/src/data.cpp:86:42: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream] CPU-X-5.0.3/src/data.cpp:104:22: performance: Passing the result of c_str() to a stream is slow and redundant. [stlcstrStream] CPU-X-5.0.3/src/dmidecode/dmidecode.c:3703:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:4039:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:4304:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:5569:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:5615:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:5663:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:5792:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:5918:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:5979:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:6036:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:6060:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:6258:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmidecode.c:6221:10: style: Condition 'ret==0' is always false [knownConditionTrueFalse] CPU-X-5.0.3/src/dmidecode/dmidecode.c:6218:8: note: Assignment 'ret=-1', assigned value is -1 CPU-X-5.0.3/src/dmidecode/dmidecode.c:6221:10: note: Condition 'ret==0' is always false CPU-X-5.0.3/src/dmidecode/dmidecode.c:428:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] CPU-X-5.0.3/src/dmidecode/dmidecode.c:430:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] CPU-X-5.0.3/src/dmidecode/dmidecode.c:3703:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] CPU-X-5.0.3/src/dmidecode/dmidecode.c:3703:4: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] CPU-X-5.0.3/src/dmidecode/dmidecode.c:4304:3: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/dmidecode/dmidecode.c:4326:5: portability: %d in format string (no. 1) requires 'int' but the argument type is 'u32 {aka unsigned int}'. [invalidPrintfArgType_sint] CPU-X-5.0.3/src/dmidecode/dmidecode.c:5584:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] CPU-X-5.0.3/src/dmidecode/dmidecode.c:286:40: style:inconclusive: Function 'dmi_print_memory_size' argument 1 names different: declaration 'addr' definition 'attr'. [funcArgNamesDifferent] CPU-X-5.0.3/src/dmidecode/dmidecode.h:49:40: note: Function 'dmi_print_memory_size' argument 1 names different: declaration 'addr' definition 'attr'. CPU-X-5.0.3/src/dmidecode/dmidecode.c:286:40: note: Function 'dmi_print_memory_size' argument 1 names different: declaration 'addr' definition 'attr'. CPU-X-5.0.3/src/dmidecode/dmidecode.c:5914:47: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] CPU-X-5.0.3/src/dmidecode/dmidecode.c:2455:6: style: Variable 'p' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/dmidecode/dmidecode.c:2481:6: style: Variable 'p' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/dmidecode/dmidecode.c:2499:6: style: Variable 'p' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/dmidecode/dmidecode.c:2516:6: style: Variable 'p' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/dmidecode/dmidecode.c:3696:6: style: Variable 'p' can be declared as pointer to const [constVariablePointer] CPU-X-5.0.3/src/dmidecode/dmidecode.c:4036:43: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] CPU-X-5.0.3/src/dmidecode/dmidecode.c:481:19: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] CPU-X-5.0.3/src/dmidecode/dmidecode.c:480:16: note: Assuming that condition 'i<=31' is not redundant CPU-X-5.0.3/src/dmidecode/dmidecode.c:481:19: note: Shift CPU-X-5.0.3/src/dmidecode/dmidecode.c:3467:7: style: Variable 'off' is assigned a value that is never used. [unreadVariable] CPU-X-5.0.3/src/dmidecode/dmidecode.c:3469:7: style: Variable 'off' is assigned a value that is never used. [unreadVariable] CPU-X-5.0.3/src/dmidecode/dmioem.c:54:33: style:inconclusive: Function 'dmi_set_vendor' argument 1 names different: declaration 's' definition 'v'. [funcArgNamesDifferent] CPU-X-5.0.3/src/dmidecode/dmioem.h:24:33: note: Function 'dmi_set_vendor' argument 1 names different: declaration 's' definition 'v'. CPU-X-5.0.3/src/dmidecode/dmioem.c:54:33: note: Function 'dmi_set_vendor' argument 1 names different: declaration 's' definition 'v'. CPU-X-5.0.3/src/dmidecode/dmiopt.c:75:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmiopt.c:118:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmiopt.c:187:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmiopt.c:200:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmiopt.c:225:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmiopt.c:254:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmiopt.c:291:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/dmiopt.c:265:47: style: Parameter 'argv' can be declared as const array [constParameter] CPU-X-5.0.3/src/dmidecode/dmiopt.c:269:16: style: Variable 'longopts' can be declared as const array [constVariable] CPU-X-5.0.3/src/dmidecode/util.c:60:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/util.c:108:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/util.c:190:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/dmidecode/util.c:98:37: style:inconclusive: Function 'read_file' argument 2 names different: declaration 'len' definition 'max_len'. [funcArgNamesDifferent] CPU-X-5.0.3/src/dmidecode/util.h:28:37: note: Function 'read_file' argument 2 names different: declaration 'len' definition 'max_len'. CPU-X-5.0.3/src/dmidecode/util.c:98:37: note: Function 'read_file' argument 2 names different: declaration 'len' definition 'max_len'. CPU-X-5.0.3/src/gui_gtk.cpp:53:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/gui_gtk.cpp:315:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STATE_FLAG_NORMAL [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/gui_gtk.cpp:333:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STYLE_PROVIDER_PRIORITY_APPLICATION [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/gui_gtk.cpp:413:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXUSHORT [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/gui_gtk.cpp:495:117: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUTTONS_CLOSE [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/gui_gtk.cpp:1260:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APPLICATION_NON_UNIQUE [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/gui_gtk.cpp:106:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/gui_gtk.hpp:106:7: style:inconclusive: Technically the member function 'GtkData::set_colors' can be const. [functionConst] CPU-X-5.0.3/src/gui_gtk.cpp:324:15: note: Technically the member function 'GtkData::set_colors' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:106:7: note: Technically the member function 'GtkData::set_colors' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:142:7: style:inconclusive: Technically the member function 'GtkData::fill_box_active_test' can be const. [functionConst] CPU-X-5.0.3/src/gui_gtk.cpp:765:15: note: Technically the member function 'GtkData::fill_box_active_test' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:142:7: note: Technically the member function 'GtkData::fill_box_active_test' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:150:7: style:inconclusive: Technically the member function 'GtkData::gtab_motherboard' can be const. [functionConst] CPU-X-5.0.3/src/gui_gtk.cpp:794:15: note: Technically the member function 'GtkData::gtab_motherboard' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:150:7: note: Technically the member function 'GtkData::gtab_motherboard' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:178:7: style:inconclusive: Technically the member function 'GtkData::gtab_system' can be const. [functionConst] CPU-X-5.0.3/src/gui_gtk.cpp:895:15: note: Technically the member function 'GtkData::gtab_system' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:178:7: note: Technically the member function 'GtkData::gtab_system' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:184:7: style:inconclusive: Technically the member function 'GtkData::draw_bar_memory' can be const. [functionConst] CPU-X-5.0.3/src/gui_gtk.cpp:998:15: note: Technically the member function 'GtkData::draw_bar_memory' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:184:7: note: Technically the member function 'GtkData::draw_bar_memory' can be const. CPU-X-5.0.3/src/gui_gtk.hpp:120:3: style: Struct 'ExtTabCpu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:137:3: style: Struct 'ExtTabCaches' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:148:3: style: Struct 'ExtTabMotherboard' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:158:3: style: Struct 'ExtTabMemory' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:175:3: style: Struct 'ExtTabSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:192:3: style: Struct 'ExtTabGraphics' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:203:3: style: Struct 'ExtTabBench' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:225:3: style: Struct 'ExtTabAbout' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] CPU-X-5.0.3/src/gui_gtk.hpp:67:65: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/gui_gtk.cpp:87:70: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/gui_gtk.cpp:93:74: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/gui_gtk.cpp:100:77: performance: Function parameter 'name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/gui_gtk.cpp:727:8: style: Variable 'cpu_type' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/gui_gtk.cpp:740:12: style: Variable 'cache' can be declared as reference to const [constVariableReference] CPU-X-5.0.3/src/logger.cpp:52:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/logger.cpp:42:70: performance: Function parameter 'message' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/main.cpp:110:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/main.cpp:156:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAS_GTK [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/main.cpp:241:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAS_GTK [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/main.cpp:386:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/main.cpp:493:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HAS_GTK [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/main.cpp:336:11: warning: Return value of function std::freopen() is not used. [ignoredReturnValue] CPU-X-5.0.3/src/main.cpp:121:30: performance: Function parameter 'binary_name' should be passed by const reference. [passedByValue] CPU-X-5.0.3/src/options.cpp:113:41: warning: Function 'set_selected_type' argument order different: declaration 'num_cpu_types, selected_type' definition 'selected_type, num_cpu_types' [funcArgOrderDifferent] CPU-X-5.0.3/src/options.hpp:86:40: note: Function 'set_selected_type' argument order different: declaration 'num_cpu_types, selected_type' definition 'selected_type, num_cpu_types' CPU-X-5.0.3/src/options.cpp:113:41: note: Function 'set_selected_type' argument order different: declaration 'num_cpu_types, selected_type' definition 'selected_type, num_cpu_types' CPU-X-5.0.3/src/tui_ncurses.cpp:75:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_LEFT [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/tui_ncurses.cpp:100:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/tui_ncurses.cpp:209:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACS_ULCORNER [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/tui_ncurses.cpp:230:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/tui_ncurses.cpp:327:97: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/tui_ncurses.cpp:642:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMINFODIR [valueFlowBailoutIncompleteVar] CPU-X-5.0.3/src/tui_ncurses.cpp:643:7: warning: Return value of function std::freopen() is not used. [ignoredReturnValue] CPU-X-5.0.3/src/tui_ncurses.cpp:402:49: style: Parameter 'data' can be declared as reference to const. However it seems that 'ntab_motherboard' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] CPU-X-5.0.3/src/tui_ncurses.cpp:596:2: note: You might need to cast the function pointer here CPU-X-5.0.3/src/tui_ncurses.cpp:402:49: note: Parameter 'data' can be declared as reference to const CPU-X-5.0.3/src/tui_ncurses.cpp:489:44: style: Parameter 'data' can be declared as reference to const. However it seems that 'ntab_system' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] CPU-X-5.0.3/src/tui_ncurses.cpp:598:2: note: You might need to cast the function pointer here CPU-X-5.0.3/src/tui_ncurses.cpp:489:44: note: Parameter 'data' can be declared as reference to const CPU-X-5.0.3/src/tui_ncurses.cpp:549:43: style: Parameter 'data' can be declared as reference to const. However it seems that 'ntab_bench' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] CPU-X-5.0.3/src/tui_ncurses.cpp:600:2: note: You might need to cast the function pointer here CPU-X-5.0.3/src/tui_ncurses.cpp:549:43: note: Parameter 'data' can be declared as reference to const CPU-X-5.0.3/src/tui_ncurses.cpp:568:43: style: Parameter 'data' can be declared as reference to const [constParameterReference] CPU-X-5.0.3/src/tui_ncurses.cpp:381:11: style: Variable 'line' is assigned a value that is never used. [unreadVariable] CPU-X-5.0.3/src/util.cpp:367:0: error: #error "Unsupported operating system" [preprocessorErrorDirective] diff: DONE