profile: Disable deprecation warnings

We use an atexit() handler to print out the profile report coming from
Uprof. The g_atexit() call has been deprecated by GLib, but since this
use case is pretty specific and it's not meant to be turned on by
default (or distributed) then we can safely disable the deprecation
warnings inside clutter-profile.c.
This commit is contained in:
Emmanuele Bassi 2011-10-31 10:39:46 +00:00
parent 09de87b0e5
commit 0bfda78615

View File

@ -1,6 +1,7 @@
#ifdef CLUTTER_ENABLE_PROFILE
/* XXX - we need this for g_atexit() */
#define G_DISABLE_DEPRECATION_WARNINGS
#include "clutter-profile.h"
#include <stdlib.h>