mirror of https://github.com/aria2/aria2
Fix some warnings
parent
18c35f56b8
commit
c694a05797
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue