Advertisement
ArBa

comp_mastermind

Jun 23rd, 2018
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 9.32 KB | None | 0 0
  1. Source.c: In function ‘color_settings’:
  2. Source.c:20:35: warning: passing argument 1 of ‘gtk_toggle_button_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  3.   if (gtk_toggle_button_get_active(button)) return 6;
  4.                                    ^~~~~~
  5. In file included from /usr/include/gtk-2.0/gtk/gtkcheckbutton.h:35:0,
  6.                  from /usr/include/gtk-2.0/gtk/gtk.h:66,
  7.                  from Source.c:1:
  8. /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 *}
  9.  gboolean   gtk_toggle_button_get_active        (GtkToggleButton *toggle_button);
  10.             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11. Source.c:22:35: warning: passing argument 1 of ‘gtk_toggle_button_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  12.   if (gtk_toggle_button_get_active(button)) return 8;
  13.                                    ^~~~~~
  14. In file included from /usr/include/gtk-2.0/gtk/gtkcheckbutton.h:35:0,
  15.                  from /usr/include/gtk-2.0/gtk/gtk.h:66,
  16.                  from Source.c:1:
  17. /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 *}
  18.  gboolean   gtk_toggle_button_get_active        (GtkToggleButton *toggle_button);
  19.             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. Source.c: In function ‘prepare_combo_boxes’:
  21. Source.c:67:27: warning: passing argument 1 of ‘gtk_combo_box_set_model’ from incompatible pointer type [-Wincompatible-pointer-types]
  22.    gtk_combo_box_set_model(combobox, model);
  23.                            ^~~~~~~~
  24. In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
  25.                  from Source.c:1:
  26. /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 *}
  27.  void          gtk_combo_box_set_model        (GtkComboBox     *combo_box,
  28.                ^~~~~~~~~~~~~~~~~~~~~~~
  29. Source.c:67:37: warning: passing argument 2 of ‘gtk_combo_box_set_model’ from incompatible pointer type [-Wincompatible-pointer-types]
  30.    gtk_combo_box_set_model(combobox, model);
  31.                                      ^~~~~
  32. In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
  33.                  from Source.c:1:
  34. /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 *}
  35.  void          gtk_combo_box_set_model        (GtkComboBox     *combo_box,
  36.                ^~~~~~~~~~~~~~~~~~~~~~~
  37. Source.c:68:28: warning: passing argument 1 of ‘gtk_combo_box_set_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  38.    gtk_combo_box_set_active(combobox, 0);
  39.                             ^~~~~~~~
  40. In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
  41.                  from Source.c:1:
  42. /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 *}
  43.  void          gtk_combo_box_set_active       (GtkComboBox     *combo_box,
  44.                ^~~~~~~~~~~~~~~~~~~~~~~~
  45. Source.c: In function ‘prepare_new_game’:
  46. Source.c:82:50: warning: passing argument 1 of ‘gtk_toggle_button_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  47.   game->duplicates = gtk_toggle_button_get_active(duplicates);
  48.                                                   ^~~~~~~~~~
  49. In file included from /usr/include/gtk-2.0/gtk/gtkcheckbutton.h:35:0,
  50.                  from /usr/include/gtk-2.0/gtk/gtk.h:66,
  51.                  from Source.c:1:
  52. /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 *}
  53.  gboolean   gtk_toggle_button_get_active        (GtkToggleButton *toggle_button);
  54.             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. Source.c: In function ‘update_table’:
  56. Source.c:131:48: warning: passing argument 1 of ‘gtk_tree_view_get_model’ from incompatible pointer type [-Wincompatible-pointer-types]
  57.   GtkTreeModel* model = gtk_tree_view_get_model(tree_view);
  58.                                                 ^~~~~~~~~
  59. In file included from /usr/include/gtk-2.0/gtk/gtkcombobox.h:29:0,
  60.                  from /usr/include/gtk-2.0/gtk/gtk.h:72,
  61.                  from Source.c:1:
  62. /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 *}
  63.  GtkTreeModel          *gtk_tree_view_get_model                     (GtkTreeView               *tree_view);
  64.                         ^~~~~~~~~~~~~~~~~~~~~~~
  65. Source.c:152:37: warning: passing argument 1 of ‘gtk_list_store_insert_with_values’ from incompatible pointer type [-Wincompatible-pointer-types]
  66.   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);
  67.                                      ^~~~~
  68. In file included from /usr/include/gtk-2.0/gtk/gtkentrycompletion.h:28:0,
  69.                  from /usr/include/gtk-2.0/gtk/gtkentry.h:43,
  70.                  from /usr/include/gtk-2.0/gtk/gtktreeview.h:31,
  71.                  from /usr/include/gtk-2.0/gtk/gtkcombobox.h:29,
  72.                  from /usr/include/gtk-2.0/gtk/gtk.h:72,
  73.                  from Source.c:1:
  74. /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 *}
  75.  void          gtk_list_store_insert_with_values  (GtkListStore *list_store,
  76.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. Source.c: In function ‘get_answers’:
  78. Source.c:164:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  79.   table[0] = gtk_combo_box_get_active(b1);
  80.                                       ^~
  81. In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
  82.                  from Source.c:1:
  83. /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 *}
  84.  gint          gtk_combo_box_get_active       (GtkComboBox     *combo_box);
  85.                ^~~~~~~~~~~~~~~~~~~~~~~~
  86. Source.c:165:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  87.   table[1] = gtk_combo_box_get_active(b2);
  88.                                       ^~
  89. In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
  90.                  from Source.c:1:
  91. /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 *}
  92.  gint          gtk_combo_box_get_active       (GtkComboBox     *combo_box);
  93.                ^~~~~~~~~~~~~~~~~~~~~~~~
  94. Source.c:166:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  95.   table[2] = gtk_combo_box_get_active(b3);
  96.                                       ^~
  97. In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
  98.                  from Source.c:1:
  99. /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 *}
  100.  gint          gtk_combo_box_get_active       (GtkComboBox     *combo_box);
  101.                ^~~~~~~~~~~~~~~~~~~~~~~~
  102. Source.c:167:38: warning: passing argument 1 of ‘gtk_combo_box_get_active’ from incompatible pointer type [-Wincompatible-pointer-types]
  103.   table[3] = gtk_combo_box_get_active(b4);
  104.                                       ^~
  105. In file included from /usr/include/gtk-2.0/gtk/gtk.h:72:0,
  106.                  from Source.c:1:
  107. /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 *}
  108.  gint          gtk_combo_box_get_active       (GtkComboBox     *combo_box);
  109.                ^~~~~~~~~~~~~~~~~~~~~~~~
  110. Source.c: In function ‘main’:
  111. Source.c:229:19: warning: passing argument 1 of ‘prepare_new_game’ from incompatible pointer type [-Wincompatible-pointer-types]
  112.   prepare_new_game(button, &game);
  113.                    ^~~~~~
  114. Source.c:72:6: note: expected ‘GtkWidget * {aka struct _GtkWidget *}’ but argument is of type ‘GObject * {aka struct _GObject *}
  115.  void prepare_new_game (GtkWidget* button, struct game* game)
  116.       ^~~~~~~~~~~~~~~~
  117. Source.c: In function ‘update_table’:
  118. Source.c:147:62: warning:snprintf’ output truncated before the last format character [-Wformat-truncation=]
  119.    snprintf(filename, sizeof(char) * 18, "images\\output%i.txt", i);
  120.                                                               ^
  121. Source.c:147:3: note:snprintf’ output between 19 and 29 bytes into a destination of size 18
  122.    snprintf(filename, sizeof(char) * 18, "images\\output%i.txt", i);
  123.    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement