Skip to content

Mark Result as [[nodiscard]] and fix associated errors - #2791

Merged
sbc100 merged 1 commit into
WebAssembly:mainfrom
lexi-nadia:fuzz1
Jul 8, 2026
Merged

sbc100 merged 1 commit into
WebAssembly:mainfrom
lexi-nadia:fuzz1

Conversation

@lexi-nadia

Copy link
Copy Markdown
Collaborator

This CL fixes a fuzzer error caused by unintentionally ignoring a failure. Instead of just fixing the one case, I figured I'd fix them all.

In a handful of cases, I wasn't sure how errors should be propagated. Please feel free to suggest improvements!

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Comment thread include/wabt/type-checker.h Resolved
Comment thread src/tools/wasm2c.cc Resolved
Comment thread src/wast-lexer.cc Resolved
Comment thread src/wat-writer.cc Resolved
@sbc100 sbc100 changed the title mark Result as [[nodiscard]] and fix associated errors Mark Result as [[nodiscard]] and fix associated errors Jul 8, 2026
@sbc100
sbc100 merged commit 6b85d94 into WebAssembly:main Jul 8, 2026
17 checks passed
@lexi-nadia
lexi-nadia deleted the fuzz1 branch July 8, 2026 17:45
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.

2 participants