gcc -DHAVE_CONFIG_H -I. -I.. -DPIXMAP_PATH=\""/usr/share/gmpc/icons/"\" -DGLADE_PATH=\""/usr/share/gmpc"\" -DVERSION=\"11.8.16\" -DGMPC_BUILD=1 -I.. -I.. -I../src -I../src -I../src/egg -I../src/egg -I../src/Tools -I../src/Tools -I../src/vala -I../src/vala -I../src/Widgets -I../src/Widgets -I../src/GUI -I../src/GUI -I../src/MetaData/ -I../src/MetaData/ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-
Tools/gmpc-database-update-tracker.c: In function ‘gmpc_tools_database_update_tracker_real_get_version’:vala -I../src/Widgets -I../src/Widgets -I../src/GUI -I../src/GUI -I../src/MetaData/ -I../src/MetaData/ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-
Tools/gmpc-database-update-tracker.c:113:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
113 | _tmp0_ = GMPC_TOOLS_DATABASE_UPDATE_TRACKER_version;
| ^
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from ./gmpc-extras.h:6,
from Tools/gmpc-liststore-sort.c:23: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
723 | {
| ^
Tools/gmpc-metadata-prefetcher.c: In function ‘gmpc_tools_metadata_prefetcher_real_get_version’:
Tools/gmpc-metadata-prefetcher.c:84:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
84 | _tmp0_ = GMPC_TOOLS_METADATA_PREFETCHER_version;
| ^
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
from /usr/include/glib-2.0/glib.h:34: Tools/gmpc-metadata-prefetcher.c: In function ‘gmpc_tools_metadata_prefetcher_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]
131 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
| ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:262:7: note: in expansion of macro ‘g_atomic_pointer_get’
262 | (!g_atomic_pointer_get (location) && \
| ^~~~~~~~~~~~~~~~~~~~
Tools/gmpc-metadata-prefetcher.c:231:13: note: in expansion of macro ‘g_once_init_enter’
231 | if (g_once_init_enter (&gmpc_tools_metadata_prefetcher_type_id__once)) {
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
73 | GTimeVal last_popdown;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/glib-2.0/gobject/gbinding.h:30: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
580 | struct _GTimeVal
| ^~~~~~~~~
Tools/gmpc-database-update-tracker.c: In function ‘gmpc_tools_database_update_tracker_start_updating’:
Tools/gmpc-database-update-tracker.c:154:9: error: implicit declaration of function ‘main_window_add_status_icon’ [-Werror=implicit-function-declaration]
154 | main_window_add_status_icon ((GtkWidget*) _tmp4_);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Tools/gmpc-database-update-tracker.c: In function ‘gmpc_tools_database_update_tracker_stop_updating’:
Tools/gmpc-database-update-tracker.c:171:16: warning: assignment to ‘GtkContainer *’ {aka ‘struct _GtkContainer *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} [-Wincompatible-pointer-types]
171 | _tmp2_ = gtk_widget_get_parent ((GtkWidget*) _tmp1_);
| ^
Tools/gmpc-database-update-tracker.c: In function ‘gmpc_tools_database_update_tracker_connection_changed’:
Tools/gmpc-database-update-tracker.c:253:53: warning: passing argument 1 of ‘gmpc_profiles_get_current’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
253 | _tmp1_ = gmpc_profiles_get_current (_tmp0_);
| ^~~~~~
In file included from ./plugin.h:25,
from Tools/gmpc-database-update-tracker.c:36: gmpc-profiles.gob:452:52: note: expected ‘GmpcProfiles *’ {aka ‘struct _GmpcProfiles *’} but argument is of type ‘const GmpcProfiles *’ {aka ‘const struct _GmpcProfiles *’}
452 | public
| ^ Tools/gmpc-database-update-tracker.c:263:65: warning: passing argument 1 of ‘gmpc_profiles_get_db_update_time’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
263 | dut = gmpc_profiles_get_db_update_time (_tmp3_, _tmp4_);
| ^~~~~~
gmpc-profiles.gob:333:55: note: expected ‘GmpcProfiles *’ {aka ‘struct _GmpcProfiles *’} but argument is of type ‘const GmpcProfiles *’ {aka ‘const struct _GmpcProfiles *’}
333 | public
| ^ Tools/gmpc-database-update-tracker.c:271:67: warning: passing argument 1 of ‘gmpc_profiles_set_db_update_time’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
271 | gmpc_profiles_set_db_update_time (_tmp5_, _tmp6_, serv_dut);
| ^~~~~~
gmpc-profiles.gob:606:56: note: expected ‘GmpcProfiles *’ {aka ‘struct _GmpcProfiles *’} but argument is of type ‘const GmpcProfiles *’ {aka ‘const struct _GmpcProfiles *’}
606 | public
| ^ Tools/gmpc-database-update-tracker.c: In function ‘gmpc_tools_database_update_tracker_status_changed’:
Tools/gmpc-database-update-tracker.c:308:53: warning: passing argument 1 of ‘gmpc_profiles_get_current’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
308 | _tmp1_ = gmpc_profiles_get_current (_tmp0_);
| ^~~~~~ gmpc-profiles.gob:452:52: note: expected ‘GmpcProfiles *’ {aka ‘struct _GmpcProfiles *’} but argument is of type ‘const GmpcProfiles *’ {aka ‘const struct _GmpcProfiles *’}
452 | public
| ^
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from Tools/gmpc-metadata-appearance.c:24: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
723 | {
| ^
Tools/gmpc-database-update-tracker.c:319:65: warning: passing argument 1 of ‘gmpc_profiles_get_db_update_time’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
319 | dut = gmpc_profiles_get_db_update_time (_tmp3_, _tmp4_);
| ^~~~~~
gmpc-profiles.gob:333:55: note: expected ‘GmpcProfiles *’ {aka ‘struct _GmpcProfiles *’} but argument is of type ‘const GmpcProfiles *’ {aka ‘const struct _GmpcProfiles *’}
333 | public
| ^ Tools/gmpc-database-update-tracker.c:328:67: warning: passing argument 1 of ‘gmpc_profiles_set_db_update_time’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
328 | gmpc_profiles_set_db_update_time (_tmp6_, _tmp7_, serv_dut);
| ^~~~~~
gmpc-profiles.gob:606:56: note: expected ‘GmpcProfiles *’ {aka ‘struct _GmpcProfiles *’} but argument is of type ‘const GmpcProfiles *’ {aka ‘const struct _GmpcProfiles *’}
606 | public
| ^
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
from /usr/include/glib-2.0/glib.h:34: Tools/gmpc-database-update-tracker.c: In function ‘gmpc_tools_database_update_tracker_get_type’:
gcc -DHAVE_CONFIG_H -I. -I.. -DPIXMAP_PATH=\""/usr/share/gmpc/icons/"\" -DGLADE_PATH=\""/usr/share/gmpc"\" -DVERSION=\"11.8.16\" -DGMPC_BUILD=1 -I.. -I.. -I../src -I../src -I../src/egg -I../src/egg -I../src/Tools -I../src/Tools -I../src/vala -I../src/
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]vala -I../src/Widgets -I../src/Widgets -I../src/GUI -I../src/GUI -I../src/MetaData/ -I../src/MetaData/ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-
131 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
| ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:262:7: note: in expansion of macro ‘g_atomic_pointer_get’
262 | (!g_atomic_pointer_get (location) && \
| ^~~~~~~~~~~~~~~~~~~~ Tools/gmpc-database-update-tracker.c:432:13: note: in expansion of macro ‘g_once_init_enter’
432 | if (g_once_init_enter (&gmpc_tools_database_update_tracker_type_id__once)) {
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
from /usr/include/glib-2.0/glib.h:34: Tools/gmpc-liststore-sort.c: In function ‘gmpc_tools_liststore_sort_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]
131 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
| ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:262:7: note: in expansion of macro ‘g_atomic_pointer_get’
262 | (!g_atomic_pointer_get (location) && \
| ^~~~~~~~~~~~~~~~~~~~
Tools/gmpc-liststore-sort.c:239:13: note: in expansion of macro ‘g_once_init_enter’
239 | if (g_once_init_enter (&gmpc_tools_liststore_sort_type_id__once)) {
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
from /usr/include/gtk-2.0/gtk/gtk.h:126: /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
73 | GTimeVal last_popdown;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
from /usr/include/glib-2.0/glib.h:32,
from Tools/gmpc-metadata-appearance.c:23: /usr/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
580 | struct _GTimeVal
| ^~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from ./plugin.h:20,
from ./main.h:35,
from Tools/gmpc_easy_download.c:27: /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning: ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
236 | void gtk_type_init (GTypeDebugFlags debug_flags);
| ^~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from /usr/include/glib-2.0/gio/gioenums.h:30,
from /usr/include/glib-2.0/gio/giotypes.h:30,
from /usr/include/glib-2.0/gio/gio.h:28,
from /usr/include/libsoup-2.4/libsoup/soup-types.h:9,
from /usr/include/libsoup-2.4/libsoup/soup-address.h:11,
from /usr/include/libsoup-2.4/libsoup/soup.h:11,
from Tools/gmpc_easy_download.c:24: /usr/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
723 | {
| ^
gcc -DHAVE_CONFIG_H -I. -I.. -DPIXMAP_PATH=\""/usr/share/gmpc/icons/"\" -DGLADE_PATH=\""/usr/share/gmpc"\" -DVERSION=\"11.8.16\" -DGMPC_BUILD=1 -I.. -I.. -I../src -I../src -I../src/egg -I../src/egg -I../src/Tools -I../src/Tools -I../src/vala -I../src/
Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_real_get_version’:);
Tools/gmpc-metadata-appearance.c:81:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
81 | _tmp0_ = GMPC_TOOLS_METADATA_APPEARANCE_version;
| ^
Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_on_checkbutton_show_lyrics_toggled’:
Tools/gmpc-metadata-appearance.c:106:38: warning: passing argument 1 of ‘cfg_set_single_value_as_int’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
106 | cfg_set_single_value_as_int (_tmp0_, "MetaData", "show-lyrics", (gint) gtk_toggle_button_get_active ((GtkToggleButton*) source));
| ^~~~~~
In file included from ./plugin.h:23,
from Tools/gmpc-metadata-appearance.c:30: ./config1.h:120:47: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
120 | void cfg_set_single_value_as_int(config_obj * cfg, const char *class,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_on_checkbutton_show_artist_information_toggled’:
Tools/gmpc-metadata-appearance.c:115:38: warning: passing argument 1 of ‘cfg_set_single_value_as_int’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
115 | cfg_set_single_value_as_int (_tmp0_, "MetaData", "show-artist-information", (gint) gtk_toggle_button_get_active ((GtkToggleButton*) source));
| ^~~~~~
./config1.h:120:47: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
120 | void cfg_set_single_value_as_int(config_obj * cfg, const char *class,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_on_checkbutton_show_web_links_toggled’:
Tools/gmpc-metadata-appearance.c:124:38: warning: passing argument 1 of ‘cfg_set_single_value_as_int’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
124 | cfg_set_single_value_as_int (_tmp0_, "MetaData", "show-web-links", (gint) gtk_toggle_button_get_active ((GtkToggleButton*) source));
| ^~~~~~
./config1.h:120:47: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
120 | void cfg_set_single_value_as_int(config_obj * cfg, const char *class,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_on_checkbutton_show_similar_artists_toggled’:
Tools/gmpc-metadata-appearance.c:133:38: warning: passing argument 1 of ‘cfg_set_single_value_as_int’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
133 | cfg_set_single_value_as_int (_tmp0_, "MetaData", "show-similar-artist", (gint) gtk_toggle_button_get_active ((GtkToggleButton*) source));
| ^~~~~~
./config1.h:120:47: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
120 | void cfg_set_single_value_as_int(config_obj * cfg, const char *class,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_on_checkbutton_show_similar_songs_toggled’:
Tools/gmpc-metadata-appearance.c:142:38: warning: passing argument 1 of ‘cfg_set_single_value_as_int’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
142 | cfg_set_single_value_as_int (_tmp0_, "MetaData", "show-similar-songs", (gint) gtk_toggle_button_get_active ((GtkToggleButton*) source));
| ^~~~~~
./config1.h:120:47: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
120 | void cfg_set_single_value_as_int(config_obj * cfg, const char *class,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_on_checkbutton_show_guitar_tabs_toggled’:
Tools/gmpc-metadata-appearance.c:151:38: warning: passing argument 1 of ‘cfg_set_single_value_as_int’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
151 | cfg_set_single_value_as_int (_tmp0_, "MetaData", "show-guitar-tabs", (gint) gtk_toggle_button_get_active ((GtkToggleButton*) source));
| ^~~~~~
./config1.h:120:47: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
120 | void cfg_set_single_value_as_int(config_obj * cfg, const char *class,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c: In function ‘gmpc_tools_metadata_appearance_real_preferences_pane_construct’:
Tools/gmpc-metadata-appearance.c:226:195: warning: passing argument 1 of ‘cfg_get_single_value_as_int_with_default’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
226 | gtk_toggle_button_set_active ((GtkToggleButton*) G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, GTK_TYPE_CHECK_BUTTON, GtkCheckButton), (gboolean) cfg_get_single_value_as_int_with_default (_tmp9_, "MetaData", "show-lyrics", 1));
| ^~~~~~
./config1.h:131:59: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
131 | int cfg_get_single_value_as_int_with_default(config_obj * cfg,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c:233:196: warning: passing argument 1 of ‘cfg_get_single_value_as_int_with_default’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
233 | gtk_toggle_button_set_active ((GtkToggleButton*) G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, GTK_TYPE_CHECK_BUTTON, GtkCheckButton), (gboolean) cfg_get_single_value_as_int_with_default (_tmp13_, "MetaData", "show-artist-information", 1)
| ^~~~~~~
./config1.h:131:59: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
131 | int cfg_get_single_value_as_int_with_default(config_obj * cfg,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c:240:196: warning: passing argument 1 of ‘cfg_get_single_value_as_int_with_default’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
240 | gtk_toggle_button_set_active ((GtkToggleButton*) G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, GTK_TYPE_CHECK_BUTTON, GtkCheckButton), (gboolean) cfg_get_single_value_as_int_with_default (_tmp17_, "MetaData", "show-web-links", 1));
| ^~~~~~~
./config1.h:131:59: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
131 | int cfg_get_single_value_as_int_with_default(config_obj * cfg,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c:247:196: warning: passing argument 1 of ‘cfg_get_single_value_as_int_with_default’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
247 | gtk_toggle_button_set_active ((GtkToggleButton*) G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, GTK_TYPE_CHECK_BUTTON, GtkCheckButton), (gboolean) cfg_get_single_value_as_int_with_default (_tmp21_, "MetaData", "show-similar-artist", 1));
| ^~~~~~~
./config1.h:131:59: note: expected ‘config_obj *’ {aka ‘struct _config_obj *’} but argument is of type ‘const config_obj *’ {aka ‘const struct _config_obj *’}
131 | int cfg_get_single_value_as_int_with_default(config_obj * cfg,
| ~~~~~~~~~~~~~^~~ Tools/gmpc-metadata-appearance.c:254:196: warning: passing argument 1 of ‘cfg_get_single_value_as_int_with_default’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
254 | gtk_toggle_button_set_active ((GtkToggleButton*) G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, GTK_TYPE_CHECK_BUTTON, GtkCheckButton), (gboolean) cfg_get_single_value_as_int_with_default (_tmp25_, "MetaData", "show-similar-songs", 1));
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:25:14 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,706 |