aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorCiD- <jkercher43@gmail.com>2022-04-08 13:50:06 -0400
committerCiD- <jkercher43@gmail.com>2022-04-08 13:50:06 -0400
commit56737c14314f541762f9adba78a33ac28036ec8c (patch)
treee4df7b8bb3199aa04cb568f6007f54e5bc97cb3c /src/check_decl.cpp
parent9ae566adcc5e7e55039349eed2b4768739391ae8 (diff)
parentf2f1330238d46bb6e80eac33da99604ac2f99a52 (diff)
merge upstream/master
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index d4a320f03..5acd56097 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -1137,7 +1137,9 @@ void check_global_variable_decl(CheckerContext *ctx, Entity *&e, Ast *type_expr,
ac.link_name = handle_link_name(ctx, e->token, ac.link_name, ac.link_prefix);
if (is_arch_wasm() && e->Variable.thread_local_model.len != 0) {
- error(e->token, "@(thread_local) is not supported for this target platform");
+ e->Variable.thread_local_model.len = 0;
+ // NOTE(bill): ignore this message for the time begin
+ // error(e->token, "@(thread_local) is not supported for this target platform");
}
String context_name = str_lit("variable declaration");