Mac Developer: GCC warning: __attribute__((always inline))
If you generate a store implementation with inlining checked and GCC complains about
__attribute__((always_inline)), you can either change the generation options or remove the always inline attribute:
/* inline function prototype attributes macro */
#ifndef APPTITE_INLINE_ATTR
#ifdef _DEBUG
#define APPTITE_INLINE_ATTR __attribute__((always_inline))
#else
#define APPTITE_INLINE_ATTR __attribute__((always_inline)) __attribute__((nodebug))
#endif
#endif
Change the
APPTITE_INLINE_ATTR preprocessor define to remove the ((always inline)) attribute:
/* removed always inline attribute */
#ifndef APPTITE_INLINE_ATTR
#ifdef _DEBUG
#define APPTITE_INLINE_ATTR
#else
#define APPTITE_INLINE_ATTR __attribute__((nodebug))
#endif
#endif
Labels: support