summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2018-06-08 12:03:39 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2018-06-08 12:03:39 -0700
commita08cc8b29bd10c5d059c440479bdd64f71dcc7ee (patch)
tree0daa3d95cf1c5490db64163514a36b321157288e /Makefile
parentb729c737b5aee67bbc92d9b102af8ce24a222140 (diff)
downloadabc-a08cc8b29bd10c5d059c440479bdd64f71dcc7ee.tar.gz
abc-a08cc8b29bd10c5d059c440479bdd64f71dcc7ee.tar.bz2
abc-a08cc8b29bd10c5d059c440479bdd64f71dcc7ee.zip
Changing makefile to suppress warnings with GCC 5+
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c59cf117..5aa884e1 100644
--- a/Makefile
+++ b/Makefile
@@ -119,11 +119,16 @@ GCC_MINOR=$(word 2,$(subst .,$(space),$(GCC_VERSION)))
$(info $(MSG_PREFIX)Found GCC_VERSION $(GCC_VERSION))
ifeq ($(findstring $(GCC_MAJOR),0 1 2 3),)
-$(info $(MSG_PREFIX)Found GCC_MAJOR>=4)
+ifeq ($(GCC_MAJOR),4)
+$(info $(MSG_PREFIX)Found GCC_MAJOR==4)
ifeq ($(findstring $(GCC_MINOR),0 1 2 3 4 5),)
$(info $(MSG_PREFIX)Found GCC_MINOR>=6)
CFLAGS += -Wno-unused-but-set-variable
endif
+else
+$(info $(MSG_PREFIX)Found GCC_MAJOR>=5)
+CFLAGS += -Wno-unused-but-set-variable
+endif
endif
endif