Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Source.c: In function ‘color_settings’:
- Source.c:20:35: warning: passing argument 1 of ‘gtk_toggle_button_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- if (gtk_toggle_button_get_active(button)) return 6;
- ^~~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtkcheckbutton.h:35:0,
- from /usr/include/gtk-2.0/gtk/gtk.h:66,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtktogglebutton.h:84:12: note: expected ‘GtkToggleButton * {aka struct _GtkToggleButton *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Source.c:22:35: warning: passing argument 1 of ‘gtk_toggle_button_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- if (gtk_toggle_button_get_active(button)) return 8;
- ^~~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtkcheckbutton.h:35:0,
- from /usr/include/gtk-2.0/gtk/gtk.h:66,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtktogglebutton.h:84:12: note: expected ‘GtkToggleButton * {aka struct _GtkToggleButton *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Source.c: In function ‘prepare_combo_boxes’:
- Source.c:67:27: warning: passing argument 1 of ‘gtk_combo_box_set_model’ from incompatible pointer type [-Wincompatible-pointer-types]
- gtk_combo_box_set_model(combobox, model);
- ^~~~~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkcombobox.h:109:15: note: expected ‘GtkComboBox * {aka struct _GtkComboBox *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- void gtk_combo_box_set_model (GtkComboBox *combo_box,
- ^~~~~~~~~~~~~~~~~~~~~~~
- Source.c:67:37: warning: passing argument 2 of ‘gtk_combo_box_set_model’ from incompatible pointer type [-Wincompatible-pointer-types]
- gtk_combo_box_set_model(combobox, model);
- ^~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkcombobox.h:109:15: note: expected ‘GtkTreeModel * {aka struct _GtkTreeModel *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- void gtk_combo_box_set_model (GtkComboBox *combo_box,
- ^~~~~~~~~~~~~~~~~~~~~~~
- Source.c:68:28: warning: passing argument 1 of ‘gtk_combo_box_set_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- gtk_combo_box_set_active(combobox, 0);
- ^~~~~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkcombobox.h:101:15: note: expected ‘GtkComboBox * {aka struct _GtkComboBox *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- void gtk_combo_box_set_active (GtkComboBox *combo_box,
- ^~~~~~~~~~~~~~~~~~~~~~~~
- Source.c: In function ‘prepare_new_game’:
- Source.c:82:50: warning: passing argument 1 of ‘gtk_toggle_button_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- game->duplicates = gtk_toggle_button_get_active(duplicates);
- ^~~~~~~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtkcheckbutton.h:35:0,
- from /usr/include/gtk-2.0/gtk/gtk.h:66,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtktogglebutton.h:84:12: note: expected ‘GtkToggleButton * {aka struct _GtkToggleButton *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Source.c: In function ‘update_table’:
- Source.c:131:48: warning: passing argument 1 of ‘gtk_tree_view_get_model’ from incompatible pointer type [-Wincompatible-pointer-types]
- GtkTreeModel* model = gtk_tree_view_get_model(tree_view);
- ^~~~~~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtkcombobox.h:29:0,
- from /usr/include/gtk-2.0/gtk/gtk.h:72,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtktreeview.h:145:24: note: expected ‘GtkTreeView * {aka struct _GtkTreeView *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view);
- ^~~~~~~~~~~~~~~~~~~~~~~
- Source.c:152:37: warning: passing argument 1 of ‘gtk_list_store_insert_with_values’ from incompatible pointer type [-Wincompatible-pointer-types]
- gtk_list_store_insert_with_values (model, &iter, 10, 0, color[table[0]], 1, color[table[1]], 2, color[table[2]], 3, color[table[3]], 4, out[output[0]], 5, out[output[1]], 6, out[output[2]], 7, out[output[3]], -1);
- ^~~~~
- In file included from /usr/include/gtk-2.0/gtk/gtkentrycompletion.h:28:0,
- from /usr/include/gtk-2.0/gtk/gtkentry.h:43,
- from /usr/include/gtk-2.0/gtk/gtktreeview.h:31,
- from /usr/include/gtk-2.0/gtk/gtkcombobox.h:29,
- from /usr/include/gtk-2.0/gtk/gtk.h:72,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkliststore.h:114:15: note: expected ‘GtkListStore * {aka struct _GtkListStore *}’ but argument is of type ‘GtkTreeModel * {aka struct _GtkTreeModel *}’
- void gtk_list_store_insert_with_values (GtkListStore *list_store,
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Source.c: In function ‘get_answers’:
- Source.c:164:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- table[0] = gtk_combo_box_get_active(b1);
- ^~
- In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkcombobox.h:100:15: note: expected ‘GtkComboBox * {aka struct _GtkComboBox *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- gint gtk_combo_box_get_active (GtkComboBox *combo_box);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- Source.c:165:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- table[1] = gtk_combo_box_get_active(b2);
- ^~
- In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkcombobox.h:100:15: note: expected ‘GtkComboBox * {aka struct _GtkComboBox *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- gint gtk_combo_box_get_active (GtkComboBox *combo_box);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- Source.c:166:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- table[2] = gtk_combo_box_get_active(b3);
- ^~
- In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkcombobox.h:100:15: note: expected ‘GtkComboBox * {aka struct _GtkComboBox *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- gint gtk_combo_box_get_active (GtkComboBox *combo_box);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- Source.c:167:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
- table[3] = gtk_combo_box_get_active(b4);
- ^~
- In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
- from Source.c:1:
- /usr/include/gtk-2.0/gtk/gtkcombobox.h:100:15: note: expected ‘GtkComboBox * {aka struct _GtkComboBox *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- gint gtk_combo_box_get_active (GtkComboBox *combo_box);
- ^~~~~~~~~~~~~~~~~~~~~~~~
- Source.c: In function ‘main’:
- Source.c:229:19: warning: passing argument 1 of ‘prepare_new_game’ from incompatible pointer type [-Wincompatible-pointer-types]
- prepare_new_game(button, &game);
- ^~~~~~
- Source.c:72:6: note: expected ‘GtkWidget * {aka struct _GtkWidget *}’ but argument is of type ‘GObject * {aka struct _GObject *}’
- void prepare_new_game (GtkWidget* button, struct game* game)
- ^~~~~~~~~~~~~~~~
- Source.c: In function ‘update_table’:
- Source.c:147:62: warning: ‘snprintf’ output truncated before the last format character [-Wformat-truncation=]
- snprintf(filename, sizeof(char) * 18, "images\\output%i.txt", i);
- ^
- Source.c:147:3: note: ‘snprintf’ output between 19 and 29 bytes into a destination of size 18
- snprintf(filename, sizeof(char) * 18, "images\\output%i.txt", i);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement