From ef418260de75feaa391f5fe97012b592587b3cbe Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 6 Nov 2012 19:05:00 +0100 Subject: [PATCH] Shut up clang about inline asm. We make sure to only compile it in for GCC compatible compilers. --- Makefile | 3 +++ qb/config.libs.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 842a9f324a..d66bac1100 100644 --- a/Makefile +++ b/Makefile @@ -313,6 +313,9 @@ endif ifeq ($(NOUNUSED), yes) CFLAGS += -Wno-unused-result endif +ifeq ($(NOEXTTOKEN), yes) + CFLAGS += -Wno-language-extension-token +endif all: $(TARGET) config.mk diff --git a/qb/config.libs.sh b/qb/config.libs.sh index d19a933fe6..bdd3d298fc 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -1,7 +1,9 @@ check_switch_c C99 -std=gnu99 "Cannot find C99 compatible compiler." check_switch_c NOUNUSED -Wno-unused-result +check_switch_c NOEXTTOKEN -Wno-language-extension-token add_define_make NOUNUSED "$HAVE_NOUNUSED" +add_define_make NOEXTTOKEN "$HAVE_NOEXTTOKEN" # There are still broken 64-bit Linux distros out there. :) [ -d /usr/lib64 ] && add_library_dirs /usr/lib64