diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-03-22 15:17:27 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-03-22 15:17:27 -0400 |
commit | a14bb5578fa5de31c72c2ebc5fb1788890eb1648 (patch) | |
tree | da0c4db275a5c38a179d71da0946cfbaf25a6238 /gtk/gtkcssenumvalue.c | |
parent | fb573e58f12ebc26cf106f85aae4315e30f5078d (diff) | |
download | gtk+-a14bb5578fa5de31c72c2ebc5fb1788890eb1648.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcssenumvalue.c')
-rw-r--r-- | gtk/gtkcssenumvalue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssenumvalue.c b/gtk/gtkcssenumvalue.c index 1e105f6b90..add4af3d19 100644 --- a/gtk/gtkcssenumvalue.c +++ b/gtk/gtkcssenumvalue.c @@ -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]); } |