1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-03 18:25:35 +00:00

Silence some unused parameter warnings.

This commit is contained in:
Josh Elsasser 2007-03-05 04:01:05 +00:00
parent caebe8b862
commit c4b9102f69
4 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@
#include <Resources.h> #include <Resources.h>
#include <Roster.h> #include <Roster.h>
int main(int argc, char** argv) { int main(int, char**) {
TRApplication *app = new TRApplication(); TRApplication *app = new TRApplication();
if (app->InitCheck() == B_OK) { if (app->InitCheck() == B_OK) {
app->Run(); app->Run();
@ -310,7 +310,7 @@ int32 TRApplication::Copy(void *data) {
/** /**
* Filters the FilePanel for torrent files and directories. * Filters the FilePanel for torrent files and directories.
*/ */
bool TRFilter::Filter(const entry_ref *ref, BNode *node, struct stat *st, const char *mimetype) { bool TRFilter::Filter(const entry_ref *ref, BNode *node, struct stat *, const char *mimetype) {
return (node->IsDirectory() || return (node->IsDirectory() ||
(strcmp(mimetype, "application/x-bittorrent") == 0) || (strcmp(mimetype, "application/x-bittorrent") == 0) ||
(strstr(ref->name, ".torrent") != NULL)); (strstr(ref->name, ".torrent") != NULL));

View file

@ -75,7 +75,7 @@ TRInfoWindow::~TRInfoWindow() {
} }
void TRInfoWindow::FrameResized(float width, float height) { void TRInfoWindow::FrameResized(float, float) {
} }
void TRInfoWindow::StringForFileSize(uint64_t size, BString *str) { void TRInfoWindow::StringForFileSize(uint64_t size, BString *str) {

View file

@ -96,7 +96,7 @@ bool TRTransfer::IsRunning() {
/** /**
* Renders (Draws) the current status into the BListView. * Renders (Draws) the current status into the BListView.
*/ */
void TRTransfer::DrawItem(BView *owner, BRect frame, bool complete) { void TRTransfer::DrawItem(BView *owner, BRect frame, bool) {
rgb_color col; rgb_color col;
col.red = 255; col.red = 255;
col.green = 255; col.green = 255;

View file

@ -383,7 +383,7 @@ bool TRWindow::QuitRequested() {
return quit; return quit;
} }
void TRWindow::FrameResized(float width, float height) { void TRWindow::FrameResized(float, float) {
transfers->Invalidate(); transfers->Invalidate();
} }