Skip to content

Commit 69f7cb9

Browse files
author
Patrick White
committed
Fix warnings in headers because application/user settings control what warnings are seen when compiling against poco
1 parent a2a4ccc commit 69f7cb9

11 files changed

Lines changed: 18 additions & 18 deletions

File tree

Foundation/include/Poco/ActiveStarter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ActiveStarter
5656
/// thread pool.
5757
{
5858
public:
59-
static void start(OwnerType* pOwner, ActiveRunnableBase::Ptr pRunnable)
59+
static void start(OwnerType* /*pOwner*/, ActiveRunnableBase::Ptr pRunnable)
6060
{
6161
ThreadPool::defaultPool().start(*pRunnable);
6262
pRunnable->duplicate(); // The runnable will release itself.

Foundation/include/Poco/BufferAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BufferAllocator
6161
return new char_type[static_cast<std::size_t>(size)];
6262
}
6363

64-
static void deallocate(char_type* ptr, std::streamsize size)
64+
static void deallocate(char_type* ptr, std::streamsize /*size*/)
6565
{
6666
delete [] ptr;
6767
}

Foundation/include/Poco/BufferedBidirectionalStreamBuf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ class BasicBufferedBidirectionalStreamBuf: public std::basic_streambuf<ch, tr>
153153
}
154154

155155
private:
156-
virtual int readFromDevice(char_type* buffer, std::streamsize length)
156+
virtual int readFromDevice(char_type* /*buffer*/, std::streamsize /*length*/)
157157
{
158158
return 0;
159159
}
160160

161-
virtual int writeToDevice(const char_type* buffer, std::streamsize length)
161+
virtual int writeToDevice(const char_type* /*buffer*/, std::streamsize /*length*/)
162162
{
163163
return 0;
164164
}

Foundation/include/Poco/BufferedStreamBuf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ class BasicBufferedStreamBuf: public std::basic_streambuf<ch, tr>
146146
}
147147

148148
private:
149-
virtual int readFromDevice(char_type* buffer, std::streamsize length)
149+
virtual int readFromDevice(char_type* /*buffer*/, std::streamsize /*length*/)
150150
{
151151
return 0;
152152
}
153153

154-
virtual int writeToDevice(const char_type* buffer, std::streamsize length)
154+
virtual int writeToDevice(const char_type* /*buffer*/, std::streamsize /*length*/)
155155
{
156156
return 0;
157157
}

Foundation/include/Poco/FunctionDelegate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class FunctionDelegate<TArgs, false, senderIsConst>: public AbstractDelegate<TAr
217217
return *this;
218218
}
219219

220-
bool notify(const void* sender, TArgs& arguments)
220+
bool notify(const void* /*sender*/, TArgs& arguments)
221221
{
222222
Mutex::ScopedLock lock(_mutex);
223223
if (_receiverMethod)
@@ -427,7 +427,7 @@ class FunctionDelegate<void, false, senderIsConst>: public AbstractDelegate<void
427427
return *this;
428428
}
429429

430-
bool notify(const void* sender)
430+
bool notify(const void* /*sender*/)
431431
{
432432
Mutex::ScopedLock lock(_mutex);
433433
if (_receiverMethod)

Foundation/include/Poco/MemoryStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class BasicMemoryStreamBuf: public std::basic_streambuf<ch, tr>
8484
{
8585
}
8686

87-
virtual int_type overflow(int_type c)
87+
virtual int_type overflow(int_type /*c*/)
8888
{
8989
return char_traits::eof();
9090
}

Foundation/include/Poco/MetaObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class MetaSingleton: public AbstractMetaObject<B>
207207
return *_object.get();
208208
}
209209

210-
bool isAutoDelete(B* pObject) const
210+
bool isAutoDelete(B* /*pObject*/) const
211211
{
212212
return true;
213213
}

Foundation/include/Poco/RotateStrategy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class RotateAtTimeStrategy: public RotateStrategy
114114
{
115115
}
116116

117-
bool mustRotate(LogFile* pFile)
117+
bool mustRotate(LogFile* /*pFile*/)
118118
{
119119
if (DT() >= _threshold)
120120
{

Foundation/include/Poco/Void.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ class Foundation_API Void
7777
};
7878

7979

80-
inline bool Void::operator ==(const Void& v) const
80+
inline bool Void::operator ==(const Void& /*v*/) const
8181
{
8282
return true;
8383
}
8484

8585

86-
inline bool Void::operator !=(const Void& v) const
86+
inline bool Void::operator !=(const Void& /*v*/) const
8787
{
8888
return false;
8989
}

JSON/include/Poco/JSON/Object.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class JSON_API Object
229229

230230
private:
231231
template <typename C>
232-
void doStringify(const C& container, std::ostream& out, unsigned int indent, int step) const
232+
void doStringify(const C& container, std::ostream& out, unsigned int indent, unsigned int step) const
233233
{
234234
out << '{';
235235

@@ -239,7 +239,7 @@ class JSON_API Object
239239
typename C::const_iterator end = container.end();
240240
for (; it != end;)
241241
{
242-
for(int i = 0; i < indent; i++) out << ' ';
242+
for(unsigned int i = 0; i < indent; i++) out << ' ';
243243

244244
out << '"' << getKey(it) << '"';
245245
out << ((indent > 0) ? " : " : ":");
@@ -248,12 +248,12 @@ class JSON_API Object
248248

249249
if ( ++it != container.end() ) out << ',';
250250

251-
if (step > 0) out << '\n';
251+
if (step > 0) out << std::endl;
252252
}
253253

254254
if (indent >= step) indent -= step;
255255

256-
for (int i = 0; i < indent; i++)
256+
for (unsigned int i = 0; i < indent; i++)
257257
out << ' ';
258258

259259
out << '}';

0 commit comments

Comments
 (0)