summaryrefslogtreecommitdiff
path: root/cosv
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 /cosv
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 'cosv')
-rw-r--r--cosv/inc/cosv/std_outp.hxx8
-rw-r--r--cosv/inc/cosv/streamstr.hxx6
-rw-r--r--cosv/prj/build.lst2
-rw-r--r--cosv/source/service/std_outp.cxx4
4 files changed, 12 insertions, 8 deletions
diff --git a/cosv/inc/cosv/std_outp.hxx b/cosv/inc/cosv/std_outp.hxx
index cf81728bfd22..87b05643e8f4 100644
--- a/cosv/inc/cosv/std_outp.hxx
+++ b/cosv/inc/cosv/std_outp.hxx
@@ -106,11 +106,11 @@ Cerr()
-typedef void (*F_FLUSHING_FUNC)(ostream&, bool, int*);
+typedef void (*F_FLUSHING_FUNC)(ostream&);
-void Endl( ostream&, bool, int* );
+void Endl( ostream& );
-void Flush( ostream&, bool, int* );
+void Flush( ostream& );
} // namespace csv
@@ -123,7 +123,7 @@ operator<<( csv::ostream & io_rStream,
{
#ifndef CSV_NO_IOSTREAMS
// (*i_fFlushingFunc)( io_rStream, csv::redirect_out::useme_(), 0 );
- (*i_fFlushingFunc)( io_rStream, false, 0 );
+ (*i_fFlushingFunc)( io_rStream );
#else
csv_assert( csv::redirect_out::useme_() );
(*i_fFlushingFunc)( io_rStream, true, 0 );
diff --git a/cosv/inc/cosv/streamstr.hxx b/cosv/inc/cosv/streamstr.hxx
index ef71a637dce2..f91cef4c3562 100644
--- a/cosv/inc/cosv/streamstr.hxx
+++ b/cosv/inc/cosv/streamstr.hxx
@@ -29,6 +29,10 @@
#ifndef CSV_STREAMSTR_HXX
#define CSV_STREAMSTR_HXX
+#include "sal/config.h"
+
+#include "sal/types.h"
+
// BASE CLASSES
#include <cosv/bstream.hxx>
// USED SERVICES
@@ -271,7 +275,7 @@ class StreamStrLock
// IMPLEMENTATION
inline const char *
-StreamStr::operator<<( F_CSTR )
+StreamStr::operator<<( SAL_UNUSED_PARAMETER F_CSTR )
{ return dpData; }
inline void
StreamStr::clear()
diff --git a/cosv/prj/build.lst b/cosv/prj/build.lst
index dd519e1fc446..140c617320d7 100644
--- a/cosv/prj/build.lst
+++ b/cosv/prj/build.lst
@@ -1,4 +1,4 @@
-cs cosv : soltools NULL
+cs cosv : sal soltools NULL
cs cosv usr1 - all cs_mkout NULL
cs cosv\prj get - all cs_prj NULL
cs cosv\inc get - all cs_inc NULL
diff --git a/cosv/source/service/std_outp.cxx b/cosv/source/service/std_outp.cxx
index bac720a801f7..d7077b54e876 100644
--- a/cosv/source/service/std_outp.cxx
+++ b/cosv/source/service/std_outp.cxx
@@ -50,7 +50,7 @@ redirect_out * redirect_out::pStdErr_ = 0;
void
-Endl( ostream & io_rStream, bool /*bUseRedirect*/, int* )
+Endl( ostream & io_rStream )
{
#ifndef CSV_NO_IOSTREAMS
// if (NOT bUseRedirect)
@@ -61,7 +61,7 @@ Endl( ostream & io_rStream, bool /*bUseRedirect*/, int* )
}
void
-Flush( ostream & io_rStream, bool /*bUseRedirect*/, int* )
+Flush( ostream & io_rStream )
{
#ifndef CSV_NO_IOSTREAMS
// if (NOT bUseRedirect)