kinect_fetch_fw: use curly braces when they are actually useful
[kinect-audio-setup.git] / kinect_upload_fw / Makefile
index 15741d3..c8bbc86 100644 (file)
@@ -30,9 +30,12 @@ CFLAGS += -fno-common \
   -Wswitch-enum \
   -Wundef \
   -Wunreachable-code \
   -Wswitch-enum \
   -Wundef \
   -Wunreachable-code \
-  -Wunsafe-loop-optimizations \
   -Wwrite-strings
 
   -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)
 
 CFLAGS += $(shell pkg-config --cflags libusb-1.0)
 LDLIBS += $(shell pkg-config --libs libusb-1.0)