Changeset 0464967 in mainline


Ignore:
Timestamp:
2017-10-20T00:31:52Z (6 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
Files:
7 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) {
  • uspace/drv/bus/pci/pciintel/pci.c

    rc212a03 r0464967  
    293293        const uint32_t conf_addr = CONF_ADDR(fun->bus, fun->dev, fun->fn, reg);
    294294        pci_bus_t *bus = pci_bus_from_fun(fun);
    295         uint32_t val;
     295        uint32_t val = 0;
    296296       
    297297        fibril_mutex_lock(&bus->conf_mutex);
  • uspace/lib/bithenge/src/compound.c

    rc212a03 r0464967  
    8181
    8282        *out = in;
    83         return rc;
     83        return EOK;
    8484}
    8585
  • uspace/lib/ext4/src/extent.c

    rc212a03 r0464967  
    375375    uint32_t *fblock)
    376376{
    377         int rc;
     377        int rc = EOK;
    378378        /* Compute bound defined by i-node size */
    379379        uint64_t inode_size =
  • uspace/lib/trackmod/xm.c

    rc212a03 r0464967  
    289289        size_t instr_size;
    290290        size_t smp_size;
    291         size_t smp_hdr_size;
     291        size_t smp_hdr_size = 0;  /* GCC false alarm on uninitialized */
    292292        ssize_t nread;
    293293        uint8_t ltype;
Note: See TracChangeset for help on using the changeset viewer.