Bugzilla – Bug 130201
local variable used before set
Last modified: 2005-11-16 18:36:28 UTC
I just tried to compile package fwnn-1.1.1a017-546 with the GNU C compiler It said jikouho_d.c:660: warning: "sone" is used uninitialized in this function The source code is sbn_set (dbn, &d_sbn, sone, dbn->sbn); Suggest initialise local variable "sone" before first use.
wrong component.
This is a false warning. sone (a pointer) only passed on to other functions and really set before being used (see sbn_set and sons_set later on in the same file. But it doesn't harm to set it, even when it's useless, so I've included it with other code cleanups for future versions of SUSE Linux.