ensure compilation with Clang succeeds Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
diff --git a/makefile_include.mk b/makefile_include.mk
index dca5c3b..f88d18b 100644
--- a/makefile_include.mk
+++ b/makefile_include.mk
@@ -95,6 +95,10 @@ endif # COMPILE_SIZE
ifneq ($(findstring clang,$(CC)),)
LTM_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header
+ifdef IGNORE_SPEED
+#for dead code eliminiation
+LTM_CFLAGS += -O1
+endif
endif
ifneq ($(findstring mingw,$(CC)),)
LTM_CFLAGS += -Wno-shadow