summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d7fa10f)
Disable some compiler flags to be more compatible with older setups:
- vanilla libusb-1.0.8 makes compilation fail with -pedantic-errors
- gcc versions older than 4.6 do not have -Wunused-but-set-variable
-CFLAGS ?= -std=c99 -pedantic -pedantic-errors -Wall -Wextra -O2
+CFLAGS ?= -std=c99 -pedantic -Wall -Wextra -O2
+
+# Don't make pedantic checks errors,
+# as vanilla libusb-1.0.8 can't live with that
+#CFLAGS += -pedantic-errors
+
+# GCC >= 4.6
+#CFLAGS += -Wunused-but-set-variable
+
CFLAGS += -fno-common \
-Wall \
-Wextra \
CFLAGS += -fno-common \
-Wall \
-Wextra \
-Wundef \
-Wunreachable-code \
-Wunsafe-loop-optimizations \
-Wundef \
-Wunreachable-code \
-Wunsafe-loop-optimizations \
- -Wunused-but-set-variable \
-Wwrite-strings
CFLAGS += $(shell pkg-config --cflags libusb-1.0)
-Wwrite-strings
CFLAGS += $(shell pkg-config --cflags libusb-1.0)