summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-01-26 16:45:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-01-26 17:06:41 +0100
commitd48e05425055e16c28556aefd15838ae7461ec66 (patch)
tree43fcbf5fe45f35903d3d9113f6301b7474fa3ff2
parent7345aaf69a9d88cde3deabb6818a00938d8ad392 (diff)
-Werror,-Wunused-parameter (clang-cl)
Change-Id: I1ac58714e04b995ef5229888f0c427104c001318
-rw-r--r--extensions/source/ole/unoobjw.cxx2
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx4
-rw-r--r--soltools/mkdepend/include.c2
-rw-r--r--winaccessibility/source/service/AccComponentEventListener.cxx6
-rw-r--r--winaccessibility/source/service/AccContainerEventListener.cxx4
-rw-r--r--winaccessibility/source/service/AccListEventListener.cxx2
-rw-r--r--winaccessibility/source/service/AccParagraphEventListener.cxx2
7 files changed, 12 insertions, 10 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index f33e79f258d3..2f1ad7feaf79 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -1556,7 +1556,7 @@ STDMETHODIMP UnoObjectWrapperRemoteOpt::Invoke ( DISPID dispidMember, REFIID /*
}
HRESULT UnoObjectWrapperRemoteOpt::methodInvoke( DISPID /*dispidMember*/, DISPPARAMS * /*pdispparams*/, VARIANT * /*pvarResult*/,
- EXCEPINFO * /*pexcepinfo*/, unsigned int * /*puArgErr*/, Sequence<Any> params)
+ EXCEPINFO * /*pexcepinfo*/, unsigned int * /*puArgErr*/, Sequence<Any>)
{
return S_OK;
}
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index ae49deaf98fc..e148b2677181 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -23,7 +23,7 @@
#include <sal/types.h>
#include <config_poppler.h>
-#if defined __GNUC__
+#if defined __GNUC__ || defined __clang__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
#elif defined _MSC_VER
@@ -39,7 +39,7 @@
#include "GlobalParams.h"
#include "PDFDoc.h"
-#if defined __GNUC__
+#if defined __GNUC__ || defined __clang__
# pragma GCC diagnostic pop
#elif defined _MSC_VER
#pragma warning(pop)
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c
index cb1cc17750eb..6712b1a9ce78 100644
--- a/soltools/mkdepend/include.c
+++ b/soltools/mkdepend/include.c
@@ -257,6 +257,8 @@ int issymbolic(char *dir, char *component)
fatalerr("out of .. dirs, increase MAXDIRS\n");
return TRUE;
}
+#else
+ (void)dir; (void)component;
#endif
return FALSE;
}
diff --git a/winaccessibility/source/service/AccComponentEventListener.cxx b/winaccessibility/source/service/AccComponentEventListener.cxx
index 22fa47d63317..39fb61103cf7 100644
--- a/winaccessibility/source/service/AccComponentEventListener.cxx
+++ b/winaccessibility/source/service/AccComponentEventListener.cxx
@@ -91,7 +91,7 @@ throw (css::uno::RuntimeException)
* @param oldValue the old value of the source of event
* @param newValue the new value of the source of event
*/
-void AccComponentEventListener::HandleValueChangedEvent(Any oldValue, Any newValue)
+void AccComponentEventListener::HandleValueChangedEvent(Any, Any)
{
pAgent->UpdateValue(m_xAccessible.get());
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_VALUECHANGE, m_xAccessible.get());
@@ -112,7 +112,7 @@ void AccComponentEventListener::HandleActionChangedEvent()
* @param oldValue the old value of the source of event
* @param newValue the new value of the source of event
*/
-void AccComponentEventListener::HandleTextChangedEvent(Any oldValue, Any newValue)
+void AccComponentEventListener::HandleTextChangedEvent(Any, Any newValue)
{
pAgent->UpdateValue(m_xAccessible.get(), newValue);
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_VALUECHANGE, m_xAccessible.get());
@@ -124,7 +124,7 @@ void AccComponentEventListener::HandleTextChangedEvent(Any oldValue, Any newValu
* @param oldValue the old value of the source of event
* @param newValue the new value of the source of event
*/
-void AccComponentEventListener::HandleCaretChangedEvent(Any oldValue, Any newValue)
+void AccComponentEventListener::HandleCaretChangedEvent(Any, Any)
{
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_CARETCHANGE, m_xAccessible.get());
}
diff --git a/winaccessibility/source/service/AccContainerEventListener.cxx b/winaccessibility/source/service/AccContainerEventListener.cxx
index f882ea49ccf9..194bf3ed0424 100644
--- a/winaccessibility/source/service/AccContainerEventListener.cxx
+++ b/winaccessibility/source/service/AccContainerEventListener.cxx
@@ -195,7 +195,7 @@ void AccContainerEventListener::HandleAllChildrenChangedEvent()
/**
* handle the TEXT_CHANGED event
*/
-void AccContainerEventListener::HandleTextChangedEvent(Any oldValue, Any newValue)
+void AccContainerEventListener::HandleTextChangedEvent(Any, Any newValue)
{
pAgent->UpdateValue(m_xAccessible.get(), newValue);
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_TEXTCHANGE, m_xAccessible.get());
@@ -421,7 +421,7 @@ void AccContainerEventListener::FireStateFocusedChange(bool enable)
* @param oldValue the old value of the source of event
* @param newValue the new value of the source of event
*/
-void AccContainerEventListener::HandleValueChangedEvent(Any oldValue, Any newValue)
+void AccContainerEventListener::HandleValueChangedEvent(Any, Any)
{
pAgent->UpdateValue(m_xAccessible.get());
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_VALUECHANGE, m_xAccessible.get());
diff --git a/winaccessibility/source/service/AccListEventListener.cxx b/winaccessibility/source/service/AccListEventListener.cxx
index 6e887065025a..9557bfbd3093 100644
--- a/winaccessibility/source/service/AccListEventListener.cxx
+++ b/winaccessibility/source/service/AccListEventListener.cxx
@@ -111,7 +111,7 @@ void AccListEventListener::HandleActiveDescendantChangedEvent(Any oldValue, Any
* @param oldValue the old value of the source of event
* @param newValue the new value of the source of event
*/
-void AccListEventListener::HandleValueChangedEvent(Any oldValue, Any newValue)
+void AccListEventListener::HandleValueChangedEvent(Any, Any)
{
//to enable value changed event
if (GetParentRole() == AccessibleRole::COMBO_BOX)
diff --git a/winaccessibility/source/service/AccParagraphEventListener.cxx b/winaccessibility/source/service/AccParagraphEventListener.cxx
index 9d064c220b08..e9d5668b2a3a 100644
--- a/winaccessibility/source/service/AccParagraphEventListener.cxx
+++ b/winaccessibility/source/service/AccParagraphEventListener.cxx
@@ -93,7 +93,7 @@ throw (css::uno::RuntimeException)
* @param oldValue in UNO, this parameter is always NULL
* @param newValue in UNO, this parameter is always NULL
*/
-void AccParagraphEventListener::HandleCaretChangedEvent(Any oldValue, Any newValue)
+void AccParagraphEventListener::HandleCaretChangedEvent(Any, Any)
{
pAgent->UpdateLocation(m_xAccessible.get());
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_CARETCHANGE, m_xAccessible.get());