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
This commit is contained in:
@@ -170,8 +170,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gIp4ConfigComponentNa
|
||||
};
|
||||
|
||||
|
||||
STATIC
|
||||
EFI_UNICODE_STRING_TABLE mIp4ConfigDriverNameTable[] = {
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mIp4ConfigDriverNameTable[] = {
|
||||
{"eng;en", L"IP4 CONFIG Network Service Driver"},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
Reference in New Issue
Block a user