Warning fixes.
Passing argument 1 of ‘strncmp’ from incompatible pointer type. Assignments from incompatible pointer types. Passing argument or initialization discards ‘const’ qualifier from pointer target type. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -260,7 +260,7 @@ void *mem_heap_alloc_block_internal (const size_t size)
|
||||
}
|
||||
else
|
||||
{
|
||||
JERRY_ASSERT (MEM_HEAP_GET_ADDR_FROM_OFFSET (mem_heap.first.next_offset)->size > MEM_ALIGNMENT);
|
||||
JERRY_ASSERT (data_space_p->size > MEM_ALIGNMENT);
|
||||
mem_heap_free_t *const remaining_p = MEM_HEAP_GET_ADDR_FROM_OFFSET (mem_heap.first.next_offset) + 1;
|
||||
|
||||
VALGRIND_DEFINED_SPACE (remaining_p, sizeof (mem_heap_free_t));
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
/**
|
||||
* Node for free chunk list
|
||||
*/
|
||||
typedef struct
|
||||
typedef struct mem_pools_chunk
|
||||
{
|
||||
struct mem_pools_chunk_t *next_p; /* pointer to next pool chunk */
|
||||
struct mem_pools_chunk *next_p; /* pointer to next pool chunk */
|
||||
#ifndef MEM_HEAP_PTR_64
|
||||
uint32_t dummy; /* dummy member for alignment */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user