2026-05-31 21:23 ftp://ftp.de.debian.org/debian/pool/main/b/bcm2835/bcm2835_1.75+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.88+deb13-amd64-x86_64-with-glibc2.41 python: 3.12.13 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.20.0 head-info: 8c14fc7 (2026-05-31 09:56:45 +0200) count: 34 35 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: bcm2835-1.75/examples/event/event.c:39:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RPI_GPIO_P1_15 [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/gpio/gpio.c:101:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/gpio/gpio.c:211:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RPI_V2_GPIO_P1_03 [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/gpio/gpio.c:97:17: style: Local variable 'i' shadows outer variable [shadowVariable] bcm2835-1.75/examples/gpio/gpio.c:85:9: note: Shadowed variable bcm2835-1.75/examples/gpio/gpio.c:97:17: note: Shadow local variable bcm2835-1.75/examples/gpio/gpio.c:97:17: style: Unused variable: i [unusedVariable] bcm2835-1.75/examples/gpio/gpio.c:97:20: style: Unused variable: xmitnum [unusedVariable] bcm2835-1.75/examples/i2c/i2c.c:102:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/i2c/i2c.c:255:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/i2c/i2c.c:256:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] bcm2835-1.75/examples/i2c/i2c.c:98:17: style: Local variable 'i' shadows outer variable [shadowVariable] bcm2835-1.75/examples/i2c/i2c.c:219:5: note: Shadowed variable bcm2835-1.75/examples/i2c/i2c.c:98:17: note: Shadow local variable bcm2835-1.75/examples/input/input.c:43:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RPI_GPIO_P1_15 [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/pwm/pwm.c:45:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BCM2835_PWM_CLOCK_DIVIDER_16 [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/spi/spi.c:39:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BCM2835_SPI_BIT_ORDER_MSBFIRST [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/spin/spin.c:40:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BCM2835_SPI_BIT_ORDER_MSBFIRST [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/spiram/spiram.c:45:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BCM2835_SPI_BIT_ORDER_MSBFIRST [valueFlowBailoutIncompleteVar] bcm2835-1.75/examples/spiram/spiram.c:85:51: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] bcm2835-1.75/examples/spiram/spiram.c:65:15: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] bcm2835-1.75/examples/spiram/spiram_test.c:59:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BCM2835_SPI_CLOCK_DIVIDER_64 [valueFlowBailoutIncompleteVar] bcm2835-1.75/src/bcm2835.c:1984:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bcm2835-1.75/src/bcm2835.c:1994:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] bcm2835-1.75/src/bcm2835.c:2102:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] bcm2835-1.75/src/bcm2835.c:1985:5: error: Memory leak: mem [memleak] bcm2835-1.75/src/bcm2835.c:190:33: style:inconclusive: Function 'bcm2835_set_debug' argument 1 names different: declaration 'debug' definition 'd'. [funcArgNamesDifferent] bcm2835-1.75/src/bcm2835.h:1435:44: note: Function 'bcm2835_set_debug' argument 1 names different: declaration 'debug' definition 'd'. bcm2835-1.75/src/bcm2835.c:190:33: note: Function 'bcm2835_set_debug' argument 1 names different: declaration 'debug' definition 'd'. bcm2835-1.75/src/bcm2835.c:848:38: style:inconclusive: Function 'bcm2835_spi_writenb' argument 1 names different: declaration 'buf' definition 'tbuf'. [funcArgNamesDifferent] bcm2835-1.75/src/bcm2835.h:1890:49: note: Function 'bcm2835_spi_writenb' argument 1 names different: declaration 'buf' definition 'tbuf'. bcm2835-1.75/src/bcm2835.c:848:38: note: Function 'bcm2835_spi_writenb' argument 1 names different: declaration 'buf' definition 'tbuf'. bcm2835-1.75/src/bcm2835.c:1033:42: style:inconclusive: Function 'bcm2835_aux_spi_writenb' argument 1 names different: declaration 'buf' definition 'tbuf'. [funcArgNamesDifferent] bcm2835-1.75/src/bcm2835.h:1940:53: note: Function 'bcm2835_aux_spi_writenb' argument 1 names different: declaration 'buf' definition 'tbuf'. bcm2835-1.75/src/bcm2835.c:1033:42: note: Function 'bcm2835_aux_spi_writenb' argument 1 names different: declaration 'buf' definition 'tbuf'. bcm2835-1.75/src/bcm2835.c:203:47: style: Parameter 'paddr' can be declared as pointer to const [constParameterPointer] bcm2835-1.75/src/bcm2835.c:226:50: style: Parameter 'paddr' can be declared as pointer to const [constParameterPointer] bcm2835-1.75/src/bcm2835.c:805:35: style: Parameter 'tbuf' can be declared as pointer to const [constParameterPointer] bcm2835-1.75/src/bcm2835.c:1040:11: style: Variable 'tx' can be declared as pointer to const [constVariablePointer] bcm2835-1.75/src/bcm2835.c:1092:8: style: Variable 'tx' can be declared as pointer to const [constVariablePointer] bcm2835-1.75/src/bcm2835.c:1468:44: style: Parameter 'regaddr' can be declared as pointer to const [constParameterPointer] bcm2835-1.75/src/bcm2835.c:1559:41: style: Parameter 'cmds' can be declared as pointer to const [constParameterPointer] bcm2835-1.75/src/bcm2835.c:1321:28: 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] bcm2835-1.75/src/test.c:27:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diff: 2.20.0 bcm2835-1.75/examples/gpio/gpio.c:97:17: style: Local variable 'i' shadows outer variable [shadowVariable] bcm2835-1.75/examples/gpio/gpio.c:85:9: note: Shadowed declaration bcm2835-1.75/examples/gpio/gpio.c:97:17: note: Shadow variable head bcm2835-1.75/examples/gpio/gpio.c:97:17: style: Local variable 'i' shadows outer variable [shadowVariable] bcm2835-1.75/examples/gpio/gpio.c:85:9: note: Shadowed variable bcm2835-1.75/examples/gpio/gpio.c:97:17: note: Shadow local variable 2.20.0 bcm2835-1.75/examples/i2c/i2c.c:98:17: style: Local variable 'i' shadows outer variable [shadowVariable] bcm2835-1.75/examples/i2c/i2c.c:219:5: note: Shadowed declaration bcm2835-1.75/examples/i2c/i2c.c:98:17: note: Shadow variable head bcm2835-1.75/examples/i2c/i2c.c:98:17: style: Local variable 'i' shadows outer variable [shadowVariable] bcm2835-1.75/examples/i2c/i2c.c:219:5: note: Shadowed variable bcm2835-1.75/examples/i2c/i2c.c:98:17: note: Shadow local variable 2.20.0 bcm2835-1.75/examples/smi/smi.c:74:27: style: Variable 'ReadData[Address]' is assigned a value that is never used. [unreadVariable] DONE