Skip to content

Commit fc20685

Browse files
kraxelMikhail Krichanov
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 6db7957 commit fc20685

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
@@ -44,7 +44,6 @@ Routine Description:
4444
FILE_LIST *FList;
4545
UINT32 TotalSize;
4646
UINT32 Size;
47-
CHAR8 *Ptr0;
4847

4948
SetUtilityName(UTILITY_NAME);
5049

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

0 commit comments

Comments
 (0)