mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-12 20:36:15 +01:00
Avoid a C99ism
Move a variable declaration to the beginning of the block; see bug 596561. Also remove a pointless register declaration.
This commit is contained in:
parent
442dadf311
commit
2f93bea177
@ -448,6 +448,7 @@ g_logv (const gchar *log_domain,
|
||||
GLogFunc log_func;
|
||||
GLogLevelFlags domain_fatal_mask;
|
||||
gpointer data = NULL;
|
||||
gboolean masquerade_fatal = FALSE;
|
||||
|
||||
if (was_fatal)
|
||||
test_level |= G_LOG_FLAG_FATAL;
|
||||
@ -491,7 +492,6 @@ g_logv (const gchar *log_domain,
|
||||
}
|
||||
}
|
||||
|
||||
gboolean masquerade_fatal = FALSE;
|
||||
if (test_level & G_LOG_FLAG_RECURSION)
|
||||
{
|
||||
/* we use a stack buffer of fixed size, since we're likely
|
||||
|
Loading…
Reference in New Issue
Block a user