mirror of https://github.com/acidanthera/audk.git
ArmPkg: Fix Ecc error 5007 in SemiHostingSerialPortLib
This patch fixes the following Ecc reported error: There should be no initialization of a variable as part of its declaration Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
This commit is contained in:
parent
146af6a45b
commit
02c621f3f7
|
@ -2,6 +2,7 @@
|
|||
Serial I/O Port library functions with no library constructor/destructor
|
||||
|
||||
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||
Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
|
@ -55,10 +56,13 @@ SerialPortWrite (
|
|||
)
|
||||
{
|
||||
UINT8 PrintBuffer[PRINT_BUFFER_SIZE];
|
||||
UINTN SourceIndex = 0;
|
||||
UINTN DestinationIndex = 0;
|
||||
UINTN SourceIndex;
|
||||
UINTN DestinationIndex;
|
||||
UINT8 CurrentCharacter;
|
||||
|
||||
SourceIndex = 0;
|
||||
DestinationIndex = 0;
|
||||
|
||||
while (SourceIndex < NumberOfBytes)
|
||||
{
|
||||
CurrentCharacter = Buffer[SourceIndex++];
|
||||
|
|
Loading…
Reference in New Issue