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:
Robert Sipka
2016-03-07 14:02:26 +01:00
parent 25b0750756
commit 0b5a49f98b
9 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -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));
+2 -2
View File
@@ -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