Bug 158611 - e2fsprogs-1.38-19: local variable used before set
Summary: e2fsprogs-1.38-19: local variable used before set
Status: RESOLVED WONTFIX
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: Hendrik Vogelsang
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-16 12:42 UTC by David Binderman
Modified: 2006-03-17 11:48 UTC (History)
0 users

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-16 12:42:24 UTC
I just tried to compile package e2fsprogs-1.38-19 with the Intel C compiler.

It said

ext2.c(427): warning #592: variable "bh2" is used before its value is set

The source code is

                struct ext2_buffer_head *bh2;
                __u32                   *udata2;
                int                      j;

                if (!udata[i]) {
                        ext2_brelse(bh, 0);
                        ext2_brelse(bh2, 0);

I agree with the compiler.  Suggest code rework.
Comment 1 Hendrik Vogelsang 2006-03-17 11:48:54 UTC
report this upstream. e2fsprogs is maintained