summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2017-05-26 15:00:35 +0200
committerMurray Cumming <murrayc@murrayc.com>2017-05-26 15:01:36 +0200
commit6e9d8ec77d4c6a55dbef8b333c3514f4aa0b609a (patch)
tree495ad14aab1908e201142c6597e48294927ceba7 /tests
parent82b2dc694fd2ed4e2c51a7aef67cb1c75dab0380 (diff)
downloadglibmm-6e9d8ec77d4c6a55dbef8b333c3514f4aa0b609a.tar.gz
tests: Avoid an unused function warnings from G_DECLARE_INTERFACE().
Diffstat (limited to 'tests')
-rw-r--r--tests/glibmm_interface_move/main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/glibmm_interface_move/main.cc b/tests/glibmm_interface_move/main.cc
index 16fa72a4..b1888fd1 100644
--- a/tests/glibmm_interface_move/main.cc
+++ b/tests/glibmm_interface_move/main.cc
@@ -20,6 +20,13 @@ static void test_Iface_init(gpointer)
GType
test_Iface_get_type(void)
{
+ // Avoid compiler warnings about unused functions.
+ // TODO: With C++17, use [[maybe unused]].
+ (void)TEST_IFACE;
+ (void)TEST_IS_IFACE;
+ (void)TEST_IFACE_GET_IFACE;
+ (void)glib_autoptr_cleanup_TestIface;
+
static GType type = 0;
if (!type)