commit 3aeb1b115d5de3ebae6fdbbb8d2f87c875413f87 (tree)
parent e219f0c786e8982c81d089b2945891632028b6ef
Author: Michael Dusan <michael.dusan@gmail.com>
Date: Fri, 25 Oct 2019 17:45:28 -0400
stage1: fix compile error on macOS Xcode 11.2
src/codegen.cpp:7713:33: error: unused variable 'global_linkage_values' [-Werror,-Wunused-const-variable]
static const GlobalLinkageValue global_linkage_values[] = {
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/src/codegen.cpp b/src/codegen.cpp
@@ -7710,13 +7710,6 @@ struct GlobalLinkageValue {
const char *name;
};
-static const GlobalLinkageValue global_linkage_values[] = {
- {GlobalLinkageIdInternal, "Internal"},
- {GlobalLinkageIdStrong, "Strong"},
- {GlobalLinkageIdWeak, "Weak"},
- {GlobalLinkageIdLinkOnce, "LinkOnce"},
-};
-
static void add_fp_entry(CodeGen *g, const char *name, uint32_t bit_count, LLVMTypeRef type_ref,
ZigType **field)
{