X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/blobdiff_plain/863d1b3bdc8ce5dd9d85db85165fdd08eb46170a..6b70ec619aa4d2361a368a820591a0d45d23a7ef:/kinect_upload_fw/Makefile?ds=inline diff --git a/kinect_upload_fw/Makefile b/kinect_upload_fw/Makefile index 2cca6fd..c8bbc86 100644 --- a/kinect_upload_fw/Makefile +++ b/kinect_upload_fw/Makefile @@ -30,10 +30,13 @@ CFLAGS += -fno-common \ -Wswitch-enum \ -Wundef \ -Wunreachable-code \ - -Wunsafe-loop-optimizations \ -Wwrite-strings -CFLAGS += $(shell pkg-config --cflags libusb-1.0) +ifneq ($(CC),clang) + CFLAGS += -Wunsafe-loop-optimizations +endif + +CFLAGS += $(shell pkg-config --cflags libusb-1.0) LDLIBS += $(shell pkg-config --libs libusb-1.0) PREFIX ?= /usr/local