[clutter] profile: Disable deprecation warnings



commit 0bfda786153947e0acc232b7b83b97db399f4591
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Oct 31 10:39:46 2011 +0000

    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.

 clutter/clutter-profile.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-profile.c b/clutter/clutter-profile.c
index de11156..d12850c 100644
--- a/clutter/clutter-profile.c
+++ b/clutter/clutter-profile.c
@@ -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>



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