You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RP common hygiene: pio_program missing pio_version/used_gpio_ranges (rp2350 SDK 2.x), -Wtype-limits in spi_hw_4_rp, -Wsign-compare in pin_rp #2727
Three RP2040/RP2350-side warning families surface on every rp2040 / rp2350 FastLED CI build. None are immediate bugs individually, but together they signal the RP common layer needs a hygiene pass — especially because rp2350 SDK 2.x added new fields to pio_program that FastLED is not initializing.
H1. pio_program literal missing initializer for pio_version / used_gpio_ranges
warning: missing initializer for member pio_program::pio_version [-Wmissing-field-initializers]
warning: missing initializer for member pio_program::used_gpio_ranges [-Wmissing-field-initializers]
src/platforms/arm/rp/rpcommon/pio_gen.h:48
src/platforms/arm/rp/rpcommon/spi_hw_2_rp.cpp.hpp:88
src/platforms/arm/rp/rpcommon/spi_hw_4_rp.cpp.hpp:90
src/platforms/arm/rp/rpcommon/spi_hw_8_rp.cpp.hpp:94
used_gpio_ranges is new in pico-sdk 2.x for RP2350. Without an initializer the field is zero-init, which on RP2350 means "no GPIO range claimed" — likely silently broken at runtime when the SDK starts validating it.
Fix: Use designated initializers everywhere or add the new fields explicitly.
H2. -Wtype-limits always-true bounds checks in spi_hw_4_rp.cpp.hpp
warning: comparison is always true due to limited range of data type [-Wtype-limits]
src/platforms/arm/rp/rpcommon/spi_hw_4_rp.cpp.hpp:304, 319, 324, 329
Six hits — a uint8_t/uint16_t value bounds-checked against a value its type cannot exceed.
Fix: Drop the dead check or widen the variable.
H3. -Wsign-compare in pin_rp.hpp
warning: comparison of integer expressions of different signedness [-Wsign-compare]
src/platforms/arm/rp/pin_rp.hpp:118, 149, 231, 287
Loop bounds use int i against unsigned count.
Fix: Cast the loop index or use size_t/matching unsigned type.
Evidence
rp2040 and rp2350 workflow runs (recent successful builds on master).
Activity
zackees commentedon Jun 4, 2026
Tracked under fbuild meta-audit: FastLED/fbuild#408
fix(rp): SDK 2.x pio_program init + type-limits + sign-compare hygiene (