On Sun, 29 Mar 2020 at 19:38, Sami Mujawar <sami.muja...@arm.com> wrote: > > 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 SystemTable pointer (the > second parameter to the constructor/destructor/DXE Entry > point) to make it compatible with the formal declaration. >
You are removing the CONST qualifier from two places, no? > Signed-off-by: Sami Mujawar <sami.muja...@arm.com> > --- > DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c > b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c > index > 5d56af66608d862e6eca81da812d719f110867d2..74cb7d92a5d8cddd3df8334f3ab55e6fa3e7267a > 100644 > --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c > +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSratLibArm/SratGenerator.c > @@ -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 Can we keep the * with the argument name, please? > ) > { > EFI_STATUS Status; > -- > 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#56606): https://edk2.groups.io/g/devel/message/56606 Mute This Topic: https://groups.io/mt/72634737/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-