VirtualBox

Changeset 40282 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Feb 28, 2012 9:02:40 PM (13 years ago)
Author:
vboxsync
Message:

*: gcc-4.7: ~0 => ~0U in initializers (warning: narrowing conversion of -1' from int' to `unsigned int' inside { } is ill-formed in C++11 [-Wnarrowing])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstLdr.cpp

    r38636 r40282  
    101101    }   aLoads[6] =
    102102    {
    103         { NULL, NULL, (int32_t)0xefefef00, "foo" },
    104         { NULL, NULL, (int32_t)0x40404040, "bar" },
    105         { NULL, NULL, (int32_t)0xefefef00, "foobar" },
    106         { NULL, NULL, (int32_t)0xefefef00, "kLdr-foo" },
    107         { NULL, NULL, (int32_t)0x40404040, "kLdr-bar" },
    108         { NULL, NULL, (int32_t)0xefefef00, "kLdr-foobar" }
     103        { NULL, NULL, (RTUINTPTR)0xefefef00, "foo" },
     104        { NULL, NULL, (RTUINTPTR)0x40404040, "bar" },
     105        { NULL, NULL, (RTUINTPTR)0xefefef00, "foobar" },
     106        { NULL, NULL, (RTUINTPTR)0xefefef00, "kLdr-foo" },
     107        { NULL, NULL, (RTUINTPTR)0x40404040, "kLdr-bar" },
     108        { NULL, NULL, (RTUINTPTR)0xefefef00, "kLdr-foobar" }
    109109    };
    110110    unsigned i;
     
    170170        static RTUINTPTR aRels[] =
    171171        {
    172             (int32_t)0xefefef00,        /* same. */
    173             (int32_t)0x40404040,        /* the other. */
    174             (int32_t)0xefefef00,        /* back. */
    175             (int32_t)0x40404040,        /* the other. */
    176             (int32_t)0xefefef00,        /* back again. */
    177             (int32_t)0x77773420,        /* somewhere entirely else. */
    178             (int32_t)0xf0000000,        /* somewhere entirely else. */
    179             (int32_t)0x40404040,        /* the other. */
    180             (int32_t)0xefefef00         /* back again. */
     172            (RTUINTPTR)0xefefef00,        /* same. */
     173            (RTUINTPTR)0x40404040,        /* the other. */
     174            (RTUINTPTR)0xefefef00,        /* back. */
     175            (RTUINTPTR)0x40404040,        /* the other. */
     176            (RTUINTPTR)0xefefef00,        /* back again. */
     177            (RTUINTPTR)0x77773420,        /* somewhere entirely else. */
     178            (RTUINTPTR)0xf0000000,        /* somewhere entirely else. */
     179            (RTUINTPTR)0x40404040,        /* the other. */
     180            (RTUINTPTR)0xefefef00         /* back again. */
    181181        };
    182182        struct Symbols
     
    188188        } aSyms[] =
    189189        {
    190             { ~0, "Entrypoint" },
    191             { ~0, "SomeExportFunction1" },
    192             { ~0, "SomeExportFunction2" },
    193             { ~0, "SomeExportFunction3" },
    194             { ~0, "SomeExportFunction4" },
    195             { ~0, "SomeExportFunction5" },
    196             { ~0, "SomeExportFunction5" },
    197             { ~0, "DISCoreOne" }
     190            { ~0U, "Entrypoint" },
     191            { ~0U, "SomeExportFunction1" },
     192            { ~0U, "SomeExportFunction2" },
     193            { ~0U, "SomeExportFunction3" },
     194            { ~0U, "SomeExportFunction4" },
     195            { ~0U, "SomeExportFunction5" },
     196            { ~0U, "SomeExportFunction5" },
     197            { ~0U, "DISCoreOne" }
    198198        };
    199199
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