Changeset 0464967 in mainline for uspace/app


Ignore:
Timestamp:
2017-10-20T00:31:52Z (8 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04efacc
Parents:
c212a03 (diff), ccbf93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Fix gcc warnings when building with -O1 or -Og flags.
(Thanks Ondřej Hlavatý!)

Location:
uspace/app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkmfs/mkmfs.c

    rc212a03 r0464967  
    348348        unsigned int i;
    349349        uint8_t *itable_buf;
    350         int rc;
     350        int rc = EOK;
    351351
    352352        long itable_off = sb->zbmap_blocks + sb->ibmap_blocks + 2;
     
    633633        const unsigned int zbmap_nblocks = sb->zbmap_blocks;
    634634        unsigned int i;
    635         int rc;
     635        int rc = EOK;
    636636
    637637        ibmap_buf = malloc(ibmap_nblocks * sb->block_size);
  • uspace/app/sbi/src/os/helenos.c

    rc212a03 r0464967  
    155155        size_t offset;
    156156        int i;
    157         wchar_t c;
     157        wchar_t c = 0;
    158158
    159159        if (index < 0)
  • uspace/app/sbi/src/run_expr.c

    rc212a03 r0464967  
    25042504        elem_index = 0;
    25052505
     2506        assert(node != NULL);
     2507
    25062508        i = 0;
    2507         while (node != NULL) {
     2509        do {
    25082510                if (i >= 1) {
    25092511                        printf("Error: Too many indices string.\n");
     
    25272529                node = list_next(args, node);
    25282530                i += 1;
    2529         }
     2531        } while (node != NULL);
    25302532
    25312533        if (i < 1) {
Note: See TracChangeset for help on using the changeset viewer.