[asterisk-commits] dlee: trunk r388046 - in /trunk: build_tools/ include/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 8 16:01:35 CDT 2013


Author: dlee
Date: Wed May  8 16:01:33 2013
New Revision: 388046

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388046
Log:
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

Modified:
    trunk/build_tools/cflags.xml
    trunk/include/asterisk/inline_api.h

Modified: trunk/build_tools/cflags.xml
URL: http://svnview.digium.com/svn/asterisk/trunk/build_tools/cflags.xml?view=diff&rev=388046&r1=388045&r2=388046
==============================================================================
--- trunk/build_tools/cflags.xml (original)
+++ trunk/build_tools/cflags.xml Wed May  8 16:01:33 2013
@@ -22,6 +22,12 @@
 			<support_level>extended</support_level>
 		</member>
 		<member name="LOW_MEMORY" displayname="Optimize for Low Memory Usage">
+			<support_level>extended</support_level>
+		</member>
+		<member name="DISABLE_INLINE" displayname="Disable the inline API">
+			<!-- Added to work around GCC bug
+			     See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47816
+			  -->
 			<support_level>extended</support_level>
 		</member>
 		<member name="BETTER_BACKTRACES" displayname="Use libbfd (GPL) to generate better inline backtraces">

Modified: trunk/include/asterisk/inline_api.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/inline_api.h?view=diff&rev=388046&r1=388045&r2=388046
==============================================================================
--- trunk/include/asterisk/inline_api.h (original)
+++ trunk/include/asterisk/inline_api.h Wed May  8 16:01:33 2013
@@ -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




More information about the asterisk-commits mailing list