VirtualBox

Changeset 84506 in vbox


Ignore:
Timestamp:
May 25, 2020 2:56:35 PM (5 years ago)
Author:
vboxsync
Message:

IPRT: Shut up gcc 10 about potentially uninitialized variables. bugref:9746

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/math/gcc/udivmoddi4.c

    r82968 r84506  
    4747    Divident.u = u64A;
    4848    Divisor.u  = u64B;
     49    Quotient.u = 0; /* shut up gcc 10 */
     50    Reminder.u = 0; /* shut up gcc 10 */
    4951    RTUInt64DivRem(&Quotient, &Reminder, &Divident, &Divisor);
    5052    if (pu64R)
  • trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp

    r82968 r84506  
    731731#else
    732732        /* PORTME! Avoid this path when possible. */
    733         uint64_t offSaved;
     733        uint64_t offSaved = UINT64_MAX;
    734734        int rc = RTFileSeek(hFile, 0, RTFILE_SEEK_CURRENT, &offSaved);
    735735        if (RT_SUCCESS(rc))
     
    751751     * Save the current location
    752752     */
    753     uint64_t offOld;
     753    uint64_t offOld = UINT64_MAX;
    754754    int rc = RTFileSeek(hFile, 0, RTFILE_SEEK_CURRENT, &offOld);
    755755    if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette