From 77fdd7494e9ccaced094ce825022518dd50d1eaa Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 28 Jul 2009 13:57:07 +0100 Subject: [PATCH] Fix compiler warnings when COGL debug level=minimum --- clutter/cogl/common/cogl-debug.c | 2 +- clutter/pango/cogl-pango-render.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/clutter/cogl/common/cogl-debug.c b/clutter/cogl/common/cogl-debug.c index 28c475295..6ca99c5b3 100644 --- a/clutter/cogl/common/cogl-debug.c +++ b/clutter/cogl/common/cogl-debug.c @@ -96,9 +96,9 @@ pre_parse_hook (GOptionContext *context, gpointer data, GError **error) { +#ifdef COGL_ENABLE_DEBUG const char *env_string; -#ifdef COGL_ENABLE_DEBUG env_string = g_getenv ("COGL_DEBUG"); if (env_string != NULL) { diff --git a/clutter/pango/cogl-pango-render.c b/clutter/pango/cogl-pango-render.c index c98ddca1f..052233f85 100644 --- a/clutter/pango/cogl-pango-render.c +++ b/clutter/pango/cogl-pango-render.c @@ -437,7 +437,9 @@ cogl_pango_renderer_get_cached_glyph (PangoRenderer *renderer, COGL_NOTE (PANGO, "cache fail %i", glyph); } else - COGL_NOTE (PANGO, "cache success %i", glyph); + { + COGL_NOTE (PANGO, "cache success %i", glyph); + } return value; }