VirtualBox

Changeset 40205 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Feb 22, 2012 8:30:14 AM (13 years ago)
Author:
vboxsync
Message:

Main: gcc warnings

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestImpl.cpp

    r40084 r40205  
    196196
    197197    ULONG aGuestStats[GUESTSTATTYPE_MAX];
     198    RT_ZERO(aGuestStats);
    198199    ULONG validStats = mGuestValidStats;
    199200    /* Check if we have anything to report */
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r40201 r40205  
    13701370     * preferred to remove the space and brackets too).  We also remove all
    13711371     * characters which need UTF-16 surrogate pairs for Windows's benefit. */
     1372#ifdef RT_STRICT
    13721373    RTUNICP aCpSet[] =
    13731374        { ' ', ' ', '(', ')', '-', '.', '0', '9', 'A', 'Z', 'a', 'z', '_', '_',
    13741375          0xa0, 0xd7af, '\0' };
     1376#endif
    13751377    char *pszName = strName.mutableRaw();
    13761378    Assert(RTStrPurgeComplementSet(pszName, aCpSet, '_') >= 0);
     
    13881390}
    13891391
     1392#ifdef DEBUG
    13901393/** Simple unit test/operation examples for sanitiseMachineFilename(). */
    13911394static unsigned testSanitiseMachineFilename(void (*pfnPrintf)(const char *, ...))
     
    14241427}
    14251428
    1426 #ifdef DEBUG
    14271429/** @todo Proper testcase. */
    14281430/** @todo Do we have a better method of doing init functions? */
  • trunk/src/VBox/Main/testcase/tstGuestCtrlParseBuffer.cpp

    r39790 r40205  
    137137    };
    138138
    139     int iTest = 0;
     139    unsigned iTest = 0;
    140140    for (iTest; iTest < RT_ELEMENTS(aTest); iTest++)
    141141    {
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