On 04 Nov 2013, at 19:15, Sean Bruno <[email protected]> wrote: > Author: sbruno > Date: Mon Nov 4 18:15:45 2013 > New Revision: 257645 > URL: http://svnweb.freebsd.org/changeset/base/257645 > > Log: > 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));
The warning is actually correct, since _Unwind_SetGR() is an extern inline function (although it is not explicitly declared as such), but it does access a static variable. It would probably be safest to make the variable non-static instead, since the function itself cannot be changed to static inline. -Dimitry
signature.asc
Description: Message signed with OpenPGP using GPGMail
