diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-03-02 17:01:16 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-03-02 17:01:16 +0800 |
commit | 150bee0c68e4e293a5630159b2666e103805df8c (patch) | |
tree | 81e0af7797dd286217af2c06455f6e1ac44668e9 /tests | |
parent | 949d3b6827d3f079cf8f334105c3e630edf1862b (diff) | |
download | glibmm-150bee0c68e4e293a5630159b2666e103805df8c.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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/glibmm_interface_move/main.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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; |