diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2021-10-14 15:59:22 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-10-20 10:38:30 +0000 |
commit | 6893865b3010bb6192f732643c4b8ba026726d07 (patch) | |
tree | 50f590dee6aebca00dcc3d2fdcd42d88baf4785a /DynamicTablesPkg | |
parent | 4fdf843c75d297fe892f989009b3d3e397ccfd55 (diff) | |
download | edk2-6893865b3010bb6192f732643c4b8ba026726d07.tar.gz edk2-6893865b3010bb6192f732643c4b8ba026726d07.tar.bz2 edk2-6893865b3010bb6192f732643c4b8ba026726d07.zip |
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>
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r-- | DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c index 2337d47e3f..0bdbfbb99c 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c @@ -641,7 +641,7 @@ PrintCmObjDesc ( ));
}
DEBUG ((DEBUG_ERROR, "\n"));
- Data += Parser[Index].Length;
+ Data = (UINT8*)Data + Parser[Index].Length;
} // for
}
|