Warning fixes.
ISO C99 doesn’t support unnamed structs/unions. Comparison of distinct pointer types lacks a cast. Dereferencing type-punned pointer will break strict-aliasing rules. Type of bit-field ‘ext’ is a GCC extension. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -138,7 +138,7 @@ ecma_op_create_arguments_object (ecma_object_t *func_obj_p, /**< callee function
|
||||
indx++)
|
||||
{
|
||||
// i.
|
||||
if (literal_p[indx].packed_value == MEM_CP_NULL)
|
||||
if (literal_p[indx].u.packed_value == MEM_CP_NULL)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ typedef struct
|
||||
ecma_value_t base;
|
||||
|
||||
/** referenced name */
|
||||
mem_cpointer_t referenced_name_cp : ECMA_POINTER_FIELD_WIDTH;
|
||||
__extension__ mem_cpointer_t referenced_name_cp : ECMA_POINTER_FIELD_WIDTH;
|
||||
|
||||
/** strict reference flag */
|
||||
unsigned int is_strict : 1;
|
||||
|
||||
Reference in New Issue
Block a user