VirtualBox

Changeset 62787 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 1, 2016 7:01:38 AM (8 years ago)
Author:
vboxsync
Message:

HostServices: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/service.cpp

    r62489 r62787  
     1/* $Id$ */
    12/** @file
    2  * Shared Folders: Host service entry points.
     3 * Shared Folders - Host service entry points.
    34 */
    45
     
    3233
    3334
    34 /* Shared Folders Host Service.
     35/** @page pg_shfl_svc   Shared Folders Host Service
    3536 *
    3637 * Shared Folders map a host file system to guest logical filesystem.
     
    8485static DECLCALLBACK(int) svcConnect (void *, uint32_t u32ClientID, void *pvClient)
    8586{
     87    RT_NOREF2(u32ClientID, pvClient);
    8688    int rc = VINF_SUCCESS;
    87 
    88     NOREF(u32ClientID);
    89     NOREF(pvClient);
    9089
    9190    Log(("SharedFolders host service: connected, u32ClientID = %u\n", u32ClientID));
     
    9695static DECLCALLBACK(int) svcDisconnect (void *, uint32_t u32ClientID, void *pvClient)
    9796{
     97    RT_NOREF1(u32ClientID);
    9898    int rc = VINF_SUCCESS;
    9999    SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient;
     
    114114{
    115115#ifndef UNITTEST  /* Read this as not yet tested */
     116    RT_NOREF1(u32ClientID);
    116117    SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient;
    117118
     
    169170    }
    170171
     172#else
     173    RT_NOREF3(u32ClientID, pvClient, pSSM);
    171174#endif
    172175    return VINF_SUCCESS;
     
    176179{
    177180#ifndef UNITTEST  /* Read this as not yet tested */
     181    RT_NOREF1(u32ClientID);
    178182    uint32_t        nrMappings;
    179183    SHFLCLIENTDATA *pClient = (SHFLCLIENTDATA *)pvClient;
     
    286290    }
    287291    Log(("SharedFolders host service: successfully loaded state\n"));
     292#else
     293    RT_NOREF3(u32ClientID, pvClient, pSSM);
    288294#endif
    289295    return VINF_SUCCESS;
     
    292298static DECLCALLBACK(void) svcCall (void *, VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, void *pvClient, uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[])
    293299{
     300    RT_NOREF1(u32ClientID);
    294301    int rc = VINF_SUCCESS;
    295302
     
    300307    bool fAsynchronousProcessing = false;
    301308
    302 #ifdef DEBUG
    303     uint32_t i;
    304 
    305     for (i = 0; i < cParms; i++)
     309#ifdef LOG_ENABLED
     310    for (uint32_t i = 0; i < cParms; i++)
    306311    {
    307312        /** @todo parameters other than 32 bit */
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