Fix warnings in headers because application/user settings control what warnings are seen when compiling against poco

This commit is contained in:
Patrick White
2014-01-23 16:22:38 -05:00
parent a2a4cccbc8
commit 69f7cb9846
11 changed files with 18 additions and 18 deletions

View File

@@ -56,7 +56,7 @@ class ActiveStarter
/// thread pool.
{
public:
static void start(OwnerType* pOwner, ActiveRunnableBase::Ptr pRunnable)
static void start(OwnerType* /*pOwner*/, ActiveRunnableBase::Ptr pRunnable)
{
ThreadPool::defaultPool().start(*pRunnable);
pRunnable->duplicate(); // The runnable will release itself.

View File

@@ -61,7 +61,7 @@ public:
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;
}

View File

@@ -153,12 +153,12 @@ protected:
}
private:
virtual int readFromDevice(char_type* buffer, std::streamsize length)
virtual int readFromDevice(char_type* /*buffer*/, std::streamsize /*length*/)
{
return 0;
}
virtual int writeToDevice(const char_type* buffer, std::streamsize length)
virtual int writeToDevice(const char_type* /*buffer*/, std::streamsize /*length*/)
{
return 0;
}

View File

@@ -146,12 +146,12 @@ protected:
}
private:
virtual int readFromDevice(char_type* buffer, std::streamsize length)
virtual int readFromDevice(char_type* /*buffer*/, std::streamsize /*length*/)
{
return 0;
}
virtual int writeToDevice(const char_type* buffer, std::streamsize length)
virtual int writeToDevice(const char_type* /*buffer*/, std::streamsize /*length*/)
{
return 0;
}

View File

@@ -217,7 +217,7 @@ public:
return *this;
}
bool notify(const void* sender, TArgs& arguments)
bool notify(const void* /*sender*/, TArgs& arguments)
{
Mutex::ScopedLock lock(_mutex);
if (_receiverMethod)
@@ -427,7 +427,7 @@ public:
return *this;
}
bool notify(const void* sender)
bool notify(const void* /*sender*/)
{
Mutex::ScopedLock lock(_mutex);
if (_receiverMethod)

View File

@@ -84,7 +84,7 @@ public:
{
}
virtual int_type overflow(int_type c)
virtual int_type overflow(int_type /*c*/)
{
return char_traits::eof();
}

View File

@@ -207,7 +207,7 @@ public:
return *_object.get();
}
bool isAutoDelete(B* pObject) const
bool isAutoDelete(B* /*pObject*/) const
{
return true;
}

View File

@@ -114,7 +114,7 @@ public:
{
}
bool mustRotate(LogFile* pFile)
bool mustRotate(LogFile* /*pFile*/)
{
if (DT() >= _threshold)
{

View File

@@ -77,13 +77,13 @@ public:
};
inline bool Void::operator ==(const Void& v) const
inline bool Void::operator ==(const Void& /*v*/) const
{
return true;
}
inline bool Void::operator !=(const Void& v) const
inline bool Void::operator !=(const Void& /*v*/) const
{
return false;
}