Skip to content

Commit

Permalink
Move GCC only flags to check
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Jul 8, 2022
1 parent 6faedf8 commit ae1e0bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libultraship/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ WARN := -Wall -Wextra -Werror \
-Wno-unused-function \
-Wno-parentheses \
-Wno-narrowing \
-Wno-error=stringop-overflow \
-Wno-missing-field-initializers \
-Wno-error=multichar \
-Wno-unused-command-line-argument \
Expand All @@ -27,7 +26,12 @@ WARN := -Wall -Wextra -Werror \
-Wno-deprecated-declarations

CWARN :=
CXXWARN := -Wno-deprecated-enum-enum-conversion -Wno-error=maybe-uninitialized
CXXWARN := -Wno-deprecated-enum-enum-conversion

ifneq '' '$(findstring clang++,$(CXX))' # GCC
WARN += -Wno-error=stringop-overflow
CXXWARN += -Wno-error=maybe-uninitialized
endif

CXXFLAGS := $(WARN) $(CXXWARN) -std=c++20 -D_GNU_SOURCE -DENABLE_OPENGL -DSPDLOG_ACTIVE_LEVEL=0
CFLAGS := $(WARN) $(CWARN) -std=c99 -D_GNU_SOURCE -DENABLE_OPENGL -DSPDLOG_ACTIVE_LEVEL=0
Expand Down

0 comments on commit ae1e0bd

Please sign in to comment.