From c694a0579778bf49bd9b039ed93f203cdacef2ab Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Sat, 12 Apr 2014 21:24:21 +0200 Subject: [PATCH] Fix some warnings --- src/DownloadCommand.cc | 4 ---- src/Platform.cc | 2 ++ src/RpcMethodImpl.cc | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/DownloadCommand.cc b/src/DownloadCommand.cc index f1563cfe..0e5104d1 100644 --- a/src/DownloadCommand.cc +++ b/src/DownloadCommand.cc @@ -75,10 +75,6 @@ namespace aria2 { -namespace { -const size_t BUFSIZE = 16*1024; -} // namespace - DownloadCommand::DownloadCommand(cuid_t cuid, const std::shared_ptr& req, const std::shared_ptr& fileEntry, diff --git a/src/Platform.cc b/src/Platform.cc index 96c12db1..0939882b 100644 --- a/src/Platform.cc +++ b/src/Platform.cc @@ -71,6 +71,7 @@ #define A2_MIN_GCRYPT_VERSION "1.2.4" namespace { +#ifdef HAVE_LIBGNUTLS void gnutls_log_callback(int level, const char *str) { using namespace aria2; @@ -79,6 +80,7 @@ namespace { msg.resize(msg.size() - 1); A2_LOG_DEBUG(fmt("GnuTLS: <%d> %s", level, msg.c_str())); } +#endif // HAVE_LIBGNUTLS } diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc index 824ab2a1..c920a4aa 100644 --- a/src/RpcMethodImpl.cc +++ b/src/RpcMethodImpl.cc @@ -86,7 +86,6 @@ namespace rpc { namespace { const char VLB_TRUE[] = "true"; const char VLB_FALSE[] = "false"; -const char VLB_OK[] = "OK"; const char VLB_ACTIVE[] = "active"; const char VLB_WAITING[] = "waiting"; const char VLB_PAUSED[] = "paused";