Skip to content

Commit

Permalink
suppress GCC maybe-uninitialized warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 22, 2023
1 parent e4a13de commit 215ac3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/instance.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ resolve_imports(struct instance *inst, const struct import_object *imports,
int (*check)(const struct import_object_entry *e,
const void *);
const void *type;
#if defined(__GNUC__) && !defined(__clang__)
check = NULL;
type = NULL;
#endif
switch (imd->type) {
case EXTERNTYPE_FUNC:
check = check_functype;
Expand Down
2 changes: 1 addition & 1 deletion test/run-wasi-testsuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DIR=.wasi-testsuite
fetch() {
REPO=https://github.com/WebAssembly/wasi-testsuite
# prod/testsuite-all branch
REF=6cbd7e21bd40ce3cf405a646956085e2a0cd344c
REF=eb62461cacbb856d310943e54127204d508a6688
mkdir "${DIR}"
git -C "${DIR}" init
git -C "${DIR}" fetch --depth 1 ${REPO} ${REF}
Expand Down

0 comments on commit 215ac3e

Please sign in to comment.