mirror of https://github.com/acidanthera/audk.git
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:
parent
4d9ca66204
commit
9e7a063b07
|
@ -800,8 +800,8 @@ ACPI_TABLE_GENERATOR SratGenerator = {
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
AcpiSratLibConstructor (
|
||||
IN CONST EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE * CONST SystemTable
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE * SystemTable
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
@ -823,8 +823,8 @@ AcpiSratLibConstructor (
|
|||
EFI_STATUS
|
||||
EFIAPI
|
||||
AcpiSratLibDestructor (
|
||||
IN CONST EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE * CONST SystemTable
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE * SystemTable
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
|
Loading…
Reference in New Issue