Ignore:
Timestamp:
01/08/07 13:33:55 (8 years ago)
Author:
xi
Message:

Eliminate some warnings and add more doxygen definitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libyaml/trunk/src/parser.c

    r216 r243  
    751751    else if (token->type == YAML_BLOCK_END_TOKEN) 
    752752    { 
     753        yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */ 
    753754        parser->state = POP(parser, parser->states); 
    754         POP(parser, parser->marks); 
     755        dummy_mark = POP(parser, parser->marks); 
    755756        SEQUENCE_END_EVENT_INIT(*event, token->start_mark, token->end_mark); 
    756757        SKIP_TOKEN(parser); 
     
    860861    else if (token->type == YAML_BLOCK_END_TOKEN) 
    861862    { 
     863        yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */ 
    862864        parser->state = POP(parser, parser->states); 
    863         POP(parser, parser->marks); 
     865        dummy_mark = POP(parser, parser->marks); 
    864866        MAPPING_END_EVENT_INIT(*event, token->start_mark, token->end_mark); 
    865867        SKIP_TOKEN(parser); 
     
    942944{ 
    943945    yaml_token_t *token; 
     946    yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */ 
    944947 
    945948    if (first) { 
     
    986989 
    987990    parser->state = POP(parser, parser->states); 
    988     POP(parser, parser->marks); 
     991    dummy_mark = POP(parser, parser->marks); 
    989992    SEQUENCE_END_EVENT_INIT(*event, token->start_mark, token->end_mark); 
    990993    SKIP_TOKEN(parser); 
     
    10931096{ 
    10941097    yaml_token_t *token; 
     1098    yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */ 
    10951099 
    10961100    if (first) { 
     
    11461150 
    11471151    parser->state = POP(parser, parser->states); 
    1148     POP(parser, parser->marks); 
     1152    dummy_mark = POP(parser, parser->marks); 
    11491153    MAPPING_END_EVENT_INIT(*event, token->start_mark, token->end_mark); 
    11501154    SKIP_TOKEN(parser); 
Note: See TracChangeset for help on using the changeset viewer.