From 47b134797a12d1cf34390150be67cd16becebb86 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Thu, 19 Nov 2015 16:16:23 +0100 Subject: [PATCH] tests: use GMIO_PRAGMA_MSVC_WARNING_XXX() --- tests/test_core_platform.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/test_core_platform.c b/tests/test_core_platform.c index ffade55..9a27315 100644 --- a/tests/test_core_platform.c +++ b/tests/test_core_platform.c @@ -22,10 +22,8 @@ #include #include -#ifdef _MSC_VER -# pragma warning(push) -# pragma warning(disable : 4127) /* "conditional expression is constant" */ -#endif +/* Disable MSVC warning "conditional expression is constant" */ +GMIO_PRAGMA_MSVC_WARNING_PUSH_AND_DISABLE(4127) const char* test_platform__alignment() { @@ -105,6 +103,4 @@ const char* test_platform__compiler() return NULL; } -#ifdef _MSC_VER -# pragma warning(pop) -#endif +GMIO_PRAGMA_MSVC_WARNING_POP()