Commit 501d7879 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

ActiveX: multiple warning killing

parent a3f4814b
......@@ -93,7 +93,7 @@ STDMETHODIMP VLCDataObject::EnumDAdvise(IEnumSTATDATA **ppenumAdvise)
return _p_adviseHolder->EnumAdvise(ppenumAdvise);
};
STDMETHODIMP VLCDataObject::EnumFormatEtc(DWORD dwDirection,
STDMETHODIMP VLCDataObject::EnumFormatEtc(DWORD,
IEnumFORMATETC **ppEnum)
{
if( NULL == ppEnum )
......@@ -149,7 +149,7 @@ STDMETHODIMP VLCDataObject::GetData(LPFORMATETC pFormatEtc, LPSTGMEDIUM pMedium)
return result;
};
STDMETHODIMP VLCDataObject::GetDataHere(LPFORMATETC pFormatEtc,
STDMETHODIMP VLCDataObject::GetDataHere(LPFORMATETC,
LPSTGMEDIUM pMedium)
{
if( NULL == pMedium )
......@@ -259,8 +259,8 @@ STDMETHODIMP VLCDataObject::QueryGetData(LPFORMATETC pFormatEtc)
return S_OK;
};
STDMETHODIMP VLCDataObject::SetData(LPFORMATETC pFormatEtc,
LPSTGMEDIUM pMedium, BOOL fRelease)
STDMETHODIMP VLCDataObject::SetData(LPFORMATETC,
LPSTGMEDIUM, BOOL)
{
return E_NOTIMPL;
};
......
......@@ -439,6 +439,7 @@ STDAPI_(int) WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw)
STDAPI_(BOOL) DllMain(HANDLE hModule, DWORD fdwReason, LPVOID lpReserved )
{
(void)lpReserved;
switch( fdwReason )
{
case DLL_PROCESS_ATTACH:
......
......@@ -23,7 +23,7 @@
#ifndef __OBJECTSAFETY_H__
#define __OBJECTSAFETY_H__
#if HAVE_OBJSAFE_HEADER
#ifdef HAVE_OBJSAFE_HEADER
/*
** at last, a version of mingw that supports this header
*/
......
......@@ -36,7 +36,7 @@ STDMETHODIMP VLCOleControl::GetControlInfo(CONTROLINFO *pCI)
return S_OK;
};
STDMETHODIMP VLCOleControl::OnMnemonic(LPMSG pMsg)
STDMETHODIMP VLCOleControl::OnMnemonic(LPMSG)
{
return S_OK;
};
......
......@@ -37,12 +37,12 @@ STDMETHODIMP VLCOleInPlaceActiveObject::GetWindow(HWND *pHwnd)
return E_FAIL;
};
STDMETHODIMP VLCOleInPlaceActiveObject::EnableModeless(BOOL fEnable)
STDMETHODIMP VLCOleInPlaceActiveObject::EnableModeless(BOOL)
{
return S_OK;
};
STDMETHODIMP VLCOleInPlaceActiveObject::ContextSensitiveHelp(BOOL fEnterMode)
STDMETHODIMP VLCOleInPlaceActiveObject::ContextSensitiveHelp(BOOL)
{
return E_NOTIMPL;
};
......@@ -72,17 +72,17 @@ STDMETHODIMP VLCOleInPlaceActiveObject::TranslateAccelerator(LPMSG lpmsg)
return hr;
};
STDMETHODIMP VLCOleInPlaceActiveObject::OnFrameWindowActivate(BOOL fActivate)
STDMETHODIMP VLCOleInPlaceActiveObject::OnFrameWindowActivate(BOOL)
{
return S_OK;
};
STDMETHODIMP VLCOleInPlaceActiveObject::OnDocWindowActivate(BOOL fActivate)
STDMETHODIMP VLCOleInPlaceActiveObject::OnDocWindowActivate(BOOL)
{
return S_OK;
};
STDMETHODIMP VLCOleInPlaceActiveObject::ResizeBorder(LPCRECT prcBorder, LPOLEINPLACEUIWINDOW pUIWindow, BOOL fFrameWindow)
STDMETHODIMP VLCOleInPlaceActiveObject::ResizeBorder(LPCRECT, LPOLEINPLACEUIWINDOW, BOOL)
{
return S_OK;
};
......
......@@ -39,7 +39,7 @@ STDMETHODIMP VLCOleInPlaceObject::GetWindow(HWND *pHwnd)
return E_FAIL;
};
STDMETHODIMP VLCOleInPlaceObject::ContextSensitiveHelp(BOOL fEnterMode)
STDMETHODIMP VLCOleInPlaceObject::ContextSensitiveHelp(BOOL)
{
return E_NOTIMPL;
};
......
......@@ -58,7 +58,7 @@ STDMETHODIMP VLCOleObject::Close(DWORD dwSaveOption)
};
STDMETHODIMP VLCOleObject::DoVerb(LONG iVerb, LPMSG lpMsg, LPOLECLIENTSITE pActiveSite,
LONG lIndex, HWND hwndParent, LPCRECT lprcPosRect)
LONG, HWND hwndParent, LPCRECT lprcPosRect)
{
switch( iVerb )
{
......@@ -250,7 +250,7 @@ STDMETHODIMP VLCOleObject::GetClientSite(LPOLECLIENTSITE *ppClientSite)
return S_OK;
};
STDMETHODIMP VLCOleObject::GetClipboardData(DWORD dwReserved, LPDATAOBJECT *ppDataObject)
STDMETHODIMP VLCOleObject::GetClipboardData(DWORD, LPDATAOBJECT *ppDataObject)
{
return _p_instance->pUnkOuter->QueryInterface(IID_IDataObject, (void **)ppDataObject);
};
......@@ -314,7 +314,7 @@ STDMETHODIMP VLCOleObject::GetUserType(DWORD dwFormOfType, LPOLESTR *pszUserType
dwFormOfType, pszUserType);
};
STDMETHODIMP VLCOleObject::InitFromData(LPDATAOBJECT pDataObject, BOOL fCreation, DWORD dwReserved)
STDMETHODIMP VLCOleObject::InitFromData(LPDATAOBJECT, BOOL, DWORD)
{
return E_NOTIMPL;
};
......@@ -339,7 +339,7 @@ STDMETHODIMP VLCOleObject::SetClientSite(LPOLECLIENTSITE pClientSite)
return S_OK;
};
STDMETHODIMP VLCOleObject::SetColorScheme(LOGPALETTE *pLogpal)
STDMETHODIMP VLCOleObject::SetColorScheme(LOGPALETTE *)
{
return E_NOTIMPL;
};
......@@ -379,12 +379,12 @@ STDMETHODIMP VLCOleObject::SetExtent(DWORD dwDrawAspect, SIZEL *pSizel)
return E_NOTIMPL;
};
STDMETHODIMP VLCOleObject::SetHostNames(LPCOLESTR szContainerApp, LPCOLESTR szContainerObj)
STDMETHODIMP VLCOleObject::SetHostNames(LPCOLESTR, LPCOLESTR)
{
return S_OK;
};
STDMETHODIMP VLCOleObject::SetMoniker(DWORD dwWhichMoniker, LPMONIKER pMoniker)
STDMETHODIMP VLCOleObject::SetMoniker(DWORD, LPMONIKER pMoniker)
{
return _p_advise_holder->SendOnRename(pMoniker);
};
......
......@@ -215,7 +215,7 @@ STDMETHODIMP VLCPersistPropertyBag::Load(LPPROPERTYBAG pPropBag, LPERRORLOG pErr
return _p_instance->onLoad();
};
STDMETHODIMP VLCPersistPropertyBag::Save(LPPROPERTYBAG pPropBag, BOOL fClearDirty, BOOL fSaveAllProperties)
STDMETHODIMP VLCPersistPropertyBag::Save(LPPROPERTYBAG pPropBag, BOOL fClearDirty, BOOL)
{
if( NULL == pPropBag )
return E_INVALIDARG;
......
......@@ -38,7 +38,7 @@ STDMETHODIMP VLCPersistStorage::IsDirty(void)
return _p_instance->isDirty() ? S_OK : S_FALSE;
};
STDMETHODIMP VLCPersistStorage::InitNew(LPSTORAGE pStg)
STDMETHODIMP VLCPersistStorage::InitNew(LPSTORAGE)
{
return _p_instance->onInit();
};
......@@ -94,7 +94,7 @@ STDMETHODIMP VLCPersistStorage::Save(LPSTORAGE pStg, BOOL fSameAsLoad)
return result;
};
STDMETHODIMP VLCPersistStorage::SaveCompleted(IStorage *pStg)
STDMETHODIMP VLCPersistStorage::SaveCompleted(IStorage *)
{
return S_OK;
};
......
......@@ -239,7 +239,7 @@ public:
// IPropertyBag methods
STDMETHODIMP Read(LPCOLESTR pszPropName, VARIANT *pVar, IErrorLog *pErrorLog)
STDMETHODIMP Read(LPCOLESTR pszPropName, VARIANT *pVar, IErrorLog *)
{
if( (NULL == pszPropName) || (NULL == pVar) )
return E_POINTER;
......
......@@ -27,9 +27,9 @@
using namespace std;
STDMETHODIMP VLCViewObject::Draw(DWORD dwAspect, LONG lindex, PVOID pvAspect,
DVTARGETDEVICE *ptd, HDC hicTargetDev, HDC hdcDraw, LPCRECTL lprcBounds,
LPCRECTL lprcWBounds, BOOL(CALLBACK *pfnContinue)(ULONG_PTR), ULONG_PTR dwContinue)
STDMETHODIMP VLCViewObject::Draw(DWORD dwAspect, LONG, PVOID,
DVTARGETDEVICE *ptd, HDC hicTargetDev, HDC hdcDraw, LPCRECTL lprcBounds,
LPCRECTL lprcWBounds, BOOL(CALLBACK *)(ULONG_PTR), ULONG_PTR )
{
if( dwAspect & DVASPECT_CONTENT )
{
......@@ -67,8 +67,8 @@ STDMETHODIMP VLCViewObject::Draw(DWORD dwAspect, LONG lindex, PVOID pvAspect,
return E_NOTIMPL;
};
STDMETHODIMP VLCViewObject::Freeze(DWORD dwAspect, LONG lindex,
PVOID pvAspect, LPDWORD pdwFreeze)
STDMETHODIMP VLCViewObject::Freeze(DWORD, LONG,
PVOID, LPDWORD)
{
return E_NOTIMPL;
};
......@@ -92,8 +92,8 @@ STDMETHODIMP VLCViewObject::GetAdvise(LPDWORD pdwAspect, LPDWORD padvf,
return S_OK;
};
STDMETHODIMP VLCViewObject::GetColorSet(DWORD dwAspect, LONG lindex,
PVOID pvAspect, DVTARGETDEVICE *ptd, HDC hicTargetDev, LPLOGPALETTE *ppColorSet)
STDMETHODIMP VLCViewObject::GetColorSet(DWORD, LONG,
PVOID, DVTARGETDEVICE *, HDC, LPLOGPALETTE *)
{
return S_FALSE;
};
......@@ -119,13 +119,13 @@ STDMETHODIMP VLCViewObject::SetAdvise(DWORD dwAspect, DWORD advf,
return S_OK;
};
STDMETHODIMP VLCViewObject::Unfreeze(DWORD dwFreeze)
STDMETHODIMP VLCViewObject::Unfreeze(DWORD)
{
return E_NOTIMPL;
};
STDMETHODIMP VLCViewObject::GetExtent(DWORD dwAspect, LONG lindex,
DVTARGETDEVICE *ptd, LPSIZEL lpSizel)
STDMETHODIMP VLCViewObject::GetExtent(DWORD dwAspect, LONG,
DVTARGETDEVICE *, LPSIZEL lpSizel)
{
if( dwAspect & DVASPECT_CONTENT )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment