suppress warning.

2002-04-23  Jody Goldberg <jody@gnome.org>

	* gnome-settings-accessibility-keyboard.c (get_xkb_desc_rec) :
	  suppress warning.
This commit is contained in:
Jody Goldberg 2002-04-23 18:27:19 +00:00 committed by Jody Goldberg
parent 3a3c70b4ad
commit b16ef6d7cd
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2002-04-23 Jody Goldberg <jody@gnome.org>
* gnome-settings-accessibility-keyboard.c (get_xkb_desc_rec) :
suppress warning.
2002-04-17 Rachel Hestilow <hestilow@ximian.com>
* GNOME_SettingsDaemon.server.in: s/gnome2/gnome

View file

@ -69,7 +69,7 @@ static XkbDescRec *
get_xkb_desc_rec (void)
{
XkbDescRec *desc;
Status status;
Status status = Success; /* Any bogus value, to suppress warning */
if (!xkb_enabled ())
return NULL;
@ -83,9 +83,9 @@ get_xkb_desc_rec (void)
XSync (GDK_DISPLAY (), FALSE);
gdk_error_trap_pop ();
g_return_val_if_fail (status == Success, NULL);
g_return_val_if_fail (desc != NULL, NULL);
g_return_val_if_fail (desc->ctrls != NULL, NULL);
g_return_val_if_fail (status == Success, NULL);
return desc;
}