From 2d1dcfc331551ec524eae80adb3d6a87657f5d21 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 5 Jan 2016 23:02:14 +0100 Subject: [PATCH] kinect_upload_fw: Makefile: don't enable unsupported options with clang --- kinect_upload_fw/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kinect_upload_fw/Makefile b/kinect_upload_fw/Makefile index 15741d3..c8bbc86 100644 --- a/kinect_upload_fw/Makefile +++ b/kinect_upload_fw/Makefile @@ -30,9 +30,12 @@ CFLAGS += -fno-common \ -Wswitch-enum \ -Wundef \ -Wunreachable-code \ - -Wunsafe-loop-optimizations \ -Wwrite-strings +ifneq ($(CC),clang) + CFLAGS += -Wunsafe-loop-optimizations +endif + CFLAGS += $(shell pkg-config --cflags libusb-1.0) LDLIBS += $(shell pkg-config --libs libusb-1.0) -- 2.1.4