summaryrefslogtreecommitdiff
path: root/src/wat-writer.cc
diff options
context:
space:
mode:
authorKeith Winstein <keithw@cs.stanford.edu>2023-03-21 18:47:43 -0700
committerGitHub <noreply@github.com>2023-03-22 01:47:43 +0000
commita724eeec5f360529cbb9a1a18f1fa6b0464f2933 (patch)
treee979fac75b9f7696218acb2aee64bb75574f5430 /src/wat-writer.cc
parentaef2cccd52103a71d669dbdfcd6f12bdb7375410 (diff)
downloadwabt-a724eeec5f360529cbb9a1a18f1fa6b0464f2933.tar.gz
wabt-a724eeec5f360529cbb9a1a18f1fa6b0464f2933.tar.bz2
wabt-a724eeec5f360529cbb9a1a18f1fa6b0464f2933.zip
Silence warnings on GCC 12 (#2177)
Fixes #2020
Diffstat (limited to 'src/wat-writer.cc')
-rw-r--r--src/wat-writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wat-writer.cc b/src/wat-writer.cc
index 99d5901e..ea70edb3 100644
--- a/src/wat-writer.cc
+++ b/src/wat-writer.cc
@@ -1722,7 +1722,7 @@ void WatWriter::WriteInlineExports(ExternalKind kind, Index index) {
}
bool WatWriter::IsInlineExport(const Export& export_) {
- Index index;
+ Index index{};
switch (export_.kind) {
case ExternalKind::Func:
index = module.GetFuncIndex(export_.var);