changeset 36010:5c720c434d56

Silence "warning: unused parameter".
author ib
date Sat, 30 Mar 2013 15:09:51 +0000
parents e7bc0058139a
children 277882d42938
files gui/dialog/about.c gui/dialog/equalizer.c gui/dialog/fileselect.c gui/dialog/msgbox.c gui/dialog/playlist.c gui/dialog/preferences.c gui/dialog/skinbrowser.c gui/dialog/url.c gui/ui/menu.c
diffstat 9 files changed, 103 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/about.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/about.c	Sat Mar 30 15:09:51 2013 +0000
@@ -29,7 +29,12 @@
 GtkWidget * About = NULL;
 
 static void abWidgetDestroy( GtkButton * button, gpointer user_data )
-{ gtk_widget_destroy( About ); }
+{
+  (void) button;
+  (void) user_data;
+
+  gtk_widget_destroy( About );
+}
 
 static GtkWidget * CreateAbout( void )
 {
--- a/gui/dialog/equalizer.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/equalizer.c	Sat Mar 30 15:09:51 2013 +0000
@@ -128,6 +128,10 @@
 static gboolean eqHScaleMotion( GtkWidget * widget,GdkEventMotion  * event,gpointer user_data )
 {
  equalizer_t eq;
+
+ (void) widget;
+ (void) event;
+
  switch ( (int)user_data )
   {
    case 0: eq.gain=A3125adj->value; break;
@@ -156,6 +160,8 @@
 
 static gboolean eqVScaleMotion( GtkWidget * widget,GdkEventMotion  * event,gpointer user_data )
 {
+ (void) widget;
+ (void) event;
 
  switch( (int)user_data )
   {
@@ -170,6 +176,8 @@
 
 static void eqButtonReleased( GtkButton * button,gpointer user_data )
 {
+ (void) button;
+
  switch( (int)user_data )
   {
    case 0:
@@ -201,12 +209,21 @@
 
 static gboolean eqFocus( GtkWidget * widget,GdkEvent * event,gpointer user_data )
 {
+ (void) widget;
+ (void) event;
+ (void) user_data;
+
  eqSetBands( Channel );
  return FALSE;
 }
 
 static void eqSelectChannelsListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
 {
+ (void) clist;
+ (void) column;
+ (void) event;
+ (void) user_data;
+
  Channel=row - 1;
  eqSetBands( Channel );
  if ( Channel == -1 )
@@ -221,6 +238,10 @@
 static void eqNotebook( GtkNotebook * notebook, gpointer page,
                         guint page_num, gpointer user_data )
 {
+ (void) notebook;
+ (void) page;
+ (void) user_data;
+
  if ( page_num ) gtk_widget_hide( Config );
    else gtk_widget_show( Config );
 }
@@ -548,6 +569,8 @@
 
 static void ecButtonReleased( GtkButton * button,gpointer user_data )
 {
+ (void) button;
+
  if ( (int)user_data )
  { // if you pressed Ok
   nfree( gtkEquChannel1 ); gtkEquChannel1=gstrdup( gtk_entry_get_text( GTK_ENTRY( CEChannel1 ) ) );
--- a/gui/dialog/fileselect.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/fileselect.c	Sat Mar 30 15:09:51 2013 +0000
@@ -300,6 +300,8 @@
 static void fs_fsFilterCombo_activate( GtkEntry * entry,
                                        gpointer user_data )
 {
+ (void) entry;
+
  fsFilter=gtk_entry_get_text( GTK_ENTRY( user_data ) );
  CheckDir( fsFNameList );
 }
@@ -310,6 +312,8 @@
  const char * str;
  int    i;
 
+ (void) editable;
+
  str=gtk_entry_get_text( GTK_ENTRY(user_data ) );
 
  switch ( fsType )
@@ -350,6 +354,8 @@
  const unsigned char * str;
  gchar * dirname;
 
+ (void) entry;
+
  str=gtk_entry_get_text( GTK_ENTRY( user_data ) );
  dirname=g_hash_table_lookup(fsPathTable, str);
  if ( chdir( dirname ? (const unsigned char *)dirname : str ) != -1 ) CheckDir( fsFNameList );
@@ -361,6 +367,8 @@
  const unsigned char * str;
  gchar * dirname;
 
+ (void) editable;
+
  str=gtk_entry_get_text( GTK_ENTRY( user_data ) );
  dirname=g_hash_table_lookup(fsPathTable, str);
  if ( chdir( dirname ? (const unsigned char *)dirname : str ) != -1 ) CheckDir( fsFNameList );
@@ -370,6 +378,9 @@
 {
  gchar *utf8dir;
 
+ (void) button;
+ (void) user_data;
+
  chdir( ".." );
  CheckDir( fsFNameList );
  utf8dir = get_current_dir_name_utf8();
@@ -381,6 +392,9 @@
 
 static void fs_Cancel_released( GtkButton * button,gpointer user_data )
 {
+ (void) button;
+ (void) user_data;
+
  gtk_widget_destroy( FileSelector );
  fsLastFNameListSelected = fsCurrFNameListSelected;
 }
@@ -392,6 +406,9 @@
  struct stat     fs;
  gchar         * selected;
 
+ (void) button;
+ (void) user_data;
+
  if( ( stat( fsSelectedFile,&fs ) == 0 ) && S_ISDIR( fs.st_mode ) )
   {
    gchar *utf8dir;
@@ -450,6 +467,9 @@
 static void fs_fsFNameList_select_row( GtkCList * clist, gint row, gint column,
                                        GdkEvent * event, gpointer user_data)
 {
+ (void) column;
+ (void) user_data;
+
  fsCurrFNameListSelected = row;
  fsSelectedFile = gtk_clist_get_row_data(clist, row);
  if( event && event->type == GDK_BUTTON_PRESS )  gtk_button_released( GTK_BUTTON( fsOk ) );
@@ -459,6 +479,8 @@
                                                  GdkEvent * event,
                                                  gpointer user_data )
 {
+ (void) user_data;
+
  if ( GTK_WIDGET_TYPE( widget ) == GTK_TYPE_BUTTON )
  {
   if (event->key.keyval == GDK_Return) gtk_button_released( GTK_BUTTON( widget ) );
@@ -489,6 +511,8 @@
   GdkEventButton *bevent;
   gint row, col;
 
+ (void) user_data;
+
   bevent = (GdkEventButton *) event;
 
   if ( event->type == GDK_BUTTON_RELEASE && bevent->button == 2 )
--- a/gui/dialog/msgbox.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/msgbox.c	Sat Mar 30 15:09:51 2013 +0000
@@ -33,6 +33,9 @@
 
 static void on_Ok_released( GtkButton * button,gpointer user_data  )
 {
+ (void) button;
+ (void) user_data;
+
  gtk_widget_destroy( MessageBox );
 }
 
--- a/gui/dialog/playlist.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/playlist.c	Sat Mar 30 15:09:51 2013 +0000
@@ -92,6 +92,10 @@
 
 static void plRowSelect( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
 {
+ (void) clist;
+ (void) column;
+ (void) event;
+
  switch ( (int) user_data )
   {
    case 0: CLFileSelected[row]=True; break;
@@ -101,6 +105,10 @@
 
 static void plUnRowSelect( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
 {
+ (void) clist;
+ (void) column;
+ (void) event;
+
  switch ( (int) user_data )
   {
    case 0: CLFileSelected[row]=False; break;
@@ -110,6 +118,8 @@
 
 static void plButtonReleased( GtkButton * button,gpointer user_data )
 {
+ (void) button;
+
  switch ( (int) user_data )
  {
   case 1: // ok
@@ -326,6 +336,8 @@
  gchar  	   * path;
  struct 		 stat statbuf;
 
+ (void) user_data;
+
  DirNode=gtk_ctree_node_get_row_data( ctree,parent_node );
  if ( !DirNode->scaned )
   {
@@ -399,6 +411,11 @@
 {
  DirNodeType  * DirNode;
  GtkCTreeNode * node;
+
+ (void) column;
+ (void) event;
+ (void) user_data;
+
  node=gtk_ctree_node_nth( GTK_CTREE( clist ),row );
  DirNode=gtk_ctree_node_get_row_data( GTK_CTREE( clist ),node );
  current_path=DirNode->path;
--- a/gui/dialog/preferences.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/preferences.c	Sat Mar 30 15:09:51 2013 +0000
@@ -204,6 +204,8 @@
  const char * comment;
  int    i;
 
+ (void) editable;
+
  switch( (int)user_data )
   {
 #ifdef CONFIG_FREETYPE
@@ -236,6 +238,8 @@
 
 static void prButton( GtkButton * button, gpointer user_data )
 {
+ (void) button;
+
  switch ( (int)user_data )
   {
    case bOk:
@@ -377,6 +381,9 @@
 
 static gboolean prHScaler( GtkWidget * widget,GdkEvent * event,gpointer user_data )
 {
+ (void) widget;
+ (void) event;
+
  switch ( (int)user_data )
   {
    case 0: // extra stereo coefficient
@@ -423,6 +430,9 @@
 static void prToggled( GtkToggleButton * togglebutton,gpointer user_data )
 {
  int window;
+
+ (void) togglebutton;
+
  switch ( (int)user_data )
   {
    case 0: // extra stereo coefficient
@@ -477,6 +487,10 @@
 
 static void prCListRow( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
 {
+ (void) clist;
+ (void) column;
+ (void) event;
+
  switch ( (int)user_data )
   {
    case 0: // audio driver
@@ -1499,6 +1513,9 @@
 static GtkWidget *BAudioCancel;
 
 static void audioButton(GtkButton *button, gpointer user_data) {
+
+  (void) button;
+
   switch( (int)user_data ) {
     case 1:
 #ifdef CONFIG_OSS_AUDIO
@@ -1720,6 +1737,8 @@
 
 static void dxr3Button( GtkButton * button,gpointer user_data )
 {
+ (void) button;
+
  switch ( (int)user_data )
  {
   case 0: // Ok
--- a/gui/dialog/skinbrowser.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/skinbrowser.c	Sat Mar 30 15:09:51 2013 +0000
@@ -46,6 +46,8 @@
 
 static void prButton( GtkButton * button,gpointer user_data )
 {
+ (void) button;
+
  if ( sbSelectedSkin )
  {
   switch ( (int)user_data )
@@ -65,6 +67,9 @@
 
 static void on_SkinList_select_row( GtkCList * clist,gint row,gint column,GdkEvent * event,gpointer user_data )
 {
+ (void) column;
+ (void) user_data;
+
  gtk_clist_get_text( clist,row,0,&sbSelectedSkin );
  if ( strcmp( prev,sbSelectedSkin ) )
   {
--- a/gui/dialog/url.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/dialog/url.c	Sat Mar 30 15:09:51 2013 +0000
@@ -46,6 +46,8 @@
 {
  urlItem * item;
 
+ (void) button;
+
  if ( (int)user_data )
   {
    gchar * str= strdup( gtk_entry_get_text( GTK_ENTRY( URLEntry ) ) );
--- a/gui/ui/menu.c	Sat Mar 30 14:33:35 2013 +0000
+++ b/gui/ui/menu.c	Sat Mar 30 15:09:51 2013 +0000
@@ -75,6 +75,10 @@
 {
  int x,y,i;
 
+ (void) Button;
+ (void) RX;
+ (void) RY;
+
  menuItem=-1;
  x=X - guiApp.menuWindow.X;
  y=Y - guiApp.menuWindow.Y;