tests/slice: use G_GNUC_BEGIN_IGNORE_DEPRECATIONS
authorDan Winship <danw@gnome.org>
Mon, 13 May 2013 15:47:12 +0000 (11:47 -0400)
committerDan Winship <danw@gnome.org>
Mon, 13 May 2013 16:10:53 +0000 (12:10 -0400)
rather than implementing it by hand

glib/tests/slice.c

index cb1c527..c2226cd 100644 (file)
@@ -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)