Shut up clang about inline asm.

We make sure to only compile it in for GCC compatible compilers.
This commit is contained in:
Themaister 2012-11-06 19:05:00 +01:00
parent bebe0d78a7
commit ef418260de
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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