Bug 149715 - local variable used before set
Summary: local variable used before set
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: Gtk-Perl
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthias Saou
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-25 18:03 UTC by David Binderman
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-04-07 19:42:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2005-02-25 18:03:11 UTC
Description of problem:

I just tried to compile package Gtk-Perl-0.7008-37 from 
Redhat Fedora Extras development tree.

The compiler said

1.

GtkObject.xs(860): remark #592: variable "signals" is used before its
value is set

The source code is

               sv_setiv(s, signals);

but signals hasn't been set since it's declaration. 

                int signals;

Suggest init signals before first use.





Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Matthias Saou 2005-04-07 19:42:30 UTC
Gtk-Perl is (AFAIK) unmaintained, and only provided as a legacy binding. If you
can provide a patch, I'll gladly included, but otherwise I really don't think
it's worth bothering unless this is known to cause serious issues.

Comment 2 David Binderman 2005-04-08 08:08:34 UTC
>If you can provide a patch

Suggest 

   int signals = 0;

This is untested.


Note You need to log in before you can comment on or make changes to this bug.