VirtualBox

Ignore:
Timestamp:
Aug 6, 2016 4:00:44 PM (8 years ago)
Author:
vboxsync
Message:

GA/NT/VBoxTray: warnings

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDataObject.cpp

    r62679 r63104  
    208208        LogFlowFunc(("Waiting for event ...\n"));
    209209        int rc2 = RTSemEventWait(mSemEvent, RT_INDEFINITE_WAIT);
    210         LogFlowFunc(("rc=%Rrc, mStatus=%ld\n", rc2, mStatus));
     210        LogFlowFunc(("rc2=%Rrc, mStatus=%ld\n", rc2, mStatus)); NOREF(rc2);
    211211    }
    212212
     
    441441STDMETHODIMP VBoxDnDDataObject::GetDataHere(LPFORMATETC pFormatEtc, LPSTGMEDIUM pMedium)
    442442{
     443    RT_NOREF(pFormatEtc, pMedium);
    443444    LogFlowFunc(("\n"));
    444445    return DATA_E_FORMATETC;
     
    458459}
    459460
    460 STDMETHODIMP VBoxDnDDataObject::GetCanonicalFormatEtc(LPFORMATETC pFormatEct, LPFORMATETC pFormatEtcOut)
    461 {
     461STDMETHODIMP VBoxDnDDataObject::GetCanonicalFormatEtc(LPFORMATETC pFormatEtc, LPFORMATETC pFormatEtcOut)
     462{
     463    RT_NOREF(pFormatEtc);
    462464    LogFlowFunc(("\n"));
    463465
     
    467469}
    468470
    469 STDMETHODIMP VBoxDnDDataObject::SetData(LPFORMATETC pFormatEtc, LPSTGMEDIUM pMedium,  BOOL fRelease)
    470 {
     471STDMETHODIMP VBoxDnDDataObject::SetData(LPFORMATETC pFormatEtc, LPSTGMEDIUM pMedium, BOOL fRelease)
     472{
     473    RT_NOREF(pFormatEtc, pMedium, fRelease);
    471474    return E_NOTIMPL;
    472475}
     
    474477STDMETHODIMP VBoxDnDDataObject::EnumFormatEtc(DWORD dwDirection, IEnumFORMATETC **ppEnumFormatEtc)
    475478{
    476     LogFlowFunc(("dwDirection=%RI32, mcFormats=%RI32, mpFormatEtc=%p\n",
    477                  dwDirection, mcFormats, mpFormatEtc));
     479    LogFlowFunc(("dwDirection=%RI32, mcFormats=%RI32, mpFormatEtc=%p\n", dwDirection, mcFormats, mpFormatEtc));
    478480
    479481    HRESULT hr;
    480482    if (dwDirection == DATADIR_GET)
    481     {
    482483        hr = VBoxDnDEnumFormatEtc::CreateEnumFormatEtc(mcFormats, mpFormatEtc, ppEnumFormatEtc);
    483     }
    484484    else
    485485        hr = E_NOTIMPL;
     
    489489}
    490490
    491 STDMETHODIMP VBoxDnDDataObject::DAdvise(LPFORMATETC pFormatEtc, DWORD advf, IAdviseSink *pAdvSink, DWORD *pdwConnection)
    492 {
     491STDMETHODIMP VBoxDnDDataObject::DAdvise(LPFORMATETC pFormatEtc, DWORD fAdvise, IAdviseSink *pAdvSink, DWORD *pdwConnection)
     492{
     493    RT_NOREF(pFormatEtc, fAdvise, pAdvSink, pdwConnection);
    493494    return OLE_E_ADVISENOTSUPPORTED;
    494495}
     
    496497STDMETHODIMP VBoxDnDDataObject::DUnadvise(DWORD dwConnection)
    497498{
     499    RT_NOREF(dwConnection);
    498500    return OLE_E_ADVISENOTSUPPORTED;
    499501}
     
    501503STDMETHODIMP VBoxDnDDataObject::EnumDAdvise(IEnumSTATDATA **ppEnumAdvise)
    502504{
     505    RT_NOREF(ppEnumAdvise);
    503506    return OLE_E_ADVISENOTSUPPORTED;
    504507}
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropTarget.cpp

    r62679 r63104  
    4343{
    4444    int rc = RTSemEventCreate(&hEventDrop);
    45     LogFlowFunc(("rc=%Rrc\n", rc));
     45    LogFlowFunc(("rc=%Rrc\n", rc)); NOREF(rc);
    4646}
    4747
     
    129129 */
    130130
    131 STDMETHODIMP VBoxDnDDropTarget::DragEnter(IDataObject *pDataObject, DWORD grfKeyState,
    132                                           POINTL pt, DWORD *pdwEffect)
    133 {
     131STDMETHODIMP VBoxDnDDropTarget::DragEnter(IDataObject *pDataObject, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect)
     132{
     133    RT_NOREF(pt);
    134134    AssertPtrReturn(pDataObject, E_INVALIDARG);
    135135    AssertPtrReturn(pdwEffect, E_INVALIDARG);
     
    229229STDMETHODIMP VBoxDnDDropTarget::DragOver(DWORD grfKeyState, POINTL pt, DWORD *pdwEffect)
    230230{
     231    RT_NOREF(pt);
    231232    AssertPtrReturn(pdwEffect, E_INVALIDARG);
    232233
     
    265266}
    266267
    267 STDMETHODIMP VBoxDnDDropTarget::Drop(IDataObject *pDataObject,
    268                                      DWORD grfKeyState, POINTL pt, DWORD *pdwEffect)
    269 {
     268STDMETHODIMP VBoxDnDDropTarget::Drop(IDataObject *pDataObject, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect)
     269{
     270    RT_NOREF(pt);
    270271    AssertPtrReturn(pDataObject, E_INVALIDARG);
    271272    AssertPtrReturn(pdwEffect,   E_INVALIDARG);
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp

    r62679 r63104  
    911911    int l;
    912912
    913     char **pClientInfoMap[LA_UTCINFO_CLIENT_INFO_LAST + 1] = {
    914                                                                &pCtx->activeClient.pszPropName,
    915                                                                &pCtx->activeClient.pszPropIPAddr,
    916                                                                &pCtx->activeClient.pszPropLocation,
    917                                                                &pCtx->activeClient.pszPropOtherInfo,
    918                                                              };
    919 
    920     pCtx->activeClient.u32LastAttach = ~0;
     913    char **pClientInfoMap[LA_UTCINFO_CLIENT_INFO_LAST + 1] =
     914    {
     915        &pCtx->activeClient.pszPropName,
     916        &pCtx->activeClient.pszPropIPAddr,
     917        &pCtx->activeClient.pszPropLocation,
     918        &pCtx->activeClient.pszPropOtherInfo,
     919    };
     920
     921    pCtx->activeClient.u32LastAttach = UINT32_MAX;
    921922    pCtx->activeClient.u64LastAttachTimestamp = u64ActiveClientTS;
    922923
     
    10831084
    10841085    uint64_t u64Timestamp = 0;
    1085     uint32_t u32Attach = ~0;
     1086    uint32_t u32Attach = UINT32_MAX;
    10861087
    10871088    int rc = laGetUint32(pCtx->u32GuestPropHandle,
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