mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
BaseTools/EfiRom: fix compiler warning
New warning after updating gcc: EfiRom.c: In function ‘main’: EfiRom.c:78:17: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] The assigned value is not used, so fix the warning by just removing it. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
3597306191
commit
9af06ef3cb
1 changed files with 1 additions and 2 deletions
|
|
@ -44,7 +44,6 @@ Returns:
|
|||
FILE_LIST *FList;
|
||||
UINT32 TotalSize;
|
||||
UINT32 Size;
|
||||
CHAR8 *Ptr0;
|
||||
|
||||
SetUtilityName(UTILITY_NAME);
|
||||
|
||||
|
|
@ -75,7 +74,7 @@ Returns:
|
|||
//
|
||||
if (mOptions.DumpOption == 1) {
|
||||
if (mOptions.FileList != NULL) {
|
||||
if ((Ptr0 = strstr ((CONST CHAR8 *) mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION)) != NULL) {
|
||||
if (strstr ((CONST CHAR8 *) mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION) != NULL) {
|
||||
DumpImage (mOptions.FileList);
|
||||
goto BailOut;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue