Bug 818611: Move declaration of "GSource* gs" to beginning of code block, to fix build warning in gtk2xtbin.c. r=karlt

This commit is contained in:
Daniel Holbert 2012-12-05 21:05:42 -08:00
parent 471bd4ee14
commit ff94edc40f

View File

@ -465,6 +465,7 @@ xt_client_xloop_create(void)
mainloop */
if (0 == num_widgets) {
int cnumber;
GSource* gs;
/* Set up xtdisplay in case we're missing one */
if (!xtdisplay) {
@ -475,7 +476,7 @@ xt_client_xloop_create(void)
* hook Xt event loop into the glib event loop.
*/
/* the assumption is that gtk_init has already been called */
GSource* gs = g_source_new(&xt_event_funcs, sizeof(GSource));
gs = g_source_new(&xt_event_funcs, sizeof(GSource));
if (!gs) {
return;
}