projects
/
kinect-audio-setup.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3a5c91
)
kinect_upload_fw: Makefile: don't enable unsupported options with clang
author
Antonio Ospite <ao2@ao2.it>
Tue, 5 Jan 2016 22:02:14 +0000
(23:02 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 7 Jan 2016 16:28:56 +0000
(17:28 +0100)
kinect_upload_fw/Makefile
patch
|
blob
|
history
diff --git
a/kinect_upload_fw/Makefile
b/kinect_upload_fw/Makefile
index
15741d3
..
c8bbc86
100644
(file)
--- 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)