Skip to content

Commit

Permalink
Fix a warning under gcc 14 (#6912)
Browse files Browse the repository at this point in the history
Fixes: #6779
  • Loading branch information
smoser authored Sep 9, 2024
1 parent 2525389 commit 0b07c1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/parser/wat-parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@ Result<> parseModule(Module& wasm, Lexer& lexer);

Result<Literal> parseConst(Lexer& lexer);

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"

struct InvokeAction {
std::optional<Name> base;
Name name;
Literals args;
};

#pragma GCC diagnostic pop

struct GetAction {
std::optional<Name> base;
Name name;
Expand Down

0 comments on commit 0b07c1b

Please sign in to comment.