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:
Geoff Gustafson
2016-03-22 18:25:00 -07:00
parent cc23c225ea
commit f0db5c9754
14 changed files with 60 additions and 60 deletions
+3 -3
View File
@@ -22,7 +22,7 @@
*
* @return dynamic storage-specific extended compressed pointer
*/
lit_cpointer_t __attr_pure___ __attr_always_inline___
inline lit_cpointer_t __attr_pure___ __attr_always_inline___
lit_cpointer_compress (lit_record_t *pointer) /**< pointer to compress */
{
if (pointer == NULL)
@@ -38,7 +38,7 @@ lit_cpointer_compress (lit_record_t *pointer) /**< pointer to compress */
*
* @return decompressed pointer
*/
lit_record_t * __attr_pure___ __attr_always_inline___
inline lit_record_t * __attr_pure___ __attr_always_inline___
lit_cpointer_decompress (lit_cpointer_t compressed_pointer) /**< recordset-specific compressed pointer */
{
if (compressed_pointer == MEM_CP_NULL)
@@ -54,7 +54,7 @@ lit_cpointer_decompress (lit_cpointer_t compressed_pointer) /**< recordset-speci
*
* @return NULL compressed pointer
*/
lit_cpointer_t __attr_pure___ __attr_always_inline___
inline lit_cpointer_t __attr_pure___ __attr_always_inline___
lit_cpointer_null_cp (void)
{
return MEM_CP_NULL;