jon-turney / pidgin-musictracker

Automatically exported from code.google.com/p/pidgin-musictracker
GNU General Public License v2.0
0 stars 0 forks source link

Compile error, g_value_array_get_nth’ is deprecated #282

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
make install aborts with the following errors using GNU Make 3.82 and gcc (GCC) 
4.7.2

mpris.c: In function ‘mpris_status_signal_struct_cb’:
mpris.c:153:13: error: ‘g_value_array_get_nth’ is deprecated (declared at 
/usr/include/glib-2.0/gobject/gvaluearray.h:65): Use 'g_array_index' instead 
[-Werror=deprecated-declarations]
mpris.c: In function ‘mpris_check_player’:
mpris.c:336:13: error: ‘g_value_array_free’ is deprecated (declared at 
/usr/include/glib-2.0/gobject/gvaluearray.h:72): Use 'g_array_unref' instead 
[-Werror=deprecated-declarations]
cc1: all warnings being treated as errors
make[2]: *** [mpris.lo] Error 1
make[2]: Leaving directory 
`/usr/AUR/pidgin-musictracker/src/pidgin-musictracker-0.4.22/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/usr/AUR/pidgin-musictracker/src/pidgin-musictracker-0.4.22'
make: *** [all] Error 2

Original issue reported on code.google.com by SanskritFritz on 19 Feb 2013 at 1:47

GoogleCodeExporter commented 8 years ago
Same here

gcc 4.7.2-4
glib 1.2.10-9
glib2 2.34.3-1
glibc 2.17-3

Original comment by nick.cab...@gmail.com on 26 Feb 2013 at 3:10

GoogleCodeExporter commented 8 years ago
Workaround:
make CFLAGS="-Wno-deprecated-declarations" 

Original comment by SanskritFritz on 26 Feb 2013 at 8:09

GoogleCodeExporter commented 8 years ago
Issue 283: patch included

Original comment by rohanion...@gmail.com on 24 Apr 2014 at 10:08