summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-03-02 17:01:16 +0800
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2020-03-04 08:40:18 +0100
commitaa4811e9d072d78332587a3d5db0b13892242660 (patch)
tree0d2fc960f7296902b77f85ebe52bee7b824cc09a
parent8efa48c31bf857f81c3a480d79b895b0a9df2d0e (diff)
downloadglibmm-aa4811e9d072d78332587a3d5db0b13892242660.tar.gz
glibmm_interface_move test: Avoid warnings in test_IFace_get_type()
...for Visual Studio builds, since we don't really get unused function warnings from the TEST_IFACE items. Plus, we don't have glib autoptr support in Visual Studio builds, either.
-rw-r--r--tests/glibmm_interface_move/main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/glibmm_interface_move/main.cc b/tests/glibmm_interface_move/main.cc
index 1c3b028e..e73a3bfe 100644
--- a/tests/glibmm_interface_move/main.cc
+++ b/tests/glibmm_interface_move/main.cc
@@ -22,10 +22,12 @@ test_Iface_get_type(void)
{
// Avoid compiler warnings about unused functions.
// TODO: With C++17, use [[maybe unused]].
+#ifndef _MSC_VER
(void)TEST_IFACE;
(void)TEST_IS_IFACE;
(void)TEST_IFACE_GET_IFACE;
(void)glib_autoptr_cleanup_TestIface;
+#endif
static GType type = 0;