Skip to content

Commit

Permalink
clang.mak: use -Wall with gcc too
Browse files Browse the repository at this point in the history
Also have to use -Wno-format as gcc lacks -Wno-format-invalid-specifier.
  • Loading branch information
stsp committed Jan 20, 2025
1 parent 7ba1844 commit 48e95cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fdpp/clang.mak
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ USE_UBSAN ?= 0

IFLAGS = -iquote $(srcdir)/../hdr
CPPFLAGS += $(IFLAGS) -DFDPP
WFLAGS := -Wall
ifeq ($(GCC_VER),)
WFLAGS := -Wall -Werror=packed-non-pod -Wno-unknown-warning-option
WFLAGS += -Werror=packed-non-pod -Wno-unknown-warning-option
ifneq ($(CLANG_VER),16)
WFLAGS += -Wpacked
endif
else
WFLAGS := -Wno-attributes
WFLAGS += -Wno-attributes -Wno-format
endif
WFLAGS += -Wno-address-of-packed-member
WCFLAGS = $(WFLAGS)
Expand Down

0 comments on commit 48e95cf

Please sign in to comment.