In file included from /usr/include/glib-2.0/glib/glist.h:32,
from /usr/include/glib-2.0/glib/ghash.h:33,
from /usr/include/glib-2.0/glib.h:50,
from vendor/github.com/ostreedev/ostree-go/pkg/otbuiltin/commit.go:16:
vendor/github.com/ostreedev/ostree-go/pkg/otbuiltin/builtin.go.h: In function ‘_g_clear_object’:
/usr/include/glib-2.0/glib/gmem.h:121:18: warning: passing argument 1 of ‘g_object_unref’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
(destroy) (_ptr); \
^~~~
/usr/include/glib-2.0/gobject/gobject.h:6
it helps to solve a warning with cgo:
In file included from /usr/include/glib-2.0/glib/glist.h:32, from /usr/include/glib-2.0/glib/ghash.h:33, from /usr/include/glib-2.0/glib.h:50, from vendor/github.com/ostreedev/ostree-go/pkg/otbuiltin/commit.go:16: vendor/github.com/ostreedev/ostree-go/pkg/otbuiltin/builtin.go.h: In function ‘_g_clear_object’: /usr/include/glib-2.0/glib/gmem.h:121:18: warning: passing argument 1 of ‘g_object_unref’ discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] (destroy) (_ptr); \ ^~~~ /usr/include/glib-2.0/gobject/gobject.h:6
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com