From d1aeb0bdc36f6bece71a2b0fd3684857d11a867b Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 11 Oct 2007 03:36:31 +0000 Subject: Add compiler hint of "GLOBAL_REMOVE_IF_UNREFERENCED" to prevent static unicode string table linked into final image if both PcdComponentNameDisabled and PcdComponentName2Disabled are set to TRUE. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4084 6f19259b-4bc3-4df7-8a09-765794883524 --- Nt32Pkg/SnpNt32Dxe/ComponentName.c | 2 +- Nt32Pkg/WinNtBlockIoDxe/ComponentName.c | 2 +- Nt32Pkg/WinNtBusDriverDxe/ComponentName.c | 2 +- Nt32Pkg/WinNtConsoleDxe/ComponentName.c | 2 +- Nt32Pkg/WinNtGopDxe/ComponentName.c | 2 +- Nt32Pkg/WinNtSerialIoDxe/ComponentName.c | 2 +- Nt32Pkg/WinNtSimpleFileSystemDxe/ComponentName.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'Nt32Pkg') diff --git a/Nt32Pkg/SnpNt32Dxe/ComponentName.c b/Nt32Pkg/SnpNt32Dxe/ComponentName.c index b9de2efc60..7b2e9a7aa6 100644 --- a/Nt32Pkg/SnpNt32Dxe/ComponentName.c +++ b/Nt32Pkg/SnpNt32Dxe/ComponentName.c @@ -169,7 +169,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gSnpNt32DriverCompone }; -static EFI_UNICODE_STRING_TABLE mSnpNt32DriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mSnpNt32DriverNameTable[] = { { "eng;en", L"SNP NT32 Driver" diff --git a/Nt32Pkg/WinNtBlockIoDxe/ComponentName.c b/Nt32Pkg/WinNtBlockIoDxe/ComponentName.c index fd4caf3ba8..8173d3cced 100644 --- a/Nt32Pkg/WinNtBlockIoDxe/ComponentName.c +++ b/Nt32Pkg/WinNtBlockIoDxe/ComponentName.c @@ -172,7 +172,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtBlockIoComponen }; -static EFI_UNICODE_STRING_TABLE mWinNtBlockIoDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtBlockIoDriverNameTable[] = { { "eng;en", L"Windows Block I/O Driver" }, { NULL , NULL } }; diff --git a/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c b/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c index e7d2487bf1..116c2af6bc 100644 --- a/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c +++ b/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c @@ -183,7 +183,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtBusDriverCompon }; -static EFI_UNICODE_STRING_TABLE mWinNtBusDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtBusDriverNameTable[] = { { "eng;en", L"Windows Bus Driver" }, { NULL , NULL } }; diff --git a/Nt32Pkg/WinNtConsoleDxe/ComponentName.c b/Nt32Pkg/WinNtConsoleDxe/ComponentName.c index b9770887c8..0087ac3bef 100644 --- a/Nt32Pkg/WinNtConsoleDxe/ComponentName.c +++ b/Nt32Pkg/WinNtConsoleDxe/ComponentName.c @@ -191,7 +191,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtConsoleComponen }; -static EFI_UNICODE_STRING_TABLE mWinNtConsoleDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtConsoleDriverNameTable[] = { { "eng;en", L"Windows Text Console Driver" }, { NULL , NULL } }; diff --git a/Nt32Pkg/WinNtGopDxe/ComponentName.c b/Nt32Pkg/WinNtGopDxe/ComponentName.c index a9b281816e..9799d66b1b 100644 --- a/Nt32Pkg/WinNtGopDxe/ComponentName.c +++ b/Nt32Pkg/WinNtGopDxe/ComponentName.c @@ -194,7 +194,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtGopComponentNam }; -static EFI_UNICODE_STRING_TABLE mWinNtGopDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtGopDriverNameTable[] = { { "eng;en", L"Windows GOP Driver" }, { NULL , NULL } }; diff --git a/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c b/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c index cab4dd8b0c..e322e7e1ed 100644 --- a/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c +++ b/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c @@ -168,7 +168,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtSerialIoCompone }; -static EFI_UNICODE_STRING_TABLE mWinNtSerialIoDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtSerialIoDriverNameTable[] = { { "eng;en", L"Windows Serial I/O Driver" }, { NULL , NULL } }; diff --git a/Nt32Pkg/WinNtSimpleFileSystemDxe/ComponentName.c b/Nt32Pkg/WinNtSimpleFileSystemDxe/ComponentName.c index 2fc4be22f7..59b3e25a59 100644 --- a/Nt32Pkg/WinNtSimpleFileSystemDxe/ComponentName.c +++ b/Nt32Pkg/WinNtSimpleFileSystemDxe/ComponentName.c @@ -193,7 +193,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtSimpleFileSyste }; -static EFI_UNICODE_STRING_TABLE mWinNtSimpleFileSystemDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtSimpleFileSystemDriverNameTable[] = { { "eng;en", L"Windows Simple File System Driver" -- cgit v1.2.3