From 9084e60d832abc49b7989dab17569ee20660d977 Mon Sep 17 00:00:00 2001 From: Sinan Kaya Date: Sun, 17 Mar 2019 20:36:22 +0000 Subject: [PATCH] Const has static linkage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit bin/obj/Linux.x64.Debug/src/dlls/mscorrc/full/mscorrc_debug.cpp:1002:110: error: ‘visibility’ attribute ignored [-Werror=attributes] const NativeStringResourceTable nativeStringResourceTable_mscorrc_debug __attribute__((visibility("default"))) = { Commit migrated from https://github.com/dotnet/coreclr/commit/45d5b3a7c3b426965defd7b264d24ef00e955751 --- src/coreclr/src/nativeresources/rctocpp.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/nativeresources/rctocpp.awk b/src/coreclr/src/nativeresources/rctocpp.awk index 6f8d597..cef49ce 100644 --- a/src/coreclr/src/nativeresources/rctocpp.awk +++ b/src/coreclr/src/nativeresources/rctocpp.awk @@ -62,7 +62,7 @@ function writeheader(arrayName, tableName) print "// This code was generated by rctocpp.awk and is not meant to be modified manually." print "#include "; print ""; - print "extern const NativeStringResourceTable " tableName ";"; + print "extern NativeStringResourceTable " tableName ";"; print "const NativeStringResource " arrayName "[] = {"; } @@ -78,7 +78,7 @@ function writefooter(arrayName, tableName) print "};"; print ""; - print "const NativeStringResourceTable " tableName " __attribute__((visibility(\"default\"))) = {"; + print "NativeStringResourceTable " tableName " __attribute__((visibility(\"default\"))) = {"; print numEntries ","; print arrayName "};"; } -- 2.7.4