Changeset e9ae6c1be87b932573169381bb665931d22bc379

Show
Ignore:
Timestamp:
09/10/11 01:32:36 (21 months ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
68716ee66cd0fbe42a4c1c2ad668a7e5e0e34dff
Parents:
6317e37bf62cdfa53ff63107dd08f6d73526c13e
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2011-09-10T01:32:36Z+0300
Message:

fix another compiler warning

../gui/studio.c:86:16: error: variable 'tooltip' set but not used [-Werror=unused-but-set-variable]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gui/studio.c

    re0ec247 re9ae6c1  
    8484  char * buffer; 
    8585  const char * status_image_path; 
    86   const char * tooltip; 
     86  //const char * tooltip; 
    8787  GdkPixbuf * pixbuf; 
    8888 
    8989  menu_studio_state_changed(g_studio_state); 
    9090 
    91   tooltip = NULL; 
     91  //tooltip = NULL; 
    9292  status_image_path = NULL; 
    9393 
     
    9595  { 
    9696  case JACK_STATE_NA: 
    97     tooltip = status = _("JACK is sick"); 
     97    //tooltip = status = _("JACK is sick"); 
    9898    status_image_path = STATUS_ICON_ERROR; 
    9999    break; 
     
    106106  default: 
    107107    status = "???"; 
    108     tooltip = _("Internal error - unknown jack state"); 
     108    //tooltip = _("Internal error - unknown jack state"); 
    109109    status_image_path = STATUS_ICON_ERROR; 
    110110  } 
     
    120120  case STUDIO_STATE_SICK: 
    121121  case STUDIO_STATE_UNKNOWN: 
    122     tooltip = name = _("ladishd is sick"); 
     122    //tooltip = name = _("ladishd is sick"); 
    123123    status_image_path = STATUS_ICON_ERROR; 
    124124    break; 
     
    129129  case STUDIO_STATE_CRASHED: 
    130130    status = _("Crashed"); 
    131     tooltip = _("Crashed studio, save your work if you can and unload the studio"); 
     131    //tooltip = _("Crashed studio, save your work if you can and unload the studio"); 
    132132    status_image_path = STATUS_ICON_ERROR; 
    133133    /* fall through */ 
     
    136136    if (!studio_proxy_get_name(&buffer)) 
    137137    { 
    138       tooltip = _("failed to get studio name"); 
     138      //tooltip = _("failed to get studio name"); 
    139139      log_error("failed to get studio name"); 
    140140      status_image_path = STATUS_ICON_ERROR; 
     
    147147      case STUDIO_STATE_STARTED: 
    148148        status_image_path = jack_xruns() ? STATUS_ICON_WARNING : STATUS_ICON_STARTED; 
    149         tooltip = _("Studio is started"); 
     149        //tooltip = _("Studio is started"); 
    150150        break; 
    151151      case STUDIO_STATE_STOPPED: 
    152152        status_image_path = STATUS_ICON_STOPPED; 
    153         tooltip = _("Studio is stopped"); 
     153        //tooltip = _("Studio is stopped"); 
    154154        break; 
    155155      } 
     
    158158  default: 
    159159    name = "???"; 
    160     tooltip = _("Internal error - unknown studio state"); 
     160    //tooltip = _("Internal error - unknown studio state"); 
    161161    status_image_path = STATUS_ICON_ERROR; 
    162162  }