summaryrefslogtreecommitdiff
path: root/glib/tests/autoptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'glib/tests/autoptr.c')
-rw-r--r--glib/tests/autoptr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/glib/tests/autoptr.c b/glib/tests/autoptr.c
index 408f14b6c..c8c130d5c 100644
--- a/glib/tests/autoptr.c
+++ b/glib/tests/autoptr.c
@@ -1,6 +1,12 @@
#include <glib.h>
#include <string.h>
+typedef struct _HNVC HasNonVoidCleanup;
+HasNonVoidCleanup * non_void_cleanup (HasNonVoidCleanup *);
+
+/* Should not cause any warnings with -Wextra */
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(HasNonVoidCleanup, non_void_cleanup)
+
static void
test_autofree (void)
{