Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at prefs_dlg.c:1208

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

prefs_main_fetch_all

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/prefs_dlg.c)expand/collapse
Show more  
 1200  prefs_main_fetch_all(GtkWidget *dlg, gboolean *must_redissect)
 1201  {
 1202    pref_t *badpref;
 1203   
 1204    /* First, check that the values are all valid. */
 1205    /* XXX - check the non-registered preferences too */
 1206    switch (prefs_modules_foreach(module_prefs_check, (gpointer)&badpref)) {
 1207   
 1208    case PREFS_SET_SYNTAX_ERR:
 1209      switch (badpref->type) {
 1210   
 1211      case PREF_UINT:
 1212        simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
 1213                      "The value for \"%s\" isn't a valid number.",
 1214                      badpref->title);
 1215        return FALSE;
 1216   
 1217      case PREF_RANGE:
 1218        simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
 1219                      "The value for \"%s\" isn't a valid range.",
 1220                      badpref->title);
 1221        return FALSE;
 1222   
 1223      default:
 1224        g_assert_not_reached();
 1225        break;
 1226      }
 1227    }
 1228   
 1229    /* Fetch the preferences (i.e., make sure all the values set in all of 
 1230       the preferences panes have been copied to "prefs" and the registered 
 1231       preferences). */
 1232    gui_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_GUI_PAGE_KEY));
 1233    layout_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_GUI_LAYOUT_PAGE_KEY));
 1234    column_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_GUI_COLUMN_PAGE_KEY));
 1235    stream_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_GUI_COLORS_PAGE_KEY));
 1236   
 1237  #ifdef HAVE_LIBPCAP 
 1238  #ifdef _WIN32 
 1239    /* Is WPcap loaded? */
 1240    if (has_wpcap) {
 1241  #endif /* _WIN32 */
 1242    capture_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_CAPTURE_PAGE_KEY));
 1243  #ifdef _WIN32 
 1244    }
 1245  #endif /* _WIN32 */
 1246  #endif /* HAVE_LIBPCAP */
 1247    printer_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_PRINT_PAGE_KEY));
 1248    nameres_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_NAMERES_PAGE_KEY));
 1249    stats_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_TAPS_PAGE_KEY));
 1250    protocols_prefs_fetch(g_object_get_data(G_OBJECT(dlg), E_PROTOCOLS_PAGE_KEY));
 1251    prefs_modules_foreach(module_prefs_fetch, must_redissect);
 1252   
 1253    return TRUE;
 1254  }
Show more  




Change Warning 4221.30793 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: