diff options
author | sbruno <sbruno@FreeBSD.org> | 2013-11-04 18:15:45 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2013-11-04 18:15:45 +0000 |
commit | fccaa9b4f7ad497d9b1822c16d2e4542ad28753f (patch) | |
tree | 3fdced1c8b2f2426f7b5d3dcdeeb04757f5dca1e /gnu | |
parent | b1f334bafb18b24238911415cde36118c01dbd2f (diff) | |
download | FreeBSD-src-fccaa9b4f7ad497d9b1822c16d2e4542ad28753f.zip FreeBSD-src-fccaa9b4f7ad497d9b1822c16d2e4542ad28753f.tar.gz |
Quiesce warning around gcc_assert() for an inline macro that uses
a static variable. This code has been moved around in gcc, but is still in
use in the latest trunk version of the compiler.
gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:208:36:
warning: static variable 'dwarf_reg_size_table' is used in an inline
function with external linkage [-Wstatic-in-inline]
gcc_assert (index < (int) sizeof(dwarf_reg_size_table));
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/lib/libgcc/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile index 092e321..5488799 100644 --- a/gnu/lib/libgcc/Makefile +++ b/gnu/lib/libgcc/Makefile @@ -27,6 +27,17 @@ CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \ -I${GCCDIR}/config -I${GCCDIR} -I. \ -I${.CURDIR}/../../usr.bin/cc/cc_tools +# Added to quiesce warning around gcc_assert() for an inline macro that uses +# a static variable. This code has been moved around in gcc, but is still in +# use in the latest trunk version of the compiler. +# +# gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:208:36: +# warning: static variable 'dwarf_reg_size_table' is used in an inline +# function with external linkage [-Wstatic-in-inline] +# gcc_assert (index < (int) sizeof(dwarf_reg_size_table)); +# ^ +CFLAGS+= -Wno-static-in-inline + LDFLAGS+= -nodefaultlibs LDADD+= -lc |