X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/blobdiff_plain/eaaa8a10a4e8af360bef60011f101afd92f3e472..0b5d6cfc7b37f42e8d0099724a7d43bcd78b3b20:/kinect_upload_fw/Makefile?ds=inline 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)