Skip to content

Commit

Permalink
User: disable stringop-overflow warning in recent gcc for utilities
Browse files Browse the repository at this point in the history
This warning is triggered in EDK II MdePkg code
  • Loading branch information
vit9696 committed May 14, 2022
1 parent 409b0d7 commit d0b7eb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions User/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ ifeq ($(shell echo 'int a;' | "${CC}" -Wno-address -x c -c - -o /dev/null 2>&1),
CFLAGS += -Wno-address
endif

ifeq ($(shell echo 'int a;' | "${CC}" -Wno-stringop-overflow -x c -c - -o /dev/null 2>&1),)
CFLAGS += -Wno-stringop-overflow
endif

ifeq ($(DIST),Darwin)
ifneq ($(FUZZ),1)
CFLAGS += -mmacosx-version-min=10.6 --target=x86_64-apple-darwin
Expand Down

0 comments on commit d0b7eb3

Please sign in to comment.