Skip to content

Commit

Permalink
only remove warning on gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Apr 3, 2024
1 parent f5d811f commit 502fe43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ WARNINGS += -Wformat=2 -Wundef
WARNINGS += -Werror=vla -Werror=switch -Werror=implicit-fallthrough -Werror=unused-function
WARNINGS += -Werror=unused-parameter -Werror=shadow -Werror=switch -Werror=double-promotion
WARNINGS_C := -Werror=implicit-function-declaration -Werror=incompatible-pointer-types
WARNINGS_C += -Wno-nonnull-compare
WARNINGS += -Werror=type-limits
WARNINGS_CXX :=

ifeq ($(CC),gcc)
WARNINGS += -Wno-cast-function-type -Wformat-truncation -Wformat-overflow
WARNINGS += -Wno-cast-function-type -Wformat-truncation -Wformat-overflow -Wno-nonnull-compare
endif

ifeq ($(DEBUG),0)
Expand Down

0 comments on commit 502fe43

Please sign in to comment.