mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
gtkrc: Crude hack to silence gcc 4.5 enum warnings
This commit is contained in:
parent
02ae5c8cdf
commit
b38249b35c
@ -2284,8 +2284,8 @@ gtk_rc_parse_any (GtkRcContext *context,
|
|||||||
msg = g_strconcat ("e.g. `", sym, "'", NULL);
|
msg = g_strconcat ("e.g. `", sym, "'", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scanner->token > GTK_RC_TOKEN_INVALID &&
|
if (scanner->token > (guint) GTK_RC_TOKEN_INVALID &&
|
||||||
scanner->token < GTK_RC_TOKEN_LAST)
|
scanner->token < (guint) GTK_RC_TOKEN_LAST)
|
||||||
{
|
{
|
||||||
symbol_name = "???";
|
symbol_name = "???";
|
||||||
for (i = 0; i < G_N_ELEMENTS (symbols); i++)
|
for (i = 0; i < G_N_ELEMENTS (symbols); i++)
|
||||||
@ -3371,7 +3371,7 @@ static guint
|
|||||||
gtk_rc_parse_xthickness (GScanner *scanner,
|
gtk_rc_parse_xthickness (GScanner *scanner,
|
||||||
GtkRcStyle *style)
|
GtkRcStyle *style)
|
||||||
{
|
{
|
||||||
if (g_scanner_get_next_token (scanner) != GTK_RC_TOKEN_XTHICKNESS)
|
if (g_scanner_get_next_token (scanner) != (guint) GTK_RC_TOKEN_XTHICKNESS)
|
||||||
return GTK_RC_TOKEN_XTHICKNESS;
|
return GTK_RC_TOKEN_XTHICKNESS;
|
||||||
|
|
||||||
if (g_scanner_get_next_token (scanner) != G_TOKEN_EQUAL_SIGN)
|
if (g_scanner_get_next_token (scanner) != G_TOKEN_EQUAL_SIGN)
|
||||||
@ -3389,7 +3389,7 @@ static guint
|
|||||||
gtk_rc_parse_ythickness (GScanner *scanner,
|
gtk_rc_parse_ythickness (GScanner *scanner,
|
||||||
GtkRcStyle *style)
|
GtkRcStyle *style)
|
||||||
{
|
{
|
||||||
if (g_scanner_get_next_token (scanner) != GTK_RC_TOKEN_YTHICKNESS)
|
if (g_scanner_get_next_token (scanner) != (guint) GTK_RC_TOKEN_YTHICKNESS)
|
||||||
return GTK_RC_TOKEN_YTHICKNESS;
|
return GTK_RC_TOKEN_YTHICKNESS;
|
||||||
|
|
||||||
if (g_scanner_get_next_token (scanner) != G_TOKEN_EQUAL_SIGN)
|
if (g_scanner_get_next_token (scanner) != G_TOKEN_EQUAL_SIGN)
|
||||||
|
Loading…
Reference in New Issue
Block a user