mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Fix C++ warnings in g_error() code
Put space before ending semicolon in for(;;) ; to avoid C++ build warnings. Closes bug 586928.
This commit is contained in:
parent
160c39a9af
commit
09c3f6dd4b
@ -134,7 +134,9 @@ void g_assert_warning (const char *log_domain,
|
||||
#define G_LOG_DOMAIN ((gchar*) 0)
|
||||
#endif /* G_LOG_DOMAIN */
|
||||
#ifdef G_HAVE_ISO_VARARGS
|
||||
/* for(;;); so that GCC knows that control doesn't go past g_error() */
|
||||
/* for(;;) ; so that GCC knows that control doesn't go past g_error().
|
||||
* Put space before ending semicolon to avoid C++ build warnings.
|
||||
*/
|
||||
#define g_error(...) G_STMT_START { \
|
||||
g_log (G_LOG_DOMAIN, \
|
||||
G_LOG_LEVEL_ERROR, \
|
||||
|
Loading…
Reference in New Issue
Block a user