mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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:
parent
09de87b0e5
commit
0bfda78615
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user