From 167c8aac1b0c99e647939d96fefb97a025356be9 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 15 Feb 2011 12:44:40 +0000 Subject: [PATCH] cogl-debug: Don't define _cogl_debug_flags when debugging disabled _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 --- cogl/cogl-debug.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cogl/cogl-debug.c b/cogl/cogl-debug.c index d12050257..73e88a79c 100644 --- a/cogl/cogl-debug.c +++ b/cogl/cogl-debug.c @@ -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,