diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 13:27:32 +0200 |
commit | 079548617d3c321dd4051709c3a31717fd80238d (patch) | |
tree | b6bc37563eba2bb6ffcee5ca3d8b8f91b0971251 /src/screen_search.c | |
parent | c67c968442e1b08975d213c9d1947045703348a8 (diff) | |
download | mpd-079548617d3c321dd4051709c3a31717fd80238d.tar.gz mpd-079548617d3c321dd4051709c3a31717fd80238d.tar.xz mpd-079548617d3c321dd4051709c3a31717fd80238d.zip |
fix unused parameter warnings
Add the "unused" attribute to all function parameters which are indeed
going to be ignored.
Diffstat (limited to '')
-rw-r--r-- | src/screen_search.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/screen_search.c b/src/screen_search.c index 2161b7914..9ec189d0e 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -31,6 +31,7 @@ #include "utils.h" #include "screen_utils.h" #include "screen_browse.h" +#include "gcc.h" #include <ctype.h> #include <stdlib.h> @@ -116,7 +117,8 @@ static gboolean advanced_search_mode = FALSE; /* search info */ static const char * -lw_search_help_callback(unsigned idx, int *highlight, void *data) +lw_search_help_callback(unsigned idx, mpd_unused int *highlight, + mpd_unused void *data) { unsigned text_rows; static const char *text[] = { @@ -143,7 +145,7 @@ lw_search_help_callback(unsigned idx, int *highlight, void *data) /* the playlist have been updated -> fix highlights */ static void -playlist_changed_callback(mpdclient_t *c, int event, gpointer data) +playlist_changed_callback(mpdclient_t *c, int event, mpd_unused gpointer data) { if( filelist==NULL ) return; @@ -174,7 +176,8 @@ search_check_mode(void) } static void -search_clear(screen_t *screen, mpdclient_t *c, gboolean clear_pattern) +search_clear(mpd_unused screen_t *screen, mpdclient_t *c, + gboolean clear_pattern) { if( filelist ) { @@ -190,7 +193,7 @@ search_clear(screen_t *screen, mpdclient_t *c, gboolean clear_pattern) #ifdef FUTURE static mpdclient_filelist_t * -filelist_search(mpdclient_t *c, int exact_match, int table, +filelist_search(mpdclient_t *c, mpd_unused int exact_match, int table, gchar *local_pattern) { mpdclient_filelist_t *list, *list2; @@ -380,7 +383,7 @@ quit(void) } static void -open(screen_t *screen, mpdclient_t *c) +open(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c) { // if( pattern==NULL ) // search_new(screen, c); @@ -403,7 +406,7 @@ close(void) } static void -paint(screen_t *screen, mpdclient_t *c) +paint(mpd_unused screen_t *screen, mpdclient_t *c) { lw->clear = 1; |