From a79fb49cdfccee508689eea69f914820c2a5cd88 Mon Sep 17 00:00:00 2001 From: hasufell Date: Sat, 31 May 2014 01:38:21 +0200 Subject: [PATCH] BUILD: fix build with clang --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 95e8a78..2772117 100644 --- a/common.mk +++ b/common.mk @@ -5,7 +5,7 @@ PKG_CONFIG ?= pkg-config # flags CFLAGS ?= -march=native -O2 -pipe CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -ifeq ($(shell $(CC) -v 2>&1 | grep 'gcc version' &>/dev/null && echo 1),1) +ifeq ($(CC),gcc) CFLAGS += -Wno-unused-but-set-variable endif LDFLAGS ?= -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu