diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c index ffc105a087..cac0b4bd9f 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c @@ -87,8 +87,9 @@ InternalReportStatusCode ( } else { #if (EFI_SPECIFICATION_VERSION < 0x00020000) return (gRT->ReportStatusCode) (Type, Value, Instance, (EFI_GUID *)CallerId, Data); -#endif +#else return EFI_UNSUPPORTED; +#endif } }