Skip to content

Commit da1523c

Browse files
kraxelsavvamitrofanov
authored andcommitted
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>
1 parent 941501b commit da1523c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

BaseTools/Source/C/EfiRom/EfiRom.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ Routine Description:
4545
FILE_LIST *FList;
4646
UINT32 TotalSize;
4747
UINT32 Size;
48-
CHAR8 *Ptr0;
4948

5049
SetUtilityName (UTILITY_NAME);
5150

@@ -76,7 +75,7 @@ Routine Description:
7675
//
7776
if (mOptions.DumpOption == 1) {
7877
if (mOptions.FileList != NULL) {
79-
if ((Ptr0 = strstr ((CONST CHAR8 *)mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION)) != NULL) {
78+
if (strstr ((CONST CHAR8 *)mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION) != NULL) {
8079
DumpImage (mOptions.FileList);
8180
goto BailOut;
8281
} else {

0 commit comments

Comments
 (0)