Bug 155286 - libgnomedb-1.3.91-11: 2 * local variable used before set
Summary: libgnomedb-1.3.91-11: 2 * local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Rodrigo Moya
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-04 13:15 UTC by David Binderman
Modified: 2006-03-07 12:19 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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