# Extra cppcheck suppressions for gebrabit_adv18_ci, used TOGETHER with the
# unchanged chapter-3 file tools/cppcheck-suppressions.txt.
# The sources are byte-identical copies of chapters 10/14/15, so findings are
# suppressed here (with the reason) instead of being fixed in a copy.

# Same reason as chapter 3 (usart.c, syscalls.c): HAL MSP and HAL callback
# prototypes are fixed by the HAL, the parameter cannot become const.
constParameterPointer:*/Core/Src/adc.c
constParameterPointer:*/Core/Src/crc.c
constParameterPointer:*/Core/Src/proto_port.c

# cppcheck 2.13 false positive: 'k<n' IS true when n > free space.
# Disproved by tests/test_ringbuf.c test_full_ring_drops_and_counts
# (dropped == 5) and by branch coverage of ringbuf.c line 49.
knownConditionTrueFalse:*/proto/ringbuf.c:49
knownConditionTrueFalse:*/Core/Src/ringbuf.c:49

# Real style finding in chapter-10 code: dispatch() only reads *dev.
# Fix belongs in chapter 10 (static void dispatch(const proto_dev_t *dev, ...)),
# then copy again; kept visible here instead of silently ignored.
constParameterPointer:*/proto/proto_cmd.c:53
constParameterPointer:*/Core/Src/proto_cmd.c:53
