aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-04-24 20:42:47 +0100
committergingerBill <bill@gingerbill.org>2020-04-24 20:42:47 +0100
commit9faf292218e2d1f51e58a103bf231d6427be346d (patch)
tree656e93a75ee695f378cc51491029998662c98745 /src/checker.cpp
parent026bb8ed6f6e626c69ccfe32de5b2323d86b4620 (diff)
Fix @(export) for global variable declarations
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 026b1e7c1..bedb40f0d 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2380,6 +2380,7 @@ DECL_ATTRIBUTE_PROC(var_decl_attribute) {
if (ac->thread_local_model != "") {
error(elem, "An exported variable cannot be thread local");
}
+ return true;
} else if (name == "link_name") {
if (ev.kind == ExactValue_String) {
ac->link_name = ev.value_string;