[glib] undef the proper macros to avoid warning message
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] undef the proper macros to avoid warning message
- Date: Fri, 5 Mar 2010 20:53:50 +0000 (UTC)
commit 0edd7cb8a10388e22cd6b3a37295a6ffddf7e693
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Mar 5 15:52:38 2010 -0500
undef the proper macros to avoid warning message
glib/tests/mem-overflow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/mem-overflow.c b/glib/tests/mem-overflow.c
index f78c7b7..9ebd443 100644
--- a/glib/tests/mem-overflow.c
+++ b/glib/tests/mem-overflow.c
@@ -61,8 +61,8 @@ mem_overflow (void)
CHECK_FAIL (g_try_renew (X, q, b));
free (p);
-#undef CHECK_EQ
-#undef CHECK_NEQ
+#undef CHECK_FAIL
+#undef CHECK_PASS
#define CHECK_FAIL(P) if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR)) { p = (P); exit (0); } g_test_trap_assert_failed();
#define CHECK_PASS(P) if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR)) { p = (P); exit (0); } g_test_trap_assert_passed();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]