mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
Fix warnings in headers because application/user settings control what warnings are seen when compiling against poco
This commit is contained in:
parent
a2a4cccbc8
commit
69f7cb9846
@ -56,7 +56,7 @@ class ActiveStarter
|
|||||||
/// thread pool.
|
/// thread pool.
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void start(OwnerType* pOwner, ActiveRunnableBase::Ptr pRunnable)
|
static void start(OwnerType* /*pOwner*/, ActiveRunnableBase::Ptr pRunnable)
|
||||||
{
|
{
|
||||||
ThreadPool::defaultPool().start(*pRunnable);
|
ThreadPool::defaultPool().start(*pRunnable);
|
||||||
pRunnable->duplicate(); // The runnable will release itself.
|
pRunnable->duplicate(); // The runnable will release itself.
|
||||||
|
@ -61,7 +61,7 @@ public:
|
|||||||
return new char_type[static_cast<std::size_t>(size)];
|
return new char_type[static_cast<std::size_t>(size)];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void deallocate(char_type* ptr, std::streamsize size)
|
static void deallocate(char_type* ptr, std::streamsize /*size*/)
|
||||||
{
|
{
|
||||||
delete [] ptr;
|
delete [] ptr;
|
||||||
}
|
}
|
||||||
|
@ -153,12 +153,12 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual int readFromDevice(char_type* buffer, std::streamsize length)
|
virtual int readFromDevice(char_type* /*buffer*/, std::streamsize /*length*/)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int writeToDevice(const char_type* buffer, std::streamsize length)
|
virtual int writeToDevice(const char_type* /*buffer*/, std::streamsize /*length*/)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -146,12 +146,12 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual int readFromDevice(char_type* buffer, std::streamsize length)
|
virtual int readFromDevice(char_type* /*buffer*/, std::streamsize /*length*/)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int writeToDevice(const char_type* buffer, std::streamsize length)
|
virtual int writeToDevice(const char_type* /*buffer*/, std::streamsize /*length*/)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -217,7 +217,7 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool notify(const void* sender, TArgs& arguments)
|
bool notify(const void* /*sender*/, TArgs& arguments)
|
||||||
{
|
{
|
||||||
Mutex::ScopedLock lock(_mutex);
|
Mutex::ScopedLock lock(_mutex);
|
||||||
if (_receiverMethod)
|
if (_receiverMethod)
|
||||||
@ -427,7 +427,7 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool notify(const void* sender)
|
bool notify(const void* /*sender*/)
|
||||||
{
|
{
|
||||||
Mutex::ScopedLock lock(_mutex);
|
Mutex::ScopedLock lock(_mutex);
|
||||||
if (_receiverMethod)
|
if (_receiverMethod)
|
||||||
|
@ -84,7 +84,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int_type overflow(int_type c)
|
virtual int_type overflow(int_type /*c*/)
|
||||||
{
|
{
|
||||||
return char_traits::eof();
|
return char_traits::eof();
|
||||||
}
|
}
|
||||||
|
@ -207,7 +207,7 @@ public:
|
|||||||
return *_object.get();
|
return *_object.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isAutoDelete(B* pObject) const
|
bool isAutoDelete(B* /*pObject*/) const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mustRotate(LogFile* pFile)
|
bool mustRotate(LogFile* /*pFile*/)
|
||||||
{
|
{
|
||||||
if (DT() >= _threshold)
|
if (DT() >= _threshold)
|
||||||
{
|
{
|
||||||
|
@ -77,13 +77,13 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
inline bool Void::operator ==(const Void& v) const
|
inline bool Void::operator ==(const Void& /*v*/) const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline bool Void::operator !=(const Void& v) const
|
inline bool Void::operator !=(const Void& /*v*/) const
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -229,7 +229,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
template <typename C>
|
template <typename C>
|
||||||
void doStringify(const C& container, std::ostream& out, unsigned int indent, int step) const
|
void doStringify(const C& container, std::ostream& out, unsigned int indent, unsigned int step) const
|
||||||
{
|
{
|
||||||
out << '{';
|
out << '{';
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ private:
|
|||||||
typename C::const_iterator end = container.end();
|
typename C::const_iterator end = container.end();
|
||||||
for (; it != end;)
|
for (; it != end;)
|
||||||
{
|
{
|
||||||
for(int i = 0; i < indent; i++) out << ' ';
|
for(unsigned int i = 0; i < indent; i++) out << ' ';
|
||||||
|
|
||||||
out << '"' << getKey(it) << '"';
|
out << '"' << getKey(it) << '"';
|
||||||
out << ((indent > 0) ? " : " : ":");
|
out << ((indent > 0) ? " : " : ":");
|
||||||
@ -248,12 +248,12 @@ private:
|
|||||||
|
|
||||||
if ( ++it != container.end() ) out << ',';
|
if ( ++it != container.end() ) out << ',';
|
||||||
|
|
||||||
if (step > 0) out << '\n';
|
if (step > 0) out << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (indent >= step) indent -= step;
|
if (indent >= step) indent -= step;
|
||||||
|
|
||||||
for (int i = 0; i < indent; i++)
|
for (unsigned int i = 0; i < indent; i++)
|
||||||
out << ' ';
|
out << ' ';
|
||||||
|
|
||||||
out << '}';
|
out << '}';
|
||||||
|
@ -112,7 +112,7 @@ void Object::getNames(std::vector<std::string>& names) const
|
|||||||
|
|
||||||
void Object::stringify(std::ostream& out, unsigned int indent, int step) const
|
void Object::stringify(std::ostream& out, unsigned int indent, int step) const
|
||||||
{
|
{
|
||||||
if (step == -1) step = indent;
|
if (step < 0) step = indent;
|
||||||
|
|
||||||
if(!_preserveInsOrder)
|
if(!_preserveInsOrder)
|
||||||
doStringify(_values, out, indent, step);
|
doStringify(_values, out, indent, step);
|
||||||
|
Loading…
Reference in New Issue
Block a user