VirtualBox

Changeset 63384 in vbox


Ignore:
Timestamp:
Aug 12, 2016 6:57:52 PM (8 years ago)
Author:
vboxsync
Message:

Frontends: warnings (gcc)

Location:
trunk/src/VBox/Frontends
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostart-posix.cpp

    r62493 r63384  
    131131    ULONG ulLastPercent = 0;
    132132
    133     ULONG ulLastOperationPercent = (ULONG)-1;
    134 
    135     ULONG ulLastOperation = (ULONG)-1;
    136133    Bstr bstrOperationDescription;
    137134
     
    245242DECLHIDDEN(void) autostartSvcOsLogStr(const char *pszMsg, AUTOSTARTLOGTYPE enmLogType)
    246243{
    247     va_list args;
    248 
    249244    if (   enmLogType == AUTOSTARTLOGTYPE_VERBOSE
    250245        && !g_fVerbose)
  • trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp

    r63290 r63384  
    305305}
    306306
     307#if 0 /** @todo signal handler installer / uninstallers are unused. */
    307308/**
    308309 * Installs a custom signal handler to get notified
     
    327328#endif
    328329}
     330#endif /* unused */
    329331
    330332/**
  • trunk/src/VBox/Frontends/VBoxBugReport/VBoxBugReport.cpp

    r61864 r63384  
    4444
    4545#ifndef RT_OS_WINDOWS
    46 /* @todo Replace with platform-specific implementations. */
    47 void createBugReportOsSpecific(BugReport* report, const char *pszHome)
    48 {
     46/** @todo Replace with platform-specific implementations. */
     47void createBugReportOsSpecific(BugReport *pReport, const char *pszHome)
     48{
     49    RT_NOREF(pReport, pszHome);
    4950}
    5051#endif /* !RT_OS_WINDOWS */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r63300 r63384  
    453453static RTEXITCODE CmdLoadSyms(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    454454{
     455    RT_NOREF(aSession);
    455456    HRESULT rc;
    456457
     
    529530static RTEXITCODE CmdLoadMap(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    530531{
     532    RT_NOREF(aSession);
    531533    HRESULT rc;
    532534
     
    614616static RTEXITCODE CmdSetHDUUID(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    615617{
     618    RT_NOREF(aVirtualBox, aSession);
    616619    Guid uuid;
    617620    RTUUID rtuuid;
     
    692695static RTEXITCODE CmdDumpHDInfo(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    693696{
     697    RT_NOREF(aVirtualBox, aSession);
     698
    694699    /* we need exactly one parameter: the image file */
    695700    if (argc != 1)
     
    10721077static RTEXITCODE CmdListPartitions(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    10731078{
     1079    RT_NOREF(aVirtualBox, aSession);
    10741080    Utf8Str rawdisk;
    10751081
     
    11461152static RTEXITCODE CmdCreateRawVMDK(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    11471153{
     1154    RT_NOREF(aVirtualBox, aSession);
    11481155    HRESULT rc = S_OK;
    11491156    Utf8Str filename;
     
    18651872static RTEXITCODE CmdRenameVMDK(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    18661873{
     1874    RT_NOREF(aVirtualBox, aSession);
    18671875    Utf8Str src;
    18681876    Utf8Str dst;
     
    19311939static RTEXITCODE CmdConvertToRaw(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    19321940{
     1941    RT_NOREF(aVirtualBox, aSession);
    19331942    Utf8Str srcformat;
    19341943    Utf8Str src;
     
    20862095static RTEXITCODE CmdConvertHardDisk(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    20872096{
     2097    RT_NOREF(aVirtualBox, aSession);
    20882098    Utf8Str srcformat;
    20892099    Utf8Str dstformat;
     
    22172227static RTEXITCODE CmdRepairHardDisk(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    22182228{
     2229    RT_NOREF(aVirtualBox, aSession);
    22192230    Utf8Str image;
    22202231    Utf8Str format;
     
    24352446static RTEXITCODE CmdGeneratePasswordHash(int argc, char **argv, ComPtr<IVirtualBox> aVirtualBox, ComPtr<ISession> aSession)
    24362447{
     2448    RT_NOREF(aVirtualBox, aSession);
     2449
    24372450    /* one parameter, the password to hash */
    24382451    if (argc != 1)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r63314 r63384  
    20162016}
    20172017
     2018#if 0 /* unused */
    20182019/**
    20192020 * Checks whether a specific directory exists on the destination, based
     
    20322033                             pszDir, fExists);
    20332034}
     2035#endif /* unused */
    20342036
    20352037/**
     
    20832085}
    20842086
     2087#if 0 /* unused */
    20852088/**
    20862089 * Checks whether a specific file exists on the destination, based on the
     
    20992102                              pszFile, fExists);
    21002103}
     2104#endif /* unused */
    21012105
    21022106/**
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp

    r62493 r63384  
    121121}
    122122
    123 static Bstr getObjectName(ComPtr<IVirtualBox> aVirtualBox,
    124                                   ComPtr<IUnknown> aObject)
     123static Bstr getObjectName(ComPtr<IUnknown> aObject)
    125124{
    126125    HRESULT rc;
     
    141140}
    142141
    143 static void listAffectedMetrics(ComPtr<IVirtualBox> aVirtualBox,
    144                                 ComSafeArrayIn(IPerformanceMetric*, aMetrics))
     142static void listAffectedMetrics(ComSafeArrayIn(IPerformanceMetric*, aMetrics))
    145143{
    146144    HRESULT rc;
     
    158156            CHECK_ERROR(metrics[i], COMGETTER(MetricName)(metricName.asOutParam()));
    159157            RTPrintf("%-10ls %-20ls\n",
    160                 getObjectName(aVirtualBox, object).raw(), metricName.raw());
     158                getObjectName(object).raw(), metricName.raw());
    161159        }
    162160        RTPrintf("\n");
     
    210208        CHECK_ERROR(metricInfo[i], COMGETTER(Description)(description.asOutParam()));
    211209        RTPrintf("%-15ls %-40ls %-4ls %10d %10d %10u %10u %ls\n",
    212             getObjectName(aVirtualBox, object).raw(), metricName.raw(), unit.raw(),
     210            getObjectName(object).raw(), metricName.raw(), unit.raw(),
    213211            minimum, maximum, period, count, description.raw());
    214212    }
     
    273271
    274272    if (listMatches)
    275         listAffectedMetrics(aVirtualBox,
    276                             ComSafeArrayAsInParam(affectedMetrics));
     273        listAffectedMetrics(ComSafeArrayAsInParam(affectedMetrics));
    277274
    278275    return RTEXITCODE_SUCCESS;
     
    321318        Bstr metricUnit(retUnits[i]);
    322319        Bstr metricName(retNames[i]);
    323         RTPrintf("%-15ls %-40ls ", getObjectName(aVirtualBox, retObjects[i]).raw(), metricName.raw());
     320        RTPrintf("%-15ls %-40ls ", getObjectName(retObjects[i]).raw(), metricName.raw());
    324321        const char *separator = "";
    325322        for (unsigned j = 0; j < retLengths[i]; j++)
     
    469466
    470467    if (listMatches)
    471         listAffectedMetrics(aVirtualBox,
    472                             ComSafeArrayAsInParam(affectedMetrics));
     468        listAffectedMetrics(ComSafeArrayAsInParam(affectedMetrics));
    473469    if (!affectedMetrics.size())
    474470        return RTEXITCODE_FAILURE;
     
    516512            Bstr metricUnit(retUnits[j]);
    517513            Bstr metricName(retNames[j]);
    518             RTPrintf("%-12s %-10ls %-20ls ", ts, getObjectName(aVirtualBox, retObjects[j]).raw(), metricName.raw());
     514            RTPrintf("%-12s %-10ls %-20ls ", ts, getObjectName(retObjects[j]).raw(), metricName.raw());
    519515            const char *separator = "";
    520516            for (unsigned k = 0; k < retLengths[j]; k++)
     
    576572
    577573    if (listMatches)
    578         listAffectedMetrics(aVirtualBox,
    579                             ComSafeArrayAsInParam(affectedMetrics));
     574        listAffectedMetrics(ComSafeArrayAsInParam(affectedMetrics));
    580575
    581576    return RTEXITCODE_SUCCESS;
     
    619614
    620615    if (listMatches)
    621         listAffectedMetrics(aVirtualBox,
    622                             ComSafeArrayAsInParam(affectedMetrics));
     616        listAffectedMetrics(ComSafeArrayAsInParam(affectedMetrics));
    623617
    624618    return RTEXITCODE_SUCCESS;
     
    654648}
    655649
    656 #endif /* VBOX_ONLY_DOCS */
    657 
     650#endif /* !VBOX_ONLY_DOCS */
     651
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r63298 r63384  
    629629STDMETHODIMP VBoxSDLFB::Notify3DEvent(ULONG uType, ComSafeArrayIn(BYTE, aData))
    630630{
    631     RT_NOREF(uType, aData);
     631    RT_NOREF(uType); ComSafeArrayNoRef(aData);
    632632    return E_NOTIMPL;
    633633}
  • trunk/src/VBox/Frontends/VBoxSDL/Helper.cpp

    r62493 r63384  
    5454 *                  of the event queue socket
    5555 */
    56 DECLCALLBACK(int) xpcomEventThread(RTTHREAD thread, void *pvUser)
     56DECLCALLBACK(int) xpcomEventThread(RTTHREAD hThreadSelf, void *pvUser)
    5757{
     58    RT_NOREF(hThreadSelf);
    5859    int eqFD = (intptr_t)pvUser;
    5960    unsigned cErrors = 0;
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r63298 r63384  
    722722void signal_handler_SIGUSR1(int sig, siginfo_t *info, void *secret)
    723723{
     724    RT_NOREF(info, secret);
     725
    724726    /* only SIGUSR1 is interesting */
    725727    if (sig == SIGUSR1)
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