ostreedev / ostree-go

Golang bindings for httt://github.com/ostreedev/ostree
Other
48 stars 24 forks source link

builtin.go.h: remove some unused functions #25

Closed giuseppe closed 5 years ago

giuseppe commented 5 years ago

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

giuseppe commented 5 years ago

/cc @ashcrow @cgwalters