[asterisk-commits] dlee: branch dlee/ASTERISK-22296 r397853 - /team/dlee/ASTERISK-22296/include/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 28 09:09:44 CDT 2013
Author: dlee
Date: Wed Aug 28 09:09:40 2013
New Revision: 397853
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397853
Log:
Added comment about the may_alias attribute
Modified:
team/dlee/ASTERISK-22296/include/asterisk/optional_api.h
Modified: team/dlee/ASTERISK-22296/include/asterisk/optional_api.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-22296/include/asterisk/optional_api.h?view=diff&rev=397853&r1=397852&r2=397853
==============================================================================
--- team/dlee/ASTERISK-22296/include/asterisk/optional_api.h (original)
+++ team/dlee/ASTERISK-22296/include/asterisk/optional_api.h Wed Aug 28 09:09:40 2013
@@ -118,6 +118,10 @@
* Functions that are declared as optional may have any signature they want;
* they are cast to this type as needed. We don't use a \c void pointer, because
* technically data and function pointers are incompatible.
+ *
+ * \note
+ * The may_alias attribute is to avoid type punning/strict aliasing warnings
+ * with older GCC's.
*/
typedef void (*ast_optional_fn)(void) attribute_may_alias;
More information about the asterisk-commits
mailing list