DynamicTablesPkg: SRAT: Fix entry points

VS2017 reports 'warning C4028: formal parameter 2 different
from declaration' for the library constructor and destructor
interfaces for the SRAT Generator modules.

Remove the CONST qualifier for the ImageHandle and the
SystemTable pointer in the library constructor and destructor
to make it compatible with the formal declaration.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
Sami Mujawar 2019-11-18 16:30:16 +00:00 committed by mergify[bot]
parent 4d9ca66204
commit 9e7a063b07
1 changed files with 4 additions and 4 deletions

View File

@ -800,8 +800,8 @@ ACPI_TABLE_GENERATOR SratGenerator = {
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
AcpiSratLibConstructor ( AcpiSratLibConstructor (
IN CONST EFI_HANDLE ImageHandle, IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE * CONST SystemTable IN EFI_SYSTEM_TABLE * SystemTable
) )
{ {
EFI_STATUS Status; EFI_STATUS Status;
@ -823,8 +823,8 @@ AcpiSratLibConstructor (
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
AcpiSratLibDestructor ( AcpiSratLibDestructor (
IN CONST EFI_HANDLE ImageHandle, IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE * CONST SystemTable IN EFI_SYSTEM_TABLE * SystemTable
) )
{ {
EFI_STATUS Status; EFI_STATUS Status;