Changeset 6bb9ccb in serd


Ignore:
Timestamp:
07/31/17 00:37:57 (3 weeks ago)
Author:
David Robillard <d@…>
Branches:
serd1
Parents:
214ffc9
git-author:
David Robillard <d@…> (02/12/17 12:03:48)
git-committer:
David Robillard <d@…> (07/31/17 00:37:57)
Message:

Fix warnings

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/reader.c

    r9709d1b r6bb9ccb  
    174174                 SerdType type, const char* str, size_t n_bytes) 
    175175{ 
    176     char* mem = serd_stack_push_aligned( 
     176    void* mem = serd_stack_push_aligned( 
    177177        &reader->stack, sizeof(SerdNode) + maxlen + 1, sizeof(SerdNode)); 
    178178 
     
    215215{ 
    216216    SERD_STACK_ASSERT_TOP(reader, ref); 
    217     char* const     s    = serd_stack_push(&reader->stack, 1); 
     217    char* const     s    = (char*)serd_stack_push(&reader->stack, 1); 
    218218    SerdNode* const node = (SerdNode*)(reader->stack.buf + ref); 
    219219    ++node->n_bytes; 
     
    15831583    for (; n > 0 && *s2; s1++, s2++, --n) { 
    15841584        if (toupper(*s1) != toupper(*s2)) { 
    1585             return ((*(uint8_t*)s1 < *(uint8_t*)s2) ? -1 : +1); 
     1585            return ((*(const uint8_t*)s1 < *(const uint8_t*)s2) ? -1 : +1); 
    15861586        } 
    15871587    } 
  • src/serd_internal.h

    r9709d1b r6bb9ccb  
    165165} 
    166166 
    167 static inline char* 
     167static inline void* 
    168168serd_stack_push(SerdStack* stack, size_t n_bytes) 
    169169{ 
Note: See TracChangeset for help on using the changeset viewer.