From 3aeb1b115d5de3ebae6fdbbb8d2f87c875413f87 Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Fri, 25 Oct 2019 17:45:28 -0400 Subject: [PATCH] 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[] = { --- src/codegen.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/codegen.cpp b/src/codegen.cpp index ba189baf89..18d758ca5e 100644 --- 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) {