Text   |  XML   |  ReML   |   Visible Warnings:

Unused Value  at sctp_error_dlg.c:190

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

gtk_sctperror_dlg

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_error_dlg.c)expand/collapse
Show more  
 139  gtk_sctperror_dlg(void)
 140  {
 141          GtkWidget *sctp_error_dlg_w;
 142          GtkWidget *vbox1;
 143          GtkWidget *scrolledwindow1;
 144          GtkWidget *hbuttonbox2;
 145          GtkWidget *bt_unselect;
 146          GtkWidget *bt_frame;
 147          GtkWidget *bt_close;
 148   
 149          const gchar *titles[NUM_COLS] =  {"Framenumber","Chunk Types", "Info"};
 150          column_arrows *col_arrows;
 151          GtkStyle *win_style;
 152          GtkWidget *column_lb;
 153          int i;
 154   
 155          sctp_error_dlg_w = window_new (GTK_WINDOW_TOPLEVEL, "Wireshark: SCTP Associations");
 156          gtk_window_set_position (GTK_WINDOW (sctp_error_dlg_w), GTK_WIN_POS_CENTER);
 157          g_signal_connect(sctp_error_dlg_w, "destroy", G_CALLBACK(dlg_destroy), NULL);
 158   
 159          /* Container for each row of widgets */
 160          vbox1 = gtk_vbox_new(FALSE, 2);
 161          gtk_container_set_border_width(GTK_CONTAINER(vbox1), 8);
 162          gtk_container_add(GTK_CONTAINER(sctp_error_dlg_w), vbox1);
 163          gtk_widget_show(vbox1);
 164   
 165          scrolledwindow1 = scrolled_window_new (NULL, NULL);
 166          gtk_widget_show (scrolledwindow1);
 167          gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow1, TRUE, TRUE, 0);
 168   
 169          clist = gtk_clist_new (NUM_COLS);
 170          gtk_widget_show (clist);
 171          gtk_container_add (GTK_CONTAINER (scrolledwindow1), clist);
 172          gtk_widget_set_size_request(clist, 500, 200);
 173   
 174          gtk_clist_set_column_width (GTK_CLIST (clist), 0, 100);
 175          gtk_clist_set_column_width (GTK_CLIST (clist), 1, 200);
 176          gtk_clist_set_column_width (GTK_CLIST (clist), 2, 200);
 177   
 178          gtk_clist_set_column_justification(GTK_CLIST(clist), 0, GTK_JUSTIFY_CENTER);
 179          gtk_clist_set_column_justification(GTK_CLIST(clist), 1, GTK_JUSTIFY_LEFT);
 180          gtk_clist_set_column_justification(GTK_CLIST(clist), 2, GTK_JUSTIFY_LEFT);
 181   
 182          gtk_clist_column_titles_show (GTK_CLIST (clist));
 183   
 184          gtk_clist_set_sort_column(GTK_CLIST(clist), 0);
 185          gtk_clist_set_sort_type(GTK_CLIST(clist), GTK_SORT_ASCENDING);
 186   
 187          gtk_widget_show(sctp_error_dlg_w);
 188   
 189          col_arrows = (column_arrows *) g_malloc(sizeof(column_arrows) * NUM_COLS);
 190          win_style = gtk_widget_get_style(scrolledwindow1);
 191   
 192          for (i=0; i<NUM_COLS; i++) {
 193                  col_arrows[i].table = gtk_table_new(2, 2, FALSE);
 194                  gtk_table_set_col_spacings(GTK_TABLE(col_arrows[i].table), 5);
 195                  column_lb = gtk_label_new(titles[i]);
 196                  gtk_table_attach(GTK_TABLE(col_arrows[i].table), column_lb, 0, 1, 0, 2, GTK_SHRINK, GTK_SHRINK, 0, 0);
 197                  gtk_widget_show(column_lb);
 198   
 199                  gtk_clist_set_column_widget(GTK_CLIST(clist), i, col_arrows[i].table);
 200                  gtk_widget_show(col_arrows[i].table);
 201          }
 202   
 203   
 204          hbuttonbox2 = gtk_hbutton_box_new ();
 205          gtk_widget_show (hbuttonbox2);
 206          gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox2, FALSE, FALSE, 0);
 207          gtk_box_set_spacing (GTK_BOX (hbuttonbox2), 5);
 208          gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_SPREAD);
 209   
 210   
 211          bt_unselect = gtk_button_new_with_label ("Unselect");
 212          gtk_widget_show (bt_unselect);
 213          gtk_container_add (GTK_CONTAINER (hbuttonbox2), bt_unselect);
 214   
 215          bt_frame = gtk_button_new_with_label ("Go to Frame");
 216          gtk_widget_show (bt_frame);
 217          gtk_container_add (GTK_CONTAINER (hbuttonbox2), bt_frame);
 218   
 219          bt_close = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
 220          gtk_widget_show (bt_close);
 221          gtk_container_add (GTK_CONTAINER (hbuttonbox2), bt_close);
 222   
 223          g_signal_connect(sctp_error_dlg_w, "destroy", G_CALLBACK(dlg_destroy), NULL);
 224          g_signal_connect(clist, "select_row", G_CALLBACK(sctp_error_on_select_row), NULL);
 225          g_signal_connect(bt_unselect, "clicked", G_CALLBACK(sctp_error_on_unselect), NULL);
 226          g_signal_connect(bt_frame, "clicked", G_CALLBACK(sctp_error_on_frame), NULL);
 227          g_signal_connect(bt_close, "clicked", G_CALLBACK(sctp_error_on_close), NULL);
 228   
 229          sctp_error_dlg = sctp_error_dlg_w;
 230   
 231          g_free(col_arrows);
 232  }
Show more  




Change Warning 4268.30032 : Unused Value

Priority:
State:
Finding:
Owner:
Note: