Mercurial > pidgin.yaz
changeset 12221:152748df85cf
[gaim-migrate @ 14523]
Suppress a warning, and simplify an if statement. Isn't it nice when the compiler tells you about useless code?
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 25 Nov 2005 03:07:38 +0000 |
parents | 64254fbabc7b |
children | b1d06ade0e10 |
files | src/gtkstatusbox.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkstatusbox.c Fri Nov 25 01:33:10 2005 +0000 +++ b/src/gtkstatusbox.c Fri Nov 25 03:07:38 2005 +0000 @@ -85,7 +85,8 @@ NULL, /* class_data */ sizeof (GtkGaimStatusBox), 0, - (GInstanceInitFunc) gtk_gaim_status_box_init + (GInstanceInitFunc) gtk_gaim_status_box_init, + NULL /* value_table */ }; status_box_type = g_type_register_static(GTK_TYPE_COMBO_BOX, @@ -801,7 +802,7 @@ * "/core/savedstatus/current" and then calling * update_to_reflect_current_status() */ - if ((type < 0) || (type >= GAIM_STATUS_NUM_PRIMITIVES)) + if (type >= GAIM_STATUS_NUM_PRIMITIVES) return; if (status_box->account) {