Bugzilla – Bug 153962
gal2-2.5.3-10: local variable used before set
Last modified: 2006-10-05 09:13:13 UTC
I just tried to compile package gal2-2.5.3-10 with a pre release version 4.2 of the GNU C compiler. It said gal-view-new-dialog.c:259: warning: "entry" is used uninitialized in this function The source code is if (entry && GTK_IS_ENTRY(entry)) { I agree with the compiler. Suggest initialise local variable "entry" before first use.
Still broken, some three months later, in the version that ships in Suse Linux 10.1
Is it gal2 package that you are talking about ? Gal was merged into Evolution during 2.4 (we have had two stable releases since) and we do not depend on/maintain this module anymore. Not sure if somebody else uses this package anymore. If no, I suggest we drop it. In gal-view-new-dialog.c in Evolution however, the variable 'entry' is initialized correctly.
David : per comment #2, I am resolving the bug fixed.