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:
parent
caebe8b862
commit
c4b9102f69
4 changed files with 5 additions and 5 deletions
|
@ -18,7 +18,7 @@
|
|||
#include <Resources.h>
|
||||
#include <Roster.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
int main(int, char**) {
|
||||
TRApplication *app = new TRApplication();
|
||||
if (app->InitCheck() == B_OK) {
|
||||
app->Run();
|
||||
|
@ -310,7 +310,7 @@ int32 TRApplication::Copy(void *data) {
|
|||
/**
|
||||
* 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() ||
|
||||
(strcmp(mimetype, "application/x-bittorrent") == 0) ||
|
||||
(strstr(ref->name, ".torrent") != NULL));
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -96,7 +96,7 @@ bool TRTransfer::IsRunning() {
|
|||
/**
|
||||
* 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;
|
||||
col.red = 255;
|
||||
col.green = 255;
|
||||
|
|
|
@ -383,7 +383,7 @@ bool TRWindow::QuitRequested() {
|
|||
return quit;
|
||||
}
|
||||
|
||||
void TRWindow::FrameResized(float width, float height) {
|
||||
void TRWindow::FrameResized(float, float) {
|
||||
transfers->Invalidate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue