Skip to content

Commit

Permalink
Update warning flags
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaaa123456789 committed Jan 15, 2022
1 parent a7732d1 commit d73dac9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ OPTFLAGS = -march=native -mtune=native

CFLAGS = -std=c17 -Ofast -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-exceptions -Wl,-S -Wl,-x -Wl,--gc-sections $(OPTFLAGS)

DEBUGFLAGS = -Wall -Wextra -pedantic -Wcast-align -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Wnull-dereference -Wshadow -Wshift-overflow=2 -Wundef \
-Wunused -Wwrite-strings -Wno-sign-compare -Wno-implicit-fallthrough -Wno-parentheses -Wno-dangling-else -fanalyzer -fanalyzer-verbosity=0
DEBUGFLAGS = -Wall -Wextra -pedantic -Wnull-dereference -Wshadow -Wundef -Wunused -Wwrite-strings -Wno-sign-compare -Wno-implicit-fallthrough \
-Wno-parentheses -Wno-dangling-else -Wno-keyword-macro

ifneq (,$(findstring gcc,$(CC)))
DEBUGFLAGS += -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -fanalyzer -fanalyzer-verbosity=0
endif

.PHONY: all clean basefiles debug

Expand Down

0 comments on commit d73dac9

Please sign in to comment.