[glibmm/glibmm-2-54] tests: Avoid unused function warnings from G_DECLARE_INTERFACE()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-54] tests: Avoid unused function warnings from G_DECLARE_INTERFACE()
- Date: Wed, 20 Sep 2017 07:56:53 +0000 (UTC)
commit 2dd089653344c872523cdad9137b7fa1d280186c
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Sep 20 09:52:23 2017 +0200
tests: Avoid unused function warnings from G_DECLARE_INTERFACE()
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 c097cbb..1c3b028 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]