2026-07-26 21:31 ftp://ftp.de.debian.org/debian/pool/main/c/cpufetch/cpufetch_1.07.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 -j16 platform: Linux-7.0.0-28-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.21.0 head-info: 6640862 (2026-07-26 07:32:28 -0400) count: 320 320 elapsed-time: 4.3 1.8 head-timing-info: old-timing-info: head results: cpufetch-1.07/src/common/main.c:106:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/arm/udev.c:23:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/arm/udev.c:39:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:102:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/pci.c:29:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/soc.c:57:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOC_MODEL_UNKNOWN [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/sysctl.c:15:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:114:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/pci.c:97:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/soc.c:71:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOC_MODEL_UNKNOWN [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:138:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/soc.c:84:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOC_MODEL_UNKNOWN [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:184:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:195:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:206:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:245:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARCH_STR [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/main.c:9:23: style: Parameter 'argv' can be declared as const array [constParameter] cpufetch-1.07/src/common/global.c:238:1: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/common/args.c:260:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/global.c:75:37: style: Parameter 'stream' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/pci.c:86:9: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/soc.c:37:46: style: Parameter 'soc' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/soc.c:41:46: style: Parameter 'soc' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/soc.c:56:43: style: Parameter 'soc' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/soc.c:62:49: style: Parameter 'soc_name' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/soc.c:83:53: style: Parameter 'soc_name' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/soc.c:105:50: style: Parameter 'raw_name' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/soc.c:105:66: style: Parameter 'expected_name' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/udev.c:17:43: style: Parameter 'field_str' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/udev.c:124:9: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/arm/udev.c:125:11: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/ppc/ppc.c:66:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/ppc/udev.c:16:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/ppc/udev.c:73:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/cpu.c:29:39: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/cpu.c:33:36: style: Parameter 'freq' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/cpu.c:133:33: style: Parameter 'cach' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/cpu.c:137:33: style: Parameter 'cach' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/cpu.c:146:32: style: Parameter 'cach' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/cpu.c:152:38: style: Parameter 'freq' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:18:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/udev.c:51:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/udev.c:90:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/udev.c:122:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/udev.c:139:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/udev.c:246:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/udev.c:359:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/x86/cpuid_asm.c:3:22: style: Parameter 'eax' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid_asm.c:3:37: style: Parameter 'ebx' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid_asm.c:3:52: style: Parameter 'ecx' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid_asm.c:3:67: style: Parameter 'edx' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/riscv/udev.c:19:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/riscv/udev.c:56:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/riscv/udev.c:85:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/riscv/soc.c:17:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/riscv/soc.c:23:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/riscv/soc.c:30:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/riscv/soc.c:36:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/riscv/soc.c:42:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/midr.c:201:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/arm/midr.c:594:31: note: Assuming allocation function fails cpufetch-1.07/src/arm/midr.c:594:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/arm/midr.c:595:17: note: Calling function 'init_cpu_info', 1st argument 'cpu' value is 0 cpufetch-1.07/src/arm/midr.c:201:3: note: Null pointer dereference cpufetch-1.07/src/ppc/udev.c:11:64: style: Parameter 'SYS_PATH' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/ppc/udev.c:69:11: style: Variable 'dot' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/riscv/uarch.c:41:64: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/midr.c:82:54: style: Parameter 'midr_array' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/midr.c:82:75: style: Parameter 'freq_array' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/midr.c:606:62: style: Parameter 'topo' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/midr.c:615:20: style: Variable 'feat' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/arm/midr.c:657:34: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/riscv/udev.c:121:43: style: Condition 'ci->mvendorid==0' is always true [knownConditionTrueFalse] cpufetch-1.07/src/riscv/udev.c:121:21: note: Assuming that condition 'ci->mvendorid==0' is not redundant cpufetch-1.07/src/riscv/udev.c:121:43: note: Condition 'ci->mvendorid==0' is always true cpufetch-1.07/src/riscv/udev.c:121:65: style: Condition 'ci->mvendorid==0' is always true [knownConditionTrueFalse] cpufetch-1.07/src/riscv/udev.c:121:21: note: Assuming that condition 'ci->mvendorid==0' is not redundant cpufetch-1.07/src/riscv/udev.c:121:65: note: Condition 'ci->mvendorid==0' is always true cpufetch-1.07/src/common/printer.c:1097:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/x86/freq/freq_avx.c:47:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/riscv/udev.c:121:26: style: Same expression on both sides of '&&'. [duplicateExpression] cpufetch-1.07/src/riscv/udev.c:121:48: style: Same expression on both sides of '&&'. [duplicateExpression] cpufetch-1.07/src/riscv/udev.c:33:9: style: Variable 'tmp1' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/riscv/udev.c:67:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/riscv/udev.c:81:48: style: Parameter 'field_str' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/freq/freq_avx512.c:47:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/x86/freq/freq_nov.c:36:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/ppc/ppc.c:146:45: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/ppc/ppc.c:166:68: style: Parameter 'topo' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/ppc/ppc.c:177:20: style: Variable 'feat' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/ppc/ppc.c:243:39: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/ppc/ppc.c:252:41: style: Parameter 'topo' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/ppc/ppc.c:274:34: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/freq/freq.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/x86/freq/freq.c:139:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/x86/apic.c:409:8: style: Condition '!fill_topo_masks_apic(topo)' is always false [knownConditionTrueFalse] cpufetch-1.07/src/x86/apic.c:409:29: note: Calling function 'fill_topo_masks_apic' returns 1 cpufetch-1.07/src/x86/apic.c:409:8: note: Condition '!fill_topo_masks_apic(topo)' is always false cpufetch-1.07/src/x86/apic.c:447:34: style: Assigned value 'build_topo_from_apic(apic_pkg,apic_smt,cache_id_apic,topo)' is always true [knownConditionTrueFalse] cpufetch-1.07/src/x86/apic.c:447:34: note: Calling function 'build_topo_from_apic' returns 1 cpufetch-1.07/src/x86/apic.c:447:34: note: Assigned value 'build_topo_from_apic(apic_pkg,apic_smt,cache_id_apic,topo)' is always true cpufetch-1.07/src/x86/apic.c:222:12: style: Local variable 'max' shadows outer function [shadowFunction] cpufetch-1.07/src/common/global.h:17:5: note: Shadowed function cpufetch-1.07/src/x86/apic.c:222:12: note: Shadow local variable cpufetch-1.07/src/x86/apic.c:221:70: style: Parameter 'topo' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/apic.c:235:37: style: Parameter 'apic_pkg' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/apic.c:235:57: style: Parameter 'apic_smt' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/apic.c:297:32: style: Parameter 'apic_ids' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/apic.c:468:46: style: Parameter 'topo' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/apic.c:167:16: style: Variable 'eax' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/apic.c:169:16: style: Variable 'ecx' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/apic.c:240:23: style: Variable 'num_caches' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/apic.c:280:16: style: Variable 'eax' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/apic.c:282:16: style: Variable 'ecx' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/freq/freq.c:152:5: error: Memory leak: compute_th [memleak] cpufetch-1.07/src/x86/freq/freq.c:116:3: warning: If memory allocation fails, then there is a possible null pointer dereference: freq_struct [nullPointerOutOfMemory] cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assuming allocation function fails cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assignment 'freq_struct=malloc(sizeof(struct freq_thread))', assigned value is 0 cpufetch-1.07/src/x86/freq/freq.c:116:3: note: Null pointer dereference cpufetch-1.07/src/x86/freq/freq.c:117:3: warning: If memory allocation fails, then there is a possible null pointer dereference: freq_struct [nullPointerOutOfMemory] cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assuming allocation function fails cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assignment 'freq_struct=malloc(sizeof(struct freq_thread))', assigned value is 0 cpufetch-1.07/src/x86/freq/freq.c:117:3: note: Null pointer dereference cpufetch-1.07/src/x86/freq/freq.c:118:3: warning: If memory allocation fails, then there is a possible null pointer dereference: freq_struct [nullPointerOutOfMemory] cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assuming allocation function fails cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assignment 'freq_struct=malloc(sizeof(struct freq_thread))', assigned value is 0 cpufetch-1.07/src/x86/freq/freq.c:118:3: note: Null pointer dereference cpufetch-1.07/src/x86/freq/freq.c:119:3: warning: If memory allocation fails, then there is a possible null pointer dereference: freq_struct [nullPointerOutOfMemory] cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assuming allocation function fails cpufetch-1.07/src/x86/freq/freq.c:115:43: note: Assignment 'freq_struct=malloc(sizeof(struct freq_thread))', assigned value is 0 cpufetch-1.07/src/x86/freq/freq.c:119:3: note: Null pointer dereference cpufetch-1.07/src/x86/freq/freq.c:32:40: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid.c:726:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/common/printer.c:1111:20: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/common/printer.c:1110:75: style:inconclusive: Function 'print_cpufetch' argument 4 names different: declaration 'fcpuname' definition 'show_full_cpu_name'. [funcArgNamesDifferent] cpufetch-1.07/src/common/printer.h:33:75: note: Function 'print_cpufetch' argument 4 names different: declaration 'fcpuname' definition 'show_full_cpu_name'. cpufetch-1.07/src/common/printer.c:1110:75: note: Function 'print_cpufetch' argument 4 names different: declaration 'fcpuname' definition 'show_full_cpu_name'. cpufetch-1.07/src/common/printer.c:430:12: style: Local variable 'max' shadows outer function [shadowFunction] cpufetch-1.07/src/common/global.h:17:5: note: Shadowed function cpufetch-1.07/src/common/printer.c:430:12: note: Shadow local variable cpufetch-1.07/src/common/printer.c:445:12: style: Local variable 'max' shadows outer function [shadowFunction] cpufetch-1.07/src/common/global.h:17:5: note: Shadowed function cpufetch-1.07/src/common/printer.c:445:12: note: Shadow local variable cpufetch-1.07/src/common/printer.c:1110:75: style: Argument 'show_full_cpu_name' shadows outer function [shadowFunction] cpufetch-1.07/src/common/args.h:48:6: note: Shadowed function cpufetch-1.07/src/common/printer.c:1110:75: note: Shadow argument cpufetch-1.07/src/common/printer.c:172:59: style: Parameter 'art' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/printer.c:208:33: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/printer.c:304:119: style: Parameter 'term' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/printer.c:318:9: style: Variable 'no_color' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/printer.c:444:45: style: Parameter 'art' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/printer.c:1110:37: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/printer.c:1111:20: style: Variable 'term' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/printer.c:49:7: style: struct member 'AttributeField::id' is never used. [unusedStructMember] cpufetch-1.07/src/common/udev.c:157:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cpufetch-1.07/src/common/udev.c:163:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cpufetch-1.07/src/common/udev.c:169:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cpufetch-1.07/src/common/udev.c:175:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cpufetch-1.07/src/common/udev.c:181:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cpufetch-1.07/src/common/udev.c:187:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cpufetch-1.07/src/common/printer.c:431:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/common/printer.c:446:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/common/printer.c:1111:25: style: Variable 'term' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/common/udev.c:372:53: style:inconclusive: Function 'get_devtree_compatible_struct' argument 1 names different: declaration 'num_vendors' definition 'num_vendors_ptr'. [funcArgNamesDifferent] cpufetch-1.07/src/common/udev.h:52:53: note: Function 'get_devtree_compatible_struct' argument 1 names different: declaration 'num_vendors' definition 'num_vendors_ptr'. cpufetch-1.07/src/common/udev.c:372:53: note: Function 'get_devtree_compatible_struct' argument 1 names different: declaration 'num_vendors' definition 'num_vendors_ptr'. cpufetch-1.07/src/common/udev.c:23:9: style: Variable 'tmp1' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/udev.c:32:9: style: Variable 'tmp2' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/udev.c:50:23: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:135:36: style: Parameter 'CPUINFO_FIELD' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:146:9: style: Variable 'tmp2' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/udev.c:197:27: style: Parameter 'map1' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:197:43: style: Parameter 'map2' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:293:45: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:295:9: style: Variable 'cache_path' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/udev.c:320:51: style: Parameter 'topo' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:341:34: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/udev.c:348:9: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/udev.c:403:11: style: Variable 'end_ptr' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/udev.c:349:11: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/uarch.c:318:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:321:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:369:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:370:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:371:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:384:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:407:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:414:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:415:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:416:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:417:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:418:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:419:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:420:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:421:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:422:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/x86/uarch.c:140:43: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/uarch.c:538:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/x86/uarch.c:602:40: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/uarch.c:641:50: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/args.c:192:9: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'signed int'. [invalidScanfArgType_int] cpufetch-1.07/src/common/args.c:192:9: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'signed int'. [invalidScanfArgType_int] cpufetch-1.07/src/common/args.c:192:9: warning: %d in format string (no. 3) requires 'int *' but the argument type is 'signed int'. [invalidScanfArgType_int] cpufetch-1.07/src/common/args.c:144:25: style: Parameter 'style' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/common/args.c:172:9: style: Variable 'color_to_copy' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/common/args.c:257:33: style: Parameter 'argv' can be declared as const array [constParameter] cpufetch-1.07/src/common/args.c:301:9: style: Variable 'short_options' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/arm/soc.c:678:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/arm/soc.c:847:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cpufetch-1.07/src/arm/soc.c:159:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/soc.c:187:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/soc.c:206:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/soc.c:308:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/soc.c:514:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/soc.c:667:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/soc.c:1003:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] cpufetch-1.07/src/arm/soc.c:950:10: warning: If memory allocation fails, then there is a possible null pointer dereference: dt_without_null [nullPointerOutOfMemory] cpufetch-1.07/src/arm/soc.c:949:42: note: Assuming allocation function fails cpufetch-1.07/src/arm/soc.c:949:27: note: Assignment 'dt_without_null=(char*)malloc(sizeof(char)*filelen)', assigned value is 0 cpufetch-1.07/src/arm/soc.c:950:10: note: Null pointer dereference cpufetch-1.07/src/arm/soc.c:953:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dt_without_null [nullPointerOutOfMemory] cpufetch-1.07/src/arm/soc.c:949:42: note: Assuming allocation function fails cpufetch-1.07/src/arm/soc.c:949:27: note: Assignment 'dt_without_null=(char*)malloc(sizeof(char)*filelen)', assigned value is 0 cpufetch-1.07/src/arm/soc.c:953:9: note: Null pointer dereference cpufetch-1.07/src/arm/uarch.c:176:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:177:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:178:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:179:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:180:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:181:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:182:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:183:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:184:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:185:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:186:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:187:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:188:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:189:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:190:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:191:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:192:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:193:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:194:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:195:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:196:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:197:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:198:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:199:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:200:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:201:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:202:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:203:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:204:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:205:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:206:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:207:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:208:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:209:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:210:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:211:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:212:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:213:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:214:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:215:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:216:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:217:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:218:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:219:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:220:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:221:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:223:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:224:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:225:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:227:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:228:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:229:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:230:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:231:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:233:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:235:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:236:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:237:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:239:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:240:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:241:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:243:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:245:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:246:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:256:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:257:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:258:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:259:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:260:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:261:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:262:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:263:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:264:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:265:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:266:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:268:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:269:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:270:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:271:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:272:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:274:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:277:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:278:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:279:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:280:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:281:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:282:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:283:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:284:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:286:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/uarch.c:287:3: style: Comparing expression of type 'unsigned int' against value -1. Condition is always false. [compareValueOutOfTypeRangeError] cpufetch-1.07/src/arm/soc.c:56:24: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/soc.c:67:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/soc.c:687:9: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/arm/soc.c:856:62: style: Parameter 'efuse' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/soc.c:948:24: style: Parameter 'dt' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/soc.c:959:72: style: Parameter 'expected_name' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/soc.c:971:9: style: Variable 'end_of_dt' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/arm/soc.c:1151:27: style: Variable 'dev' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/x86/cpuid.c:123:23: style: Redundant condition: The condition '*str != '\0'' is redundant since '*str == ' '' is sufficient. [redundantCondition] cpufetch-1.07/src/x86/cpuid.c:195:56: style: Argument 'accurate_pp' shadows outer function [shadowFunction] cpufetch-1.07/src/common/args.h:46:6: note: Shadowed function cpufetch-1.07/src/x86/cpuid.c:195:56: note: Shadow argument cpufetch-1.07/src/x86/cpuid.c:120:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/x86/cpuid.c:212:22: style: Variable 'topo' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/x86/cpuid.c:228:22: style: Variable 'feat' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/x86/cpuid.c:1052:40: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid.c:1092:35: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid.c:1107:35: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid.c:1158:35: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid.c:1217:32: style: Parameter 'cpu' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/x86/cpuid.c:88:16: style: Variable 'eax' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/cpuid.c:304:16: style: Variable 'eax' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/cpuid.c:855:16: style: Variable 'eax' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/cpuid.c:856:16: style: Variable 'ebx' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/cpuid.c:857:16: style: Variable 'ecx' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/x86/cpuid.c:858:16: style: Variable 'edx' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/arm/soc.c:696:11: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] cpufetch-1.07/src/riscv/riscv.c:236:62: error: Memory leak: cpu [memleak] cpufetch-1.07/src/riscv/riscv.c:31:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:236:28: note: Assuming condition is false cpufetch-1.07/src/riscv/riscv.c:240:48: note: Calling function 'get_peak_performance', 1st argument 'cpu' value is 0 cpufetch-1.07/src/riscv/riscv.c:31:15: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:230:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:230:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:233:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:233:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:234:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:234:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:235:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:235:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:236:6: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:236:6: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:236:45: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:236:45: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:237:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:236:28: note: Assuming condition is false cpufetch-1.07/src/riscv/riscv.c:237:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:238:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:236:28: note: Assuming condition is false cpufetch-1.07/src/riscv/riscv.c:238:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:239:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:236:28: note: Assuming condition is false cpufetch-1.07/src/riscv/riscv.c:239:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:240:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cpu [nullPointerOutOfMemory] cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assuming allocation function fails cpufetch-1.07/src/riscv/riscv.c:225:31: note: Assignment 'cpu=malloc(sizeof(struct cpuInfo))', assigned value is 0 cpufetch-1.07/src/riscv/riscv.c:236:28: note: Assuming condition is false cpufetch-1.07/src/riscv/riscv.c:240:3: note: Null pointer dereference cpufetch-1.07/src/riscv/riscv.c:43:9: style: Variable 'multi_letter_extension_end' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/riscv/riscv.c:212:35: style: Parameter 'mask' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/riscv/riscv.c:246:62: style: Parameter 'topo' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/riscv/riscv.c:271:9: style: Variable 'arch_cpuinfo_str' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/arm/uarch.c:141:64: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/arm/uarch.c:396:35: style: Parameter 'arch' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/ppc/uarch.c:66:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] cpufetch-1.07/src/ppc/uarch.c:245:32: style: Parameter 'arch' can be declared as pointer to const [constParameterPointer] cpufetch-1.07/src/ppc/uarch.c:267:30: style: Parameter 'arch' can be declared as pointer to const [constParameterPointer] diff: DONE