DynamicTablesPkg: Fix void pointer arithmetic

Building the DynamicTablesPkg with the additional
-Wpointer-arith flag triggers the following error:
  "pointer of type ‘void *’ used in arithmetic
  [-Werror=pointer-arith]"

Cast the void pointer to fix the error.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
Pierre Gondois 2021-10-14 15:59:22 +01:00 committed by mergify[bot]
parent 4fdf843c75
commit 6893865b30
1 changed files with 1 additions and 1 deletions

View File

@ -641,7 +641,7 @@ PrintCmObjDesc (
));
}
DEBUG ((DEBUG_ERROR, "\n"));
Data += Parser[Index].Length;
Data = (UINT8*)Data + Parser[Index].Length;
} // for
}