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