Skip to content

fix -Wunused-parameter warnings - #895

Open
20dka wants to merge 1 commit into
cnlohr:masterfrom
20dka:fix_warnings_2
Open

fix -Wunused-parameter warnings#895
20dka wants to merge 1 commit into
cnlohr:masterfrom
20dka:fix_warnings_2

Conversation

@20dka

@20dka 20dka commented May 30, 2026

Copy link
Copy Markdown
Contributor

fixes for [-Wunused-parameter]

@maxgerhardt

maxgerhardt commented May 30, 2026

Copy link
Copy Markdown
Contributor

This reminds me that the asm implementation doesn't seem to be LTO safe, just like I discovered it with a bug in Community-PIO-CH32V/framework-wch-noneos-sdk#14. Surpressing the warning about the unused parameter is the wrong way, it needs to be referenced in the assembly to make sure the first parameter is absolutely in the expected a0 register.

@cnlohr

cnlohr commented May 31, 2026

Copy link
Copy Markdown
Owner

We talked about this on-call. I think @20dka is going to be tweaking this.

@cnlohr

cnlohr commented Jul 27, 2026

Copy link
Copy Markdown
Owner

@maxgerhardt do you mind looking into this so we can close this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants