diff options
author | Murray Cumming <murrayc@murrayc.com> | 2017-05-26 15:00:35 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2017-05-26 15:01:36 +0200 |
commit | 6e9d8ec77d4c6a55dbef8b333c3514f4aa0b609a (patch) | |
tree | 495ad14aab1908e201142c6597e48294927ceba7 /tests | |
parent | 82b2dc694fd2ed4e2c51a7aef67cb1c75dab0380 (diff) | |
download | glibmm-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.cc | 7 |
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) |