cogl-debug: Don't define _cogl_debug_flags when debugging disabled
authorNeil Roberts <neil@linux.intel.com>
Tue, 15 Feb 2011 12:44:40 +0000 (12:44 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 15 Feb 2011 14:26:17 +0000 (14:26 +0000)
_cogl_debug_flags isn't used when COGL_DEBUG is not defined so there's
no need to declare it.

Based on a patch by Fan, Chun-wei

http://bugzilla.clutter-project.org/show_bug.cgi?id=2561

clutter/cogl/cogl/cogl-debug.c

index d120502..73e88a7 100644 (file)
@@ -82,12 +82,8 @@ static const GDebugKey cogl_behavioural_debug_keys[] = {
 static const int n_cogl_behavioural_debug_keys =
   G_N_ELEMENTS (cogl_behavioural_debug_keys);
 
-#endif /* COGL_ENABLE_DEBUG */
-
 unsigned int _cogl_debug_flags[COGL_DEBUG_N_INTS];
 
-#ifdef COGL_ENABLE_DEBUG
-
 static void
 _cogl_parse_debug_string_for_keys (const char *value,
                                    gboolean enable,