diff options
author | Robert Bragg <robert@linux.intel.com> | 2009-10-19 14:28:34 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2009-10-19 14:28:34 +0100 |
commit | 5427ef43dd28638512af5017747912dc0923a0c2 (patch) | |
tree | 19a3c4b1789fdf4cf09658e83ecfe2802262a00a | |
parent | 99a1f50ccdcb8320d8bbe481cd61e283658b52b4 (diff) | |
download | clutter-5427ef43dd28638512af5017747912dc0923a0c2.tar.gz |
[cogl-debug] avoid warnings when using COGL_NOTE with unbraced else clauses
When not building a debug build the compiler was warning about empty
else clauses with no braces due to code like:
if (blah)
do_foo();
else
COGL_NOTE (DRAW, "a-wibble");
This simply ensures that even for non debug builds COGL_NOTE will expand to
a single statement.
(cherry picked from commit ab76d64df02bc03f935e9cdf5a0a29c6ffeace72)
-rw-r--r-- | clutter/cogl/cogl-debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/cogl/cogl-debug.h b/clutter/cogl/cogl-debug.h index 0c602909a..a1e5a358c 100644 --- a/clutter/cogl/cogl-debug.h +++ b/clutter/cogl/cogl-debug.h @@ -67,7 +67,7 @@ typedef enum { #else /* !COGL_ENABLE_DEBUG */ -#define COGL_NOTE(type,...) +#define COGL_NOTE(type,...) G_STMT_START {} G_STMT_END #endif /* COGL_ENABLE_DEBUG */ |