ArmPkg: Fix Ecc error 5007 in CompilerIntrinsicsLib

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:
Pierre Gondois
2020-12-10 13:04:26 +00:00
committed by mergify[bot]
parent 8b8b52ff0c
commit fb48f1e298
6 changed files with 26 additions and 10 deletions

View File

@ -18,8 +18,11 @@ void* memcpy(void *, const void *, size_t);
#pragma function(memcpy)
void* memcpy(void *dest, const void *src, size_t n)
{
unsigned char *d = dest;
unsigned char const *s = src;
unsigned char *d;
unsigned char const *s;
d = dest;
s = src;
while (n-- != 0) {
*d++ = *s++;