Silence deprecations in deprecated/ (again)

This commit is contained in:
Matthias Clasen 2011-10-11 23:44:43 -04:00
parent f5f242caf8
commit 3d282dcc2e
4 changed files with 12 additions and 6 deletions

View File

@ -15,6 +15,11 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
/* we know we are deprecated here, no need for warnings */
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include "gallocator.h"
#include <glib/gmessages.h>

View File

@ -30,6 +30,9 @@
#include "config.h"
/* we know we are deprecated here, no need for warnings */
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include "gcompletion.h"
#include <glib/gstrfuncs.h>

View File

@ -29,6 +29,9 @@
#include "config.h"
/* we know we are deprecated here, no need for warnings */
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include "grel.h"
#include <glib/gmessages.h>

View File

@ -23,13 +23,8 @@
#include "config.h"
#include "gmacros.h"
/* we know we are deprecated here, no need for warnings */
#undef G_GNUC_DEPRECATED
#define G_GNUC_DEPRECATED
#undef G_GNUC_DEPRECATED_FOR
#define G_GNUC_DEPRECATED_FOR(f)
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#include "gmessages.h"
#include "gslice.h"