forked from AuroraMiddleware/gtk
css: Silence a clang warning
Clang complains that this check can never be true. Since this is a argument range check which we do to catch bad input, convince clang to not complain instead of taking it out.
This commit is contained in:
parent
fb573e58f1
commit
a14bb5578f
@ -333,7 +333,7 @@ static GtkCssValue font_variant_values[] = {
|
||||
GtkCssValue *
|
||||
_gtk_css_font_variant_value_new (PangoVariant font_variant)
|
||||
{
|
||||
g_return_val_if_fail (font_variant < G_N_ELEMENTS (font_variant_values), NULL);
|
||||
g_return_val_if_fail ((gint)font_variant < G_N_ELEMENTS (font_variant_values), NULL);
|
||||
|
||||
return _gtk_css_value_ref (&font_variant_values[font_variant]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user