Bug 155286

Summary: libgnomedb-1.3.91-11: 2 * local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Rodrigo Moya <rodrigo>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: gnome-bugs
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-03-04 13:15:04 UTC
I just tried to compile package libgnomedb-1.3.91-11 with the Intel C compiler.

It said

1.

gnome-db-qf-agg.c(982): warning #592: variable "list" is used before its value is set

The source code is

	list = g_slist_next (list);

First opinion would be to initialise local variable "list" before first use.
However, it seems that "list" isn't used anywhere, so maybe it is safe to delete it.

2.

gnome-db-dict.c(504): warning #592: variable "node" is used before its value is set

The source code is

        xmlNodePtr node;

        g_assert (node);

Suggest initialise local variable "node" before first use.
Comment 1 Rodrigo Moya 2006-03-07 12:19:58 UTC
Fixed package submitted to autobuild