VirtualBox

Changeset 40282 in vbox


Ignore:
Timestamp:
Feb 28, 2012 9:02:40 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76511
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])

Location:
trunk/src
Files:
57 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c

    r39781 r40282  
    383383        0,     /* gid */
    384384        0,     /* ttl */
    385        ~0,     /* dmode */
    386        ~0,     /* fmode*/
     385       ~0U,    /* dmode */
     386       ~0U,    /* fmode*/
    387387        0,     /* dmask */
    388388        0,     /* fmask */
  • trunk/src/VBox/Debugger/DBGCCommands.cpp

    r39612 r40282  
    8888{
    8989    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    90     {  1,           ~0,         DBGCVAR_CAT_STRING,     0,                              "strings",      "One or more strings." },
     90    {  1,           ~0U,        DBGCVAR_CAT_STRING,     0,                              "strings",      "One or more strings." },
    9191};
    9292
     
    111111{
    112112    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    113     {  0,           ~0,         DBGCVAR_CAT_STRING,     0,                              "cmd/op",       "Zero or more command or operator names." },
     113    {  0,           ~0U,        DBGCVAR_CAT_STRING,     0,                              "cmd/op",       "Zero or more command or operator names." },
    114114};
    115115
     
    225225    { "bye",        0,        0,        NULL,                0,                            0, dbgcCmdQuit,      "",                     "Exits the debugger." },
    226226    { "cpu",        0,        1,        &g_aArgCpu[0],       RT_ELEMENTS(g_aArgCpu),       0, dbgcCmdCpu,       "[idCpu]",              "If no argument, display the current CPU, else change to the specified CPU." },
    227     { "echo",       1,        ~0,       &g_aArgMultiStr[0],  RT_ELEMENTS(g_aArgMultiStr),  0, dbgcCmdEcho,      "<str1> [str2..[strN]]", "Displays the strings separated by one blank space and the last one followed by a newline." },
     227    { "echo",       1,        ~0U,      &g_aArgMultiStr[0],  RT_ELEMENTS(g_aArgMultiStr),  0, dbgcCmdEcho,      "<str1> [str2..[strN]]", "Displays the strings separated by one blank space and the last one followed by a newline." },
    228228    { "exit",       0,        0,        NULL,                0,                            0, dbgcCmdQuit,      "",                     "Exits the debugger." },
    229229    { "format",     1,        1,        &g_aArgAny[0],       RT_ELEMENTS(g_aArgAny),       0, dbgcCmdFormat,    "",                     "Evaluates an expression and formats it." },
    230230    { "detect",     0,        0,        NULL,                0,                            0, dbgcCmdDetect,    "",                     "Detects or re-detects the guest os and starts the OS specific digger." },
    231231    { "harakiri",   0,        0,        NULL,                0,                            0, dbgcCmdHarakiri,  "",                     "Kills debugger process." },
    232     { "help",       0,        ~0,       &g_aArgHelp[0],      RT_ELEMENTS(g_aArgHelp),      0, dbgcCmdHelp,      "[cmd/op [..]]",        "Display help. For help about info items try 'info help'." },
     232    { "help",       0,        ~0U,      &g_aArgHelp[0],      RT_ELEMENTS(g_aArgHelp),      0, dbgcCmdHelp,      "[cmd/op [..]]",        "Display help. For help about info items try 'info help'." },
    233233    { "info",       1,        2,        &g_aArgInfo[0],      RT_ELEMENTS(g_aArgInfo),      0, dbgcCmdInfo,      "<info> [args]",        "Display info register in the DBGF. For a list of info items try 'info help'." },
    234234    { "loadimage",  2,        3,        &g_aArgLoadImage[0], RT_ELEMENTS(g_aArgLoadImage), 0, dbgcCmdLoadImage, "<filename> <address> [name]",
     
    255255    { "showvars",   0,        0,        NULL,                0,                            0, dbgcCmdShowVars,  "",                     "List all the defined variables." },
    256256    { "stop",       0,        0,        NULL,                0,                            0, dbgcCmdStop,      "",                     "Stop execution." },
    257     { "unloadplugin", 1,     ~0,        &g_aArgPlugIn[0],    RT_ELEMENTS(g_aArgPlugIn),    0, dbgcCmdUnloadPlugIn, "<plugin1> [plugin2..N]", "Unloads one or more plugins." },
    258     { "unset",      1,       ~0,        &g_aArgMultiStr[0],  RT_ELEMENTS(g_aArgMultiStr),  0, dbgcCmdUnset,     "<var1> [var1..[varN]]",  "Unsets (delete) one or more global variables." },
     257    { "unloadplugin", 1,     ~0U,       &g_aArgPlugIn[0],    RT_ELEMENTS(g_aArgPlugIn),    0, dbgcCmdUnloadPlugIn, "<plugin1> [plugin2..N]", "Unloads one or more plugins." },
     258    { "unset",      1,       ~0U,       &g_aArgMultiStr[0],  RT_ELEMENTS(g_aArgMultiStr),  0, dbgcCmdUnset,     "<var1> [var1..[varN]]",  "Unsets (delete) one or more global variables." },
    259259    { "writecore",  1,        1,        &g_aArgWriteCore[0], RT_ELEMENTS(g_aArgWriteCore), 0, dbgcCmdWriteCore,   "<filename>",           "Write core to file." },
    260260};
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r38537 r40282  
    9797{
    9898    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    99     {  0,           ~0,         DBGCVAR_CAT_NUMBER,     0,                              "#bp",          "Breakpoint number." },
     99    {  0,           ~0U,        DBGCVAR_CAT_NUMBER,     0,                              "#bp",          "Breakpoint number." },
    100100    {  0,           1,          DBGCVAR_CAT_STRING,     0,                              "all",          "All breakpoints." },
    101101};
     
    136136{
    137137    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    138     {  0,           ~0,         DBGCVAR_CAT_NUMBER,     0,                              "sel",          "Selector or selector range." },
    139     {  0,           ~0,         DBGCVAR_CAT_POINTER,    0,                              "address",      "Far address which selector should be dumped." },
     138    {  0,           ~0U,        DBGCVAR_CAT_NUMBER,     0,                              "sel",          "Selector or selector range." },
     139    {  0,           ~0U,        DBGCVAR_CAT_POINTER,    0,                              "address",      "Far address which selector should be dumped." },
    140140};
    141141
     
    145145{
    146146    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    147     {  0,           ~0,         DBGCVAR_CAT_NUMBER,     0,                              "int",          "The interrupt vector or interrupt vector range." },
     147    {  0,           ~0U,        DBGCVAR_CAT_NUMBER,     0,                              "int",          "The interrupt vector or interrupt vector range." },
    148148};
    149149
     
    206206    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    207207    {  1,           1,          DBGCVAR_CAT_POINTER,    0,                              "address",      "Address where to write." },
    208     {  1,           ~0,         DBGCVAR_CAT_NUMBER,     0,                              "value",        "Value to write." },
     208    {  1,           ~0U,        DBGCVAR_CAT_NUMBER,     0,                              "value",        "Value to write." },
    209209};
    210210
     
    214214{
    215215    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    216     {  0,           ~0,         DBGCVAR_CAT_STRING,     0,                              "module",       "Module name." },
     216    {  0,           ~0U,        DBGCVAR_CAT_STRING,     0,                              "module",       "Module name." },
    217217};
    218218
     
    222222{
    223223    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    224     {  0,           ~0,         DBGCVAR_CAT_POINTER,    0,                              "address",      "Address of the symbol to look up." },
    225     {  0,           ~0,         DBGCVAR_CAT_SYMBOL,     0,                              "symbol",       "Symbol to lookup." },
     224    {  0,           ~0U,        DBGCVAR_CAT_POINTER,    0,                              "address",      "Address of the symbol to look up." },
     225    {  0,           ~0U,        DBGCVAR_CAT_SYMBOL,     0,                              "symbol",       "Symbol to lookup." },
    226226};
    227227
     
    264264    {  0,           1,          DBGCVAR_CAT_OPTION_NUMBER, 0,                           "-n <Hits>",    "Maximum number of hits." },
    265265    {  0,           1,          DBGCVAR_CAT_GC_POINTER, 0,                              "range",        "Register to show or set." },
    266     {  0,           ~0,         DBGCVAR_CAT_ANY,        0,                              "pattern",      "Pattern to search for." },
     266    {  0,           ~0U,        DBGCVAR_CAT_ANY,        0,                              "pattern",      "Pattern to search for." },
    267267};
    268268
     
    273273    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    274274    {  1,           1,          DBGCVAR_CAT_GC_POINTER, 0,                              "range",        "Register to show or set." },
    275     {  1,           ~0,         DBGCVAR_CAT_ANY,        0,                              "pattern",      "Pattern to search for." },
     275    {  1,           ~0U,        DBGCVAR_CAT_ANY,        0,                              "pattern",      "Pattern to search for." },
    276276};
    277277
     
    293293    { "ba",         3,        6,        &g_aArgBrkAcc[0],   RT_ELEMENTS(g_aArgBrkAcc),      0,       dbgcCmdBrkAccess,   "<access> <size> <address> [passes [max passes]] [cmds]",
    294294                                                                                                                                                 "Sets a data access breakpoint." },
    295     { "bc",         1,       ~0,        &g_aArgBrks[0],     RT_ELEMENTS(g_aArgBrks),        0,       dbgcCmdBrkClear,    "all | <bp#> [bp# []]", "Enabled a set of breakpoints." },
    296     { "bd",         1,       ~0,        &g_aArgBrks[0],     RT_ELEMENTS(g_aArgBrks),        0,       dbgcCmdBrkDisable,  "all | <bp#> [bp# []]", "Disables a set of breakpoints." },
    297     { "be",         1,       ~0,        &g_aArgBrks[0],     RT_ELEMENTS(g_aArgBrks),        0,       dbgcCmdBrkEnable,   "all | <bp#> [bp# []]", "Enabled a set of breakpoints." },
     295    { "bc",         1,       ~0U,       &g_aArgBrks[0],     RT_ELEMENTS(g_aArgBrks),        0,       dbgcCmdBrkClear,    "all | <bp#> [bp# []]", "Enabled a set of breakpoints." },
     296    { "bd",         1,       ~0U,       &g_aArgBrks[0],     RT_ELEMENTS(g_aArgBrks),        0,       dbgcCmdBrkDisable,  "all | <bp#> [bp# []]", "Disables a set of breakpoints." },
     297    { "be",         1,       ~0U,       &g_aArgBrks[0],     RT_ELEMENTS(g_aArgBrks),        0,       dbgcCmdBrkEnable,   "all | <bp#> [bp# []]", "Enabled a set of breakpoints." },
    298298    { "bl",         0,        0,        NULL,               0,                              0,       dbgcCmdBrkList,     "",                     "Lists all the breakpoints." },
    299299    { "bp",         1,        4,        &g_aArgBrkSet[0],   RT_ELEMENTS(g_aArgBrkSet),      0,       dbgcCmdBrkSet,      "<address> [passes [max passes]] [cmds]",
     
    306306    { "dd",         0,        1,        &g_aArgDumpMem[0],  RT_ELEMENTS(g_aArgDumpMem),     0,       dbgcCmdDumpMem,     "[addr]",               "Dump memory in double words." },
    307307    { "da",         0,        1,        &g_aArgDumpMem[0],  RT_ELEMENTS(g_aArgDumpMem),     0,       dbgcCmdDumpMem,     "[addr]",               "Dump memory as ascii string." },
    308     { "dg",         0,       ~0,        &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the global descriptor table (GDT)." },
    309     { "dga",        0,       ~0,        &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the global descriptor table (GDT) including not-present entries." },
    310     { "di",         0,       ~0,        &g_aArgDumpIDT[0],  RT_ELEMENTS(g_aArgDumpIDT),     0,       dbgcCmdDumpIDT,     "[int [..]]",           "Dump the interrupt descriptor table (IDT)." },
    311     { "dia",        0,       ~0,        &g_aArgDumpIDT[0],  RT_ELEMENTS(g_aArgDumpIDT),     0,       dbgcCmdDumpIDT,     "[int [..]]",           "Dump the interrupt descriptor table (IDT) including not-present entries." },
    312     { "dl",         0,       ~0,        &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the local descriptor table (LDT)." },
    313     { "dla",        0,       ~0,        &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the local descriptor table (LDT) including not-present entries." },
     308    { "dg",         0,       ~0U,       &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the global descriptor table (GDT)." },
     309    { "dga",        0,       ~0U,       &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the global descriptor table (GDT) including not-present entries." },
     310    { "di",         0,       ~0U,       &g_aArgDumpIDT[0],  RT_ELEMENTS(g_aArgDumpIDT),     0,       dbgcCmdDumpIDT,     "[int [..]]",           "Dump the interrupt descriptor table (IDT)." },
     311    { "dia",        0,       ~0U,       &g_aArgDumpIDT[0],  RT_ELEMENTS(g_aArgDumpIDT),     0,       dbgcCmdDumpIDT,     "[int [..]]",           "Dump the interrupt descriptor table (IDT) including not-present entries." },
     312    { "dl",         0,       ~0U,       &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the local descriptor table (LDT)." },
     313    { "dla",        0,       ~0U,       &g_aArgDumpDT[0],   RT_ELEMENTS(g_aArgDumpDT),      0,       dbgcCmdDumpDT,      "[sel [..]]",           "Dump the local descriptor table (LDT) including not-present entries." },
    314314    { "dpd",        0,        1,        &g_aArgDumpPD[0],   RT_ELEMENTS(g_aArgDumpPD),      0,       dbgcCmdDumpPageDir, "[addr] [index]",       "Dumps page directory entries of the default context." },
    315315    { "dpda",       0,        1,        &g_aArgDumpPDAddr[0],RT_ELEMENTS(g_aArgDumpPDAddr), 0,       dbgcCmdDumpPageDir, "[addr]",               "Dumps specified page directory." },
     
    341341    { "kg",         0,        0,        NULL,               0,                              0,       dbgcCmdStack,       "",                     "Callstack - guest." },
    342342    { "kh",         0,        0,        NULL,               0,                              0,       dbgcCmdStack,       "",                     "Callstack - hypervisor." },
    343     { "lm",         0,        ~0,       &g_aArgListMods[0], RT_ELEMENTS(g_aArgListMods),    0,       dbgcCmdListModules, "[module [..]]",        "List modules." },
    344     { "lmo",        0,        ~0,       &g_aArgListMods[0], RT_ELEMENTS(g_aArgListMods),    0,       dbgcCmdListModules, "[module [..]]",        "List modules and their segments." },
    345     { "ln",         0,        ~0,       &g_aArgListNear[0], RT_ELEMENTS(g_aArgListNear),    0,       dbgcCmdListNear,    "[addr/sym [..]]",      "List symbols near to the address. Default address is CS:EIP." },
     343    { "lm",         0,        ~0U,      &g_aArgListMods[0], RT_ELEMENTS(g_aArgListMods),    0,       dbgcCmdListModules, "[module [..]]",        "List modules." },
     344    { "lmo",        0,        ~0U,      &g_aArgListMods[0], RT_ELEMENTS(g_aArgListMods),    0,       dbgcCmdListModules, "[module [..]]",        "List modules and their segments." },
     345    { "ln",         0,        ~0U,      &g_aArgListNear[0], RT_ELEMENTS(g_aArgListNear),    0,       dbgcCmdListNear,    "[addr/sym [..]]",      "List symbols near to the address. Default address is CS:EIP." },
    346346    { "ls",         0,        1,        &g_aArgListSource[0],RT_ELEMENTS(g_aArgListSource), 0,       dbgcCmdListSource,  "[addr]",               "Source." },
    347347    { "m",          1,        1,        &g_aArgMemoryInfo[0],RT_ELEMENTS(g_aArgMemoryInfo), 0,       dbgcCmdMemoryInfo,  "<addr>",               "Display information about that piece of memory." },
     
    352352    { "rh",         0,        2,        &g_aArgReg[0],      RT_ELEMENTS(g_aArgReg),         0,       dbgcCmdRegHyper,    "[reg [newval]]",       "Show or set register(s) - hypervisor reg set." },
    353353    { "rt",         0,        0,        NULL,               0,                              0,       dbgcCmdRegTerse,    "",                     "Toggles terse / verbose register info." },
    354     { "s",          0,       ~0,        &g_aArgSearchMem[0], RT_ELEMENTS(g_aArgSearchMem),  0,       dbgcCmdSearchMem,   "[options] <range> <pattern>",  "Continue last search." },
    355     { "sa",         2,       ~0,        &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for an ascii string." },
    356     { "sb",         2,       ~0,        &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more bytes." },
    357     { "sd",         2,       ~0,        &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more double words." },
    358     { "sq",         2,       ~0,        &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more quad words." },
    359     { "su",         2,       ~0,        &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for an unicode string." },
    360     { "sw",         2,       ~0,        &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more words." },
     354    { "s",          0,       ~0U,       &g_aArgSearchMem[0], RT_ELEMENTS(g_aArgSearchMem),  0,       dbgcCmdSearchMem,   "[options] <range> <pattern>",  "Continue last search." },
     355    { "sa",         2,       ~0U,       &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for an ascii string." },
     356    { "sb",         2,       ~0U,       &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more bytes." },
     357    { "sd",         2,       ~0U,       &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more double words." },
     358    { "sq",         2,       ~0U,       &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more quad words." },
     359    { "su",         2,       ~0U,       &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for an unicode string." },
     360    { "sw",         2,       ~0U,       &g_aArgSearchMemType[0], RT_ELEMENTS(g_aArgSearchMemType),0, dbgcCmdSearchMemType, "<range> <pattern>",  "Search memory for one or more words." },
    361361    { "t",          0,        0,        NULL,               0,                              0,       dbgcCmdTrace,       "",                     "Instruction trace (step into)." },
    362362    { "u",          0,        1,        &g_aArgUnassemble[0],RT_ELEMENTS(g_aArgUnassemble), 0,       dbgcCmdUnassemble,  "[addr]",               "Unassemble." },
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r40280 r40282  
    25662566    PDM_DEVREG_CLASS_BUS_PCI,
    25672567    /* cMaxInstances */
    2568     ~0,
     2568    ~0U,
    25692569    /* cbInstance */
    25702570    sizeof(PCIBUS),
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r40280 r40282  
    28782878    PDM_DEVREG_CLASS_BUS_PCI,
    28792879    /* cMaxInstances */
    2880     ~0,
     2880    ~0U,
    28812881    /* cbInstance */
    28822882    sizeof(ICH9PCIBUS),
  • trunk/src/VBox/Devices/Input/DrvKeyboardQueue.cpp

    r35353 r40282  
    348348    PDM_DRVREG_CLASS_KEYBOARD,
    349349    /* cMaxInstances */
    350     ~0,
     350    ~0U,
    351351    /* cbInstance */
    352352    sizeof(DRVKBDQUEUE),
  • trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp

    r35353 r40282  
    371371    PDM_DRVREG_CLASS_MOUSE,
    372372    /* cMaxInstances */
    373     ~0,
     373    ~0U,
    374374    /* cbInstance */
    375375    sizeof(DRVMOUSEQUEUE),
  • trunk/src/VBox/Devices/Input/UsbKbd.cpp

    r37795 r40282  
    14511451    0,
    14521452    /* cMaxInstances */
    1453     ~0,
     1453    ~0U,
    14541454    /* cbInstance */
    14551455    sizeof(USBHID),
  • trunk/src/VBox/Devices/Input/UsbMouse.cpp

    r37795 r40282  
    13311331    0,
    13321332    /* cMaxInstances */
    1333     ~0,
     1333    ~0U,
    13341334    /* cbInstance */
    13351335    sizeof(USBHID),
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r40280 r40282  
    62016201    PDM_DEVREG_CLASS_NETWORK,
    62026202    /* Maximum number of instances (per VM). */
    6203     ~0,
     6203    ~0U,
    62046204    /* Size of the instance data. */
    62056205    sizeof(E1KSTATE),
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r40280 r40282  
    53795379    PDM_DEVREG_CLASS_NETWORK,
    53805380    /* cMaxInstances */
    5381     ~0,
     5381    ~0U,
    53825382    /* cbInstance */
    53835383    sizeof(PCNetState),
  • trunk/src/VBox/Devices/Network/DevVirtioNet.cpp

    r40280 r40282  
    20932093    PDM_DEVREG_CLASS_NETWORK,
    20942094    /* Maximum number of instances (per VM). */
    2095     ~0,
     2095    ~0U,
    20962096    /* Size of the instance data. */
    20972097    sizeof(VNETSTATE),
  • trunk/src/VBox/Devices/Network/DrvDedicatedNic.cpp

    r39059 r40282  
    527527    PDM_DRVREG_CLASS_NETWORK,
    528528    /* cMaxInstances */
    529     ~0,
     529    ~0U,
    530530    /* cbInstance */
    531531    sizeof(DRVDEDICATEDNIC),
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r38630 r40282  
    18411841    PDM_DRVREG_CLASS_NETWORK,
    18421842    /* cMaxInstances */
    1843     ~0,
     1843    ~0U,
    18441844    /* cbInstance */
    18451845    sizeof(DRVINTNET),
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r39784 r40282  
    14621462    PDM_DRVREG_CLASS_NETWORK,
    14631463    /* cMaxInstances */
    1464     ~0,
     1464    ~0U,
    14651465    /* cbInstance */
    14661466    sizeof(DRVNAT),
  • trunk/src/VBox/Devices/Network/DrvTAP.cpp

    r39955 r40282  
    10111011    PDM_DRVREG_CLASS_NETWORK,
    10121012    /* cMaxInstances */
    1013     ~0,
     1013    ~0U,
    10141014    /* cbInstance */
    10151015    sizeof(DRVTAP),
  • trunk/src/VBox/Devices/Network/DrvUDPTunnel.cpp

    r37259 r40282  
    618618    PDM_DRVREG_CLASS_NETWORK,
    619619    /* cMaxInstances */
    620     ~0,
     620    ~0U,
    621621    /* cbInstance */
    622622    sizeof(DRVUDPTUNNEL),
  • trunk/src/VBox/Devices/Network/DrvVDE.cpp

    r37596 r40282  
    632632    PDM_DRVREG_CLASS_NETWORK,
    633633    /* cMaxInstances */
    634     ~0,
     634    ~0U,
    635635    /* cbInstance */
    636636    sizeof(DRVVDE),
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r40280 r40282  
    33683368    PDM_DEVREG_CLASS_ACPI,
    33693369    /* cMaxInstances */
    3370     ~0,
     3370    ~0U,
    33713371    /* cbInstance */
    33723372    sizeof(ACPIState),
  • trunk/src/VBox/Devices/PC/DrvACPI.cpp

    r35353 r40282  
    10151015    PDM_DRVREG_CLASS_ACPI,
    10161016    /* cMaxInstances */
    1017     ~0,
     1017    ~0U,
    10181018    /* cbInstance */
    10191019    sizeof(DRVACPI),
  • trunk/src/VBox/Devices/PC/DrvAcpiCpu.cpp

    r35353 r40282  
    105105    PDM_DRVREG_CLASS_ACPI,
    106106    /* cMaxInstances */
    107     ~0,
     107    ~0U,
    108108    /* cbInstance */
    109109    sizeof(PDMDRVINS),
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r39684 r40282  
    490490    PDM_DRVREG_CLASS_CHAR,
    491491    /* cMaxInstances */
    492     ~0,
     492    ~0U,
    493493    /* cbInstance */
    494494    sizeof(DRVHOSTPARALLEL),
  • trunk/src/VBox/Devices/Samples/DrvStorageFilter.cpp

    r39857 r40282  
    365365    PDM_DRVREG_CLASS_MEDIA,
    366366    /* cMaxInstances */
    367     ~0,
     367    ~0U,
    368368    /* cbInstance */
    369369    sizeof(DRVSTORAGEFILTER),
  • trunk/src/VBox/Devices/Serial/DrvChar.cpp

    r37114 r40282  
    428428    PDM_DRVREG_CLASS_CHAR,
    429429    /* cMaxInstances */
    430     ~0,
     430    ~0U,
    431431    /* cbInstance */
    432432    sizeof(DRVCHAR),
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r37597 r40282  
    13151315    PDM_DRVREG_CLASS_CHAR,
    13161316    /* cMaxInstances */
    1317     ~0,
     1317    ~0U,
    13181318    /* cbInstance */
    13191319    sizeof(DRVHOSTSERIAL),
  • trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp

    r39855 r40282  
    679679    PDM_DRVREG_CLASS_STREAM,
    680680    /* cMaxInstances */
    681     ~0,
     681    ~0U,
    682682    /* cbInstance */
    683683    sizeof(DRVNAMEDPIPE),
  • trunk/src/VBox/Devices/Serial/DrvRawFile.cpp

    r39855 r40282  
    212212    PDM_DRVREG_CLASS_STREAM,
    213213    /* cMaxInstances */
    214     ~0,
     214    ~0U,
    215215    /* cbInstance */
    216216    sizeof(DRVRAWFILE),
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r40280 r40282  
    82538253    PDM_DEVREG_CLASS_STORAGE,
    82548254    /* cMaxInstances */
    8255     ~0,
     8255    ~0U,
    82568256    /* cbInstance */
    82578257    sizeof(AHCI),
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r40280 r40282  
    32303230    PDM_DEVREG_CLASS_STORAGE,
    32313231    /* cMaxInstances */
    3232     ~0,
     3232    ~0U,
    32333233    /* cbInstance */
    32343234    sizeof(BUSLOGIC),
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r40280 r40282  
    52945294    PDM_DEVREG_CLASS_STORAGE,
    52955295    /* cMaxInstances */
    5296     ~0,
     5296    ~0U,
    52975297    /* cbInstance */
    52985298    sizeof(LSILOGICSCSI),
     
    53505350    PDM_DEVREG_CLASS_STORAGE,
    53515351    /* cMaxInstances */
    5352     ~0,
     5352    ~0U,
    53535353    /* cbInstance */
    53545354    sizeof(LSILOGICSCSI),
  • trunk/src/VBox/Devices/Storage/DrvBlock.cpp

    r38878 r40282  
    10341034    PDM_DRVREG_CLASS_BLOCK,
    10351035    /* cMaxInstances */
    1036     ~0,
     1036    ~0U,
    10371037    /* cbInstance */
    10381038    sizeof(DRVBLOCK),
  • trunk/src/VBox/Devices/Storage/DrvDiskIntegrity.cpp

    r39518 r40282  
    13881388    PDM_DRVREG_CLASS_BLOCK,
    13891389    /* cMaxInstances */
    1390     ~0,
     1390    ~0U,
    13911391    /* cbInstance */
    13921392    sizeof(DRVDISKINTEGRITY),
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r39731 r40282  
    854854    PDM_DRVREG_CLASS_BLOCK,
    855855    /* cMaxInstances */
    856     ~0,
     856    ~0U,
    857857    /* cbInstance */
    858858    sizeof(DRVHOSTBASE),
  • trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp

    r38566 r40282  
    250250    PDM_DRVREG_CLASS_BLOCK,
    251251    /* cMaxInstances */
    252     ~0,
     252    ~0U,
    253253    /* cbInstance */
    254254    sizeof(DRVHOSTFLOPPY),
  • trunk/src/VBox/Devices/Storage/DrvMediaISO.cpp

    r39855 r40282  
    287287    PDM_DRVREG_CLASS_MEDIA,
    288288    /* cMaxInstances */
    289     ~0,
     289    ~0U,
    290290    /* cbInstance */
    291291    sizeof(DRVMEDIAISO),
  • trunk/src/VBox/Devices/Storage/DrvRawImage.cpp

    r39855 r40282  
    339339    PDM_DRVREG_CLASS_MEDIA,
    340340    /* cMaxInstances */
    341     ~0,
     341    ~0U,
    342342    /* cbInstance */
    343343    sizeof(DRVRAWIMAGE),
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r39764 r40282  
    972972    PDM_DRVREG_CLASS_SCSI,
    973973    /* cMaxInstances */
    974     ~0,
     974    ~0U,
    975975    /* cbInstance */
    976976    sizeof(DRVSCSI),
  • trunk/src/VBox/Devices/Storage/DrvSCSIHost.cpp

    r39498 r40282  
    513513    PDM_DRVREG_CLASS_SCSI,
    514514    /* cMaxInstances */
    515     ~0,
     515    ~0U,
    516516    /* cbInstance */
    517517    sizeof(DRVSCSIHOST),
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r39855 r40282  
    28132813    PDM_DRVREG_CLASS_MEDIA,
    28142814    /* cMaxInstances */
    2815     ~0,
     2815    ~0U,
    28162816    /* cbInstance */
    28172817    sizeof(VBOXDISK),
  • trunk/src/VBox/Devices/Storage/UsbMsd.cpp

    r37795 r40282  
    16051605    0,
    16061606    /* cMaxInstances */
    1607     ~0,
     1607    ~0U,
    16081608    /* cbInstance */
    16091609    sizeof(USBMSD),
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r40280 r40282  
    55505550    PDM_DEVREG_CLASS_BUS_USB,
    55515551    /* cMaxInstances */
    5552     ~0,
     5552    ~0U,
    55535553    /* cbInstance */
    55545554    sizeof(OHCI),
  • trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp

    r35353 r40282  
    11161116    PDM_DRVREG_CLASS_USB,
    11171117    /* cMaxInstances */
    1118     ~0,
     1118    ~0U,
    11191119    /* cbInstance */
    11201120    sizeof(VUSBROOTHUB),
  • trunk/src/VBox/Devices/USB/USBProxyDevice.cpp

    r36479 r40282  
    10771077    0,
    10781078    /* cMaxInstances */
    1079     ~0,
     1079    ~0U,
    10801080    /* cbInstance */
    10811081    sizeof(USBPROXYDEV),
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp

    r36590 r40282  
    12621262    PDM_DRVREG_CLASS_DISPLAY,
    12631263    /* cMaxInstances */
    1264     ~0,
     1264    ~0U,
    12651265    /* cbInstance */
    12661266    sizeof(DRVMAINDISPLAY),
  • trunk/src/VBox/Frontends/VBoxBFE/KeyboardImpl.cpp

    r35346 r40282  
    272272    PDM_DRVREG_CLASS_KEYBOARD,
    273273    /* cMaxInstances */
    274     ~0,
     274    ~0U,
    275275    /* cbInstance */
    276276    sizeof(DRVMAINKEYBOARD),
  • trunk/src/VBox/Frontends/VBoxBFE/StatusImpl.cpp

    r35346 r40282  
    206206    PDM_DRVREG_CLASS_STATUS,
    207207    /* cMaxInstances */
    208     ~0,
     208    ~0U,
    209209    /* cbInstance */
    210210    sizeof(DRVMAINSTATUS),
  • trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.cpp

    r39892 r40282  
    444444    PDM_DRVREG_CLASS_VMMDEV,
    445445    /* cMaxInstances */
    446     ~0,
     446    ~0U,
    447447    /* cbInstance */
    448448    sizeof(DRVMAINVMMDEV),
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r34513 r40282  
    11841184       )
    11851185    {
    1186         SDL_Color clrFg = {(mSecureLabelColorFG & 0x00FF0000) >> 16,
    1187                            (mSecureLabelColorFG & 0x0000FF00) >> 8,
    1188                            mSecureLabelColorFG & 0x000000FF, 0};
     1186        SDL_Color clrFg = {(uint8_t)((mSecureLabelColorFG & 0x00FF0000) >> 16),
     1187                           (uint8_t)((mSecureLabelColorFG & 0x0000FF00) >> 8),
     1188                           (uint8_t)( mSecureLabelColorFG & 0x000000FF      ), 0};
    11891189        SDL_Surface *sText = (pTTF_RenderUTF8_Blended != NULL)
    11901190                                 ? pTTF_RenderUTF8_Blended(mLabelFont, mSecureLabelText.c_str(), clrFg)
  • trunk/src/VBox/Main/src-client/AudioSnifferInterface.cpp

    r35368 r40282  
    251251    PDM_DRVREG_CLASS_AUDIO,
    252252    /* cMaxInstances */
    253     ~0,
     253    ~0U,
    254254    /* cbInstance */
    255255    sizeof(DRVAUDIOSNIFFER),
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r40276 r40282  
    98199819    PDM_DRVREG_CLASS_STATUS,
    98209820    /* cMaxInstances */
    9821     ~0,
     9821    ~0U,
    98229822    /* cbInstance */
    98239823    sizeof(DRVMAINSTATUS),
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r40257 r40282  
    41974197    PDM_DRVREG_CLASS_DISPLAY,
    41984198    /* cMaxInstances */
    4199     ~0,
     4199    ~0U,
    42004200    /* cbInstance */
    42014201    sizeof(DRVMAINDISPLAY),
  • trunk/src/VBox/Main/src-client/KeyboardImpl.cpp

    r36724 r40282  
    416416    PDM_DRVREG_CLASS_KEYBOARD,
    417417    /* cMaxInstances */
    418     ~0,
     418    ~0U,
    419419    /* cbInstance */
    420420    sizeof(DRVMAINKEYBOARD),
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r38590 r40282  
    831831    PDM_DRVREG_CLASS_MOUSE,
    832832    /* cMaxInstances */
    833     ~0,
     833    ~0U,
    834834    /* cbInstance */
    835835    sizeof(DRVMAINMOUSE),
  • trunk/src/VBox/Main/src-client/PciRawDevImpl.cpp

    r37802 r40282  
    198198    PDM_DRVREG_CLASS_PCIRAW,
    199199    /* cMaxInstances */
    200     ~0,
     200    ~0U,
    201201    /* cbInstance */
    202202    sizeof(DRVMAINPCIRAWDEV),
  • trunk/src/VBox/Main/src-client/VMMDevInterface.cpp

    r39890 r40282  
    910910    PDM_DRVREG_CLASS_VMMDEV,
    911911    /* cMaxInstances */
    912     ~0,
     912    ~0U,
    913913    /* cbInstance */
    914914    sizeof(DRVMAINVMMDEV),
  • 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
  • trunk/src/recompiler/VBoxRecompiler.c

    r39699 r40282  
    199199{
    200200    /* cTimesMin,   cTimesMax,  enmCategory,            fFlags,                         pszName,        pszDescription */
    201     {  0,           ~0,         DBGCVAR_CAT_NUMBER,     0,                              "on/off",       "Boolean value/mnemonic indicating the new state." },
     201    {  0,           ~0U,        DBGCVAR_CAT_NUMBER,     0,                              "on/off",       "Boolean value/mnemonic indicating the new state." },
    202202};
    203203
Note: See TracChangeset for help on using the changeset viewer.

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