From ffabc6b7a3b90b1c28833fc7958f80e2734202b9 Mon Sep 17 00:00:00 2001 From: Jeffrey Crowell Date: Mon, 4 Jul 2022 22:49:12 -0400 Subject: [PATCH] mark unknown strings as extern --- ZAPDTR/ZAPD/ZResource.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ZAPDTR/ZAPD/ZResource.cpp b/ZAPDTR/ZAPD/ZResource.cpp index ebd743653..15f786e59 100644 --- a/ZAPDTR/ZAPD/ZResource.cpp +++ b/ZAPDTR/ZAPD/ZResource.cpp @@ -351,6 +351,8 @@ std::string ZResource::GetSourceOutputHeader([[maybe_unused]] const std::string& if (myset.find(name) == myset.end()) { str += StringHelper::Sprintf("\nstatic const char %s[] __attribute__((aligned (2))) = d%s;", name.c_str(), name.c_str()); myset.insert(name); + } else { + str += StringHelper::Sprintf("\nextern static const char %s[] __attribute__((aligned (2)));", name.c_str()); } return str;