Francesco149 / sharenix

A ShareX clone for Linux and FreeBSD.
GNU General Public License v3.0
589 stars 35 forks source link

warning: ‘GThreadFunctions’ is deprecated #82

Open KernelPanic0 opened 2 years ago

KernelPanic0 commented 2 years ago

never used liunx before so there might be something obvious im not seeing, sorry. I'm on manjaro with i3wm

In file included from /usr/include/glib-2.0/glib.h:112, from /home/USER/go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20191030024613-af2e013261f5/glib/glib.go.h:4: /usr/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here 56 | struct _GThreadFunctions | ^~~~~

github.com/mattn/go-gtk/glib

In file included from /home/USER/go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20191030024613-af2e013261f5/glib/glib.go:5: /home/USER/go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20191030024613-af2e013261f5/glib/glib.go.h:183:1: warning: ‘GThreadFunctions’ is deprecated [-Wdeprecated-declarations] 183 | static void _g_thread_init(GThreadFunctions *vtable) { | ^~ In file included from /usr/include/glib-2.0/glib.h:112, from /home/USER/go/pkg/mod/github.com/mattn/go-gtk@v0.0.0-20191030024613-af2e013261f5/glib/glib.go.h:4: /usr/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here 56 | struct _GThreadFunctions | ^~~~~ cgo-gcc-prolog: In function ‘_cgo_1efdb3e50950_Cfunc__g_thread_init’: cgo-gcc-prolog:191:3: warning: ‘GThreadFunctions’ is deprecated [-Wdeprecated-declarations] /usr/include/glib-2.0/glib/deprecated/gthread.h:56:8: note: declared here 56 | struct _GThreadFunctions | ^~~~~