[glib] tests/slice: use G_GNUC_BEGIN_IGNORE_DEPRECATIONS



commit e195490a879e6fcdd5b861629fadd6b7e652237b
Author: Dan Winship <danw gnome org>
Date:   Mon May 13 11:47:12 2013 -0400

    tests/slice: use G_GNUC_BEGIN_IGNORE_DEPRECATIONS
    
    rather than implementing it by hand

 glib/tests/slice.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/slice.c b/glib/tests/slice.c
index cb1c527..c2226cd 100644
--- a/glib/tests/slice.c
+++ b/glib/tests/slice.c
@@ -1,7 +1,7 @@
 #include <glib.h>
 
 /* We test deprecated functionality here */
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 
 static void
 test_slice_config_subprocess (void)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]