From: David M. Lee Date: Wed, 8 May 2013 21:01:33 +0000 (+0000) Subject: Add development flag to disable the inline API. X-Git-Tag: 13.0.0-beta1~1831 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b007c744a482d7c19545bdcbf1e4372fb36878a8;p=thirdparty%2Fasterisk.git Add development flag to disable the inline API. A GCC bug[1] can, in some cases, pop up an unsuppressible pedwarn when using a static inline standard library function from a non-static inline function. This normally doesn't show up, but can occur if you're running an upgrade version of GCC (such as GCC 4.8 on OS X, which normally runs GCC 4.2). [1]: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47816 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388046 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/build_tools/cflags.xml b/build_tools/cflags.xml index 7e3e9eeb76..c4d15a67ba 100644 --- a/build_tools/cflags.xml +++ b/build_tools/cflags.xml @@ -24,6 +24,12 @@ extended + + + extended + BFD DLADDR diff --git a/include/asterisk/inline_api.h b/include/asterisk/inline_api.h index 2347d09d7f..5f6911d369 100644 --- a/include/asterisk/inline_api.h +++ b/include/asterisk/inline_api.h @@ -43,7 +43,7 @@ including the header file */ -#if !defined(LOW_MEMORY) +#if !defined(LOW_MEMORY) && !defined(DISABLE_INLINE) #if !defined(AST_API_MODULE) #define AST_INLINE_API(hdr, body) hdr; extern inline hdr body