Skip to content

Commit

Permalink
tidy up flags
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Jan 26, 2025
1 parent 096f7e1 commit d8cff86
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,18 @@ CXX := /usr/bin/g++
#----------------------------------------------------------------------
CPPFLAGS += $(DEFINES) $(DEFAULTS) $(INCLUDE)
CPPFLAGS += -ggdb -g3 -O3
CPPFLAGS += -MMD
CPPFLAGS += -flto=auto -fno-lto
CPPFLAGS += -Wall -Wextra -Werror
CPPFLAGS += -Wswitch-enum
CPPFLAGS += -Wno-unused-parameter
# CPPFLAGS += -Wno-missing-braces
# CPPFLAGS += -Wno-sign-compare
# CPPFLAGS += -Wno-tautological-constant-out-of-range-compare

CFLAGS += $(CPPFLAGS)
CFLAGS += -Wall -Wextra -Werror -Wswitch-enum
CFLAGS += -Wno-unused-parameter
CFLAGS += -Wno-missing-braces
CFLAGS += -Wno-sign-compare
CFLAGS += -Wno-tautological-constant-out-of-range-compare
CFLAGS += -Wno-stringop-overread

CXXFLAGS += $(CFLAGS) -MMD
CXXFLAGS += $(CPPFLAGS)
LDFLAGS =

#----------------------------------------------------------------------
# Compiler & Linker Commands
Expand Down

0 comments on commit d8cff86

Please sign in to comment.