mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
[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.
This commit is contained in:
parent
61e6c57bdd
commit
c21f73ff88
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user