mirror of git://sourceware.org/git/glibc.git
debug: mark __libc_message_wrapper as always inline
When building with -Og to enable debugging, there is currently a compiler error because if __libc_message_wrapper() is not inline, the __va_arg_pack_len macro cannot be used. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
2f77aec043
commit
7d99ff550f
|
|
@ -185,8 +185,9 @@ _Noreturn void __libc_message_impl (const char *__vmaname, const char *__fmt,
|
|||
#define __libc_assert_vma_name "glibc: assert"
|
||||
|
||||
#ifdef __va_arg_pack
|
||||
static inline _Noreturn void __libc_message_wrapper (const char *vmaname,
|
||||
const char *fmt, ...)
|
||||
static inline __always_inline
|
||||
_Noreturn void __libc_message_wrapper (const char *vmaname,
|
||||
const char *fmt, ...)
|
||||
{
|
||||
if (__va_arg_pack_len () > LIBC_MESSAGE_MAX_ARGS)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue