Skip to content

fix(test): the TINY-profile library builds again (unused parameter; ditherFrame on TINY) - #4465

Merged
zackees merged 1 commit into
masterfrom
fix/tiny-profile-werror
Sep 19, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/tiny-profile-werror

Conversation

@zackees

@zackees zackees commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

bash test --cpp fails locally in tests/libfastled_tiny_profile (the
production library built with FL_PLATFORM_HAS_TINY_MEMORY=1 for
color_profile_tiny_runtime):

color_profile_tiny_runtime passes; full suite and lint pass.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved compatibility for low-memory builds by using a stable dithering phase.
    • Reduced compiler warnings on platforms without audio input support.

…itherFrame on TINY)

`bash test --cpp` fails locally in tests/libfastled_tiny_profile (the
production library built with FL_PLATFORM_HAS_TINY_MEMORY=1 for
color_profile_tiny_runtime):

- src/fl/audio/audio_input.cpp.hpp: the weak default
  platform_create_audio_input never reads `config`; -Wunused-parameter is
  an error since the host build made every warning one (#4432).
- src/fl/channels/color_managed_source.cpp.hpp: the three-argument
  ColorManagedPixelSource constructor (#4452) reads detail::ditherFrame(),
  which is defined only off TINY -- an undefined-symbol link error. On TINY
  it passes phase 0; the colour pipeline is compiled out there anyway.

color_profile_tiny_runtime passes; full suite and lint pass.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: b7ea27a1-155a-44b8-a446-1bcb9c7d0da6

📥 Commits

Reviewing files that changed from the base of the PR and between 6fc5faa and ca88dbd.

📒 Files selected for processing (2)
  • src/fl/audio/audio_input.cpp.hpp
  • src/fl/channels/color_managed_source.cpp.hpp

Included review availability: Your plan provides up to 8 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The change marks an unused audio configuration parameter and selects a platform-specific initial dither phase for ColorManagedPixelSource.

Changes

Audio input adjustment

Layer / File(s) Summary
Audio input warning handling
src/fl/audio/audio_input.cpp.hpp
The weak no-audio-support implementation marks config as unused before the existing error path.

Dither phase adjustment

Layer / File(s) Summary
Color-managed dither initialization
src/fl/channels/color_managed_source.cpp.hpp
ColorManagedPixelSource passes phase 0 on tiny-memory platforms and detail::ditherFrame() on other platforms.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the TINY-profile build fix and names both causes addressed by the changes: the unused parameter and unavailable ditherFrame reference.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit f1700ce into master Sep 19, 2026
26 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Sep 19, 2026
@zackees
zackees deleted the fix/tiny-profile-werror branch November 5, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant