build: Silence clang warning on older glib autoptr usage
authorEric Blake <eblake@redhat.com>
Tue, 17 Mar 2020 17:55:34 +0000 (12:55 -0500)
committerJohn Snow <jsnow@redhat.com>
Wed, 18 Mar 2020 18:03:46 +0000 (14:03 -0400)
commit9bda600b0833821685e23068e50be5134dc0ab05
tree814ff0dd4076c651236a5387d4b72f1e5eba6166
parentd649689a8ecb2e276cc20d3af6d416e3c299cb17
build: Silence clang warning on older glib autoptr usage

glib's G_DEFINE_AUTOPTR_CLEANUP_FUNC() macro defines several static
inline functions, often with some of them unused, but prior to 2.57.2
did not mark the functions as such.  As a result, clang (but not gcc)
fails to build with older glib unless -Wno-unused-function is enabled.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20200317175534.196295-1-eblake@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
configure