Fix some warnings

pull/220/merge
Nils Maier 2014-04-12 21:24:21 +02:00
parent 18c35f56b8
commit c694a05797
3 changed files with 2 additions and 5 deletions

View File

@ -75,10 +75,6 @@
namespace aria2 { namespace aria2 {
namespace {
const size_t BUFSIZE = 16*1024;
} // namespace
DownloadCommand::DownloadCommand(cuid_t cuid, DownloadCommand::DownloadCommand(cuid_t cuid,
const std::shared_ptr<Request>& req, const std::shared_ptr<Request>& req,
const std::shared_ptr<FileEntry>& fileEntry, const std::shared_ptr<FileEntry>& fileEntry,

View File

@ -71,6 +71,7 @@
#define A2_MIN_GCRYPT_VERSION "1.2.4" #define A2_MIN_GCRYPT_VERSION "1.2.4"
namespace { namespace {
#ifdef HAVE_LIBGNUTLS
void gnutls_log_callback(int level, const char *str) void gnutls_log_callback(int level, const char *str)
{ {
using namespace aria2; using namespace aria2;
@ -79,6 +80,7 @@ namespace {
msg.resize(msg.size() - 1); msg.resize(msg.size() - 1);
A2_LOG_DEBUG(fmt("GnuTLS: <%d> %s", level, msg.c_str())); A2_LOG_DEBUG(fmt("GnuTLS: <%d> %s", level, msg.c_str()));
} }
#endif // HAVE_LIBGNUTLS
} }

View File

@ -86,7 +86,6 @@ namespace rpc {
namespace { namespace {
const char VLB_TRUE[] = "true"; const char VLB_TRUE[] = "true";
const char VLB_FALSE[] = "false"; const char VLB_FALSE[] = "false";
const char VLB_OK[] = "OK";
const char VLB_ACTIVE[] = "active"; const char VLB_ACTIVE[] = "active";
const char VLB_WAITING[] = "waiting"; const char VLB_WAITING[] = "waiting";
const char VLB_PAUSED[] = "paused"; const char VLB_PAUSED[] = "paused";