Fix compile warnings about always_inline functions in GCC 5.2.0
The warning is "always_inline function might not be inlinable", fixed by adding inline keyword. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55830 JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com
This commit is contained in:
@@ -129,7 +129,7 @@ mem_pools_finalize (void)
|
||||
* @return pointer to allocated chunk, if allocation was successful,
|
||||
* or NULL - if not enough memory.
|
||||
*/
|
||||
void * __attribute__((hot)) __attr_always_inline___
|
||||
inline void * __attribute__((hot)) __attr_always_inline___
|
||||
mem_pools_alloc (void)
|
||||
{
|
||||
#ifdef MEM_GC_BEFORE_EACH_ALLOC
|
||||
|
||||
Reference in New Issue
Block a user