Skip to content

Commit

Permalink
Guard -Wredundant-decls to non-Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored and kevingranade committed Feb 25, 2020
1 parent f52fab1 commit 980e0cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ WARNINGS = \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wredundant-decls \
-Wsuggest-override \
-Wunused-macros \
-Wzero-as-null-pointer-constant \
Expand Down Expand Up @@ -488,6 +487,10 @@ ifneq (,$(findstring mingw32,$(CROSS)))
TARGETSYSTEM=WINDOWS
endif

ifneq ($(TARGETSYSTEM),WINDOWS)
WARNINGS += -Wredundant-decls
endif

# Global settings for Windows targets
ifeq ($(TARGETSYSTEM),WINDOWS)
CHKJSON_BIN = chkjson.exe
Expand Down

0 comments on commit 980e0cb

Please sign in to comment.