Commit 3aeb1b115d

Michael Dusan <michael.dusan@gmail.com>
2019-10-25 23:45:28
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[] = {
1 parent e219f0c
Changed files (1)
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)
 {