* 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:
rakshasa
2006-02-05 01:43:38 +00:00
parent 8b934623d4
commit 126bb511b8
10 changed files with 145 additions and 18 deletions
+1
View File
@@ -39,6 +39,7 @@
#include <vector>
#include <string>
#include <inttypes.h>
#include <rak/functional_fun.h>
class CommandSchedulerItem;
+1 -1
View File
@@ -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++;
}
+1 -1
View File
@@ -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
View File
@@ -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;
+5 -5
View File
@@ -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);
}