Ignore:
Timestamp:
Jul 17, 2008, 8:33:34 PM (13 years ago)
Author:
charles
Message:

(libT) fix some minor warnings foudn by clang's scan-build and reported by m1b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/JSON_parser.c

    r6049 r6354  
    447447{
    448448    if (jc->callback) {
    449         int result = 1;
    450449        JSON_value value, *arg = NULL;
    451450       
     
    467466                        value.vu.str.length = jc->parse_buffer_count;
    468467                    } else {
    469                         result = sscanf(jc->parse_buffer, "%Lf", &value.vu.float_value);
     468                        sscanf(jc->parse_buffer, "%Lf", &value.vu.float_value);
    470469                    }
    471470                    break;
    472471                case JSON_T_INTEGER:
    473472                    arg = &value;
    474                     result = sscanf(jc->parse_buffer, JSON_PARSER_INTEGER_SSCANF_TOKEN, &value.vu.integer_value);
     473                    sscanf(jc->parse_buffer, JSON_PARSER_INTEGER_SSCANF_TOKEN, &value.vu.integer_value);
    475474                    break;
    476475                case JSON_T_STRING:
Note: See TracChangeset for help on using the changeset viewer.