Commit e3d16bc9 authored by ck's avatar ck
Browse files

Botan/Net7 libs: Fix warnings about unused parameters.

parent 70583675
......@@ -19,7 +19,12 @@ namespace Botan {
/*
* Lock an area of memory into RAM
*/
#if defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
|| defined(BOTAN_TARGET_OS_HAS_WIN32_VIRTUAL_LOCK)
bool lock_mem(void* ptr, u32bit bytes)
#else
bool lock_mem(void*, u32bit)
#endif
{
#if defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
return (mlock(ptr, bytes) == 0);
......@@ -33,7 +38,12 @@ bool lock_mem(void* ptr, u32bit bytes)
/*
* Unlock a previously locked region of memory
*/
#if defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
|| defined(BOTAN_TARGET_OS_HAS_WIN32_VIRTUAL_LOCK)
void unlock_mem(void* ptr, u32bit bytes)
#else
void unlock_mem(void*, u32bit)
#endif
{
#if defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
munlock(ptr, bytes);
......
......@@ -876,7 +876,7 @@ bool Ne7SftpSubsystem::readFile (uint32 fileID, uint64 offset)
return sftp->readFile (fileID, offset);
}
bool Ne7SftpSubsystem::writeFile (uint32 fileID, const uint8* data, uint32 len, uint64 offset)
bool Ne7SftpSubsystem::writeFile (uint32 fileID, const uint8* data, uint32 len, uint64 /* offset */)
{
if (!inited) return errorNotInited();
return sftp->writeFile (fileID, data, len);
......
......@@ -99,7 +99,7 @@ bool ne7ssh_channel::adjustWindow (Botan::SecureVector<Botan::byte>& packet)
return true;
}
bool ne7ssh_channel::handleEof (Botan::SecureVector<Botan::byte>& packet)
bool ne7ssh_channel::handleEof (Botan::SecureVector<Botan::byte>& /* packet */)
{
this->cmdComplete = true;
windowRecv = 0;
......@@ -111,9 +111,9 @@ bool ne7ssh_channel::handleEof (Botan::SecureVector<Botan::byte>& packet)
return false;
}
void ne7ssh_channel::handleClose (Botan::SecureVector<Botan::byte>& newPacket)
void ne7ssh_channel::handleClose (Botan::SecureVector<Botan::byte>& /* newPacket */)
{
ne7ssh_string packet;
//ne7ssh_string packet;
if (!closed) sendClose ();
windowRecv = 0;
......
......@@ -751,7 +751,7 @@ uint64 Ne7sshSftp::getFileSize (uint32 fileID)
return attrs.size;
}
bool Ne7sshSftp::getFileAttrs (Ne7SftpSubsystem::fileAttrs& attributes, const char* remoteFile, bool followSymLinks)
bool Ne7sshSftp::getFileAttrs (Ne7SftpSubsystem::fileAttrs& attributes, const char* remoteFile, bool /* followSymLinks */)
{
if (!remoteFile)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment