[glibmm/kjellahl/meson-build-master] glibmm_interface_move test: Avoid warnings in test_IFace_get_type()
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/kjellahl/meson-build-master] glibmm_interface_move test: Avoid warnings in test_IFace_get_type()
- Date: Mon, 2 Mar 2020 09:38:14 +0000 (UTC)
commit 150bee0c68e4e293a5630159b2666e103805df8c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Mar 2 17:01:16 2020 +0800
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.
tests/glibmm_interface_move/main.cc | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/glibmm_interface_move/main.cc b/tests/glibmm_interface_move/main.cc
index b1888fd1..88c8f2ba 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]