]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugPortDxe/ComponentName.c
Add compiler hint of "GLOBAL_REMOVE_IF_UNREFERENCED" to prevent component name struct...
[mirror_edk2.git] / MdeModulePkg / Universal / DebugPortDxe / ComponentName.c
index 775961412cf20512aad0cc7794c058fef4cb7a85..e6a5248b18ca99546af678534f0eff65c6b65dd4 100644 (file)
@@ -22,7 +22,7 @@ Abstract:
 //\r
 // EFI Component Name Protocol\r
 //\r
-EFI_COMPONENT_NAME_PROTOCOL  gDebugPortComponentName = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gDebugPortComponentName = {\r
   DebugPortComponentNameGetDriverName,\r
   DebugPortComponentNameGetControllerName,\r
   "eng"\r
@@ -31,7 +31,7 @@ EFI_COMPONENT_NAME_PROTOCOL  gDebugPortComponentName = {
 //\r
 // EFI Component Name 2 Protocol\r
 //\r
-EFI_COMPONENT_NAME2_PROTOCOL gDebugPortComponentName2 = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gDebugPortComponentName2 = {\r
   (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) DebugPortComponentNameGetDriverName,\r
   (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) DebugPortComponentNameGetControllerName,\r
   "en"\r