summaryrefslogtreecommitdiff
path: root/sal/textenc/convertsimple.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-21 15:21:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-21 15:21:16 +0100
commit7c704c78d3c652504c064b4ac7af55a2c1ee49bb (patch)
tree623358cf25839219ef4fd90eea4f3eaa55389a1f /sal/textenc/convertsimple.cxx
parent0d5167915b47df7c3e450614ea50d845ba959df3 (diff)
Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
Diffstat (limited to 'sal/textenc/convertsimple.cxx')
-rw-r--r--sal/textenc/convertsimple.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sal/textenc/convertsimple.cxx b/sal/textenc/convertsimple.cxx
index 939aaa3e18d2..d359a1eeef64 100644
--- a/sal/textenc/convertsimple.cxx
+++ b/sal/textenc/convertsimple.cxx
@@ -533,9 +533,9 @@ static int ImplConvertUnicodeCharToChar(
}
sal_Size sal::detail::textenc::convertCharToUnicode(
- void const * pData, void *, char const * pSrcBuf, sal_Size nSrcBytes,
- sal_Unicode * pDestBuf, sal_Size nDestChars, sal_uInt32 nFlags,
- sal_uInt32 * pInfo, sal_Size * pSrcCvtBytes)
+ void const * pData, SAL_UNUSED_PARAMETER void *, char const * pSrcBuf,
+ sal_Size nSrcBytes, sal_Unicode * pDestBuf, sal_Size nDestChars,
+ sal_uInt32 nFlags, sal_uInt32 * pInfo, sal_Size * pSrcCvtBytes)
{
sal_uChar c;
sal_Unicode cConv;
@@ -593,8 +593,9 @@ sal_Size sal::detail::textenc::convertCharToUnicode(
}
sal_Size sal::detail::textenc::convertUnicodeToChar(
- void const * pData, void *, sal_Unicode const * pSrcBuf, sal_Size nSrcChars,
- char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags, sal_uInt32 * pInfo,
+ void const * pData, SAL_UNUSED_PARAMETER void *,
+ sal_Unicode const * pSrcBuf, sal_Size nSrcChars, char * pDestBuf,
+ sal_Size nDestBytes, sal_uInt32 nFlags, sal_uInt32 * pInfo,
sal_Size * pSrcCvtChars)
{
sal_Unicode c;