Add braces to appease gcc
-ftrack-macro-expansion=0 doesn't like if statements without braces when evaluating indentation levels.
This commit is contained in:
@ -573,7 +573,9 @@ gtk_compose_table_serialize (GtkComposeTable *compose_table,
|
|||||||
(long long) (p - contents), total_length); \
|
(long long) (p - contents), total_length); \
|
||||||
g_free (contents); \
|
g_free (contents); \
|
||||||
if (count) \
|
if (count) \
|
||||||
*count = 0; \
|
{ \
|
||||||
|
*count = 0; \
|
||||||
|
} \
|
||||||
return NULL; \
|
return NULL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -507,11 +507,17 @@ gtk_css_selector_ ## n ## _add_specificity (const GtkCssSelector *selector, \
|
|||||||
guint *elements) \
|
guint *elements) \
|
||||||
{ \
|
{ \
|
||||||
if (increase_id_specificity) \
|
if (increase_id_specificity) \
|
||||||
(*ids)++; \
|
{ \
|
||||||
|
(*ids)++; \
|
||||||
|
} \
|
||||||
if (increase_class_specificity) \
|
if (increase_class_specificity) \
|
||||||
(*classes)++; \
|
{ \
|
||||||
|
(*classes)++; \
|
||||||
|
} \
|
||||||
if (increase_element_specificity) \
|
if (increase_element_specificity) \
|
||||||
(*elements)++; \
|
{ \
|
||||||
|
(*elements)++; \
|
||||||
|
} \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
static const GtkCssSelectorClass GTK_CSS_SELECTOR_ ## c = { \
|
static const GtkCssSelectorClass GTK_CSS_SELECTOR_ ## c = { \
|
||||||
|
|||||||
@ -351,8 +351,10 @@ gtk_widget_query_size_for_orientation (GtkWidget *widget,
|
|||||||
: "height for width",
|
: "height for width",
|
||||||
for_size, min_size, nat_size);
|
for_size, min_size, nat_size);
|
||||||
if (min_baseline != -1 || nat_baseline != -1)
|
if (min_baseline != -1 || nat_baseline != -1)
|
||||||
g_string_append_printf (s, ", baseline %d/%d",
|
{
|
||||||
min_baseline, nat_baseline);
|
g_string_append_printf (s, ", baseline %d/%d",
|
||||||
|
min_baseline, nat_baseline);
|
||||||
|
}
|
||||||
g_string_append_printf (s, " (hit cache: %s)\n",
|
g_string_append_printf (s, " (hit cache: %s)\n",
|
||||||
found_in_cache ? "yes" : "no");
|
found_in_cache ? "yes" : "no");
|
||||||
g_message ("%s", s->str);
|
g_message ("%s", s->str);
|
||||||
|
|||||||
Reference in New Issue
Block a user