mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 14:42:30 +00:00
* Applied patch from Diego 'Flameeyes' Petteno <flameeyes@gentoo.org>
that adds the "unused" attribute to some function parameters and minor cleanups of configure.ac. * Added inttypes.h to command_scheduler.h. * Bumped to version 0.8.5/0.4.5. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@634 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <inttypes.h>
|
||||
#include <rak/functional_fun.h>
|
||||
|
||||
class CommandSchedulerItem;
|
||||
|
||||
@@ -211,7 +211,7 @@ Download::priority_to_string(uint32_t p) {
|
||||
}
|
||||
|
||||
void
|
||||
Download::receive_chunk_failed(uint32_t idx) {
|
||||
Download::receive_chunk_failed(__UNUSED uint32_t idx) {
|
||||
m_chunksFailed++;
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ print_status_info(char* first, char* last) {
|
||||
}
|
||||
|
||||
char*
|
||||
print_status_extra(char* first, char* last, Control* c) {
|
||||
print_status_extra(char* first, char* last, __UNUSED Control* c) {
|
||||
first = print_buffer(first, last, " [U %i/%i]",
|
||||
torrent::currently_unchoked(),
|
||||
torrent::max_unchoked());
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ void do_panic(int signum);
|
||||
void print_help();
|
||||
|
||||
int
|
||||
parse_options(Control* c, utils::VariableMap* optionHandler, int argc, char** argv) {
|
||||
parse_options(__UNUSED Control* c, utils::VariableMap* optionHandler, int argc, char** argv) {
|
||||
try {
|
||||
OptionParser optionParser;
|
||||
|
||||
|
||||
@@ -71,12 +71,12 @@ apply_working_directory(const std::string& path) {
|
||||
}
|
||||
|
||||
void
|
||||
apply_hash_read_ahead(Control* m, int arg) {
|
||||
apply_hash_read_ahead(__UNUSED Control* m, int arg) {
|
||||
torrent::set_hash_read_ahead(arg << 20);
|
||||
}
|
||||
|
||||
void
|
||||
apply_hash_interval(Control* m, int arg) {
|
||||
apply_hash_interval(__UNUSED Control* m, int arg) {
|
||||
torrent::set_hash_interval(arg * 1000);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ apply_load_start(Control* m, const std::string& arg) {
|
||||
}
|
||||
|
||||
void
|
||||
apply_stop_untied(Control* m, const std::string& arg) {
|
||||
apply_stop_untied(Control* m, __UNUSED const std::string& arg) {
|
||||
core::Manager::DListItr itr = m->core()->download_list().begin();
|
||||
|
||||
while ((itr = std::find_if(itr, m->core()->download_list().end(),
|
||||
@@ -126,7 +126,7 @@ apply_stop_untied(Control* m, const std::string& arg) {
|
||||
}
|
||||
|
||||
void
|
||||
apply_remove_untied(Control* m, const std::string& arg) {
|
||||
apply_remove_untied(Control* m, __UNUSED const std::string& arg) {
|
||||
core::Manager::DListItr itr = m->core()->download_list().begin();
|
||||
|
||||
while ((itr = std::find_if(itr, m->core()->download_list().end(),
|
||||
@@ -147,7 +147,7 @@ apply_remove_untied(Control* m, const std::string& arg) {
|
||||
}
|
||||
|
||||
void
|
||||
apply_encoding_list(Control* m, const std::string& arg) {
|
||||
apply_encoding_list(__UNUSED Control* m, const std::string& arg) {
|
||||
torrent::encoding_list()->push_back(arg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user