Skip to content

Conversation

@stevenfontanella
Copy link
Member

json.h defines two lambdas with the same name link. From #8086, the calls in json.h are macro-expanded rather than using the lambdas defined there. This is coincidentally ok because they have the exact same definition, but results in an unused variable warning for the two lambdas. This happens in #8086 and not in main because that PR adds #include "ir/memory-utils.h" in wasm-interpreter.h which probably results in simple_ast.h being included before json.h which causes the shadowing.

Without this PR. With this PR, compilation succeeds.

@stevenfontanella stevenfontanella marked this pull request as ready for review December 29, 2025 21:05
@stevenfontanella stevenfontanella enabled auto-merge (squash) December 29, 2025 21:27
@stevenfontanella stevenfontanella merged commit 7ab9733 into main Dec 29, 2025
17 checks passed
@stevenfontanella stevenfontanella deleted the unused2 branch December 29, 2025 21:37
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