Last visit was: It is currently Sun Dec 09, 2018 11:22 pm


All times are UTC-05:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Function Parameter May Be Uninitialized?
PostPosted: Mon Oct 11, 2010 6:18 pm 
User avatar
 

Joined: Sun Feb 12, 2006 8:56 pm
Posts: 1019
Website: http://eddieringle.com
Location: Detroit, MI
This popped up in IRC while attempting to disable write protection on the G2's nand (specific information on that is here):
Code:
<scotty2> static inline loff_t fat_make_i_pos(struct super_block *sb, <scotty2> struct buffer_head *bh, <scotty2> struct msdos_dir_entry *de) <scotty2> { <scotty2> return ((loff_t)bh->b_blocknr << MSDOS_SB(sb)->dir_per_block_bits) <scotty2> | (de - (struct msdos_dir_entry *)bh->b_data); <scotty2> } <scotty2> how the **** could de possibly be uninitialized. <scotty2> fs/fat/dir.c:30: error: 'de' may be used uninitialized in this function
Anyone ever run into this before?

_________________
-- Eddie Ringle

Check out Elysian Shadows and consider backing us on Kickstarter!

====================================

Image


Top
Offline   
 Post subject: Re: Function Parameter May Be Uninitialized?
PostPosted: Tue Oct 12, 2010 12:17 am 
Just so you know, you brought this upon yourself. Dancefight.
User avatar
 

Joined: Sat Apr 02, 2005 3:31 pm
Posts: 1171
Location: The vicinity of an area adjacent to a location.
You didn't provide any details. Compiler, compiler version, etc.

_________________
- Tycho

Image


Top
Offline   
 Post subject: Re: Function Parameter May Be Uninitialized?
PostPosted: Tue Oct 12, 2010 9:58 am 
External Project Staff
User avatar
 

Joined: Sun Oct 30, 2005 3:40 pm
Posts: 371
Website: http://idlesoft.net
Location: ~/
G2 is an Android device. Android uses the linux kernel. This code looks like its part of the kernel. The android NDK contains GCC4.4 . So by deduction I say that was the compiler used.

_________________
-- ChaosR

Image


Top
Offline   
 Post subject: Re: Function Parameter May Be Uninitialized?
PostPosted: Tue Oct 12, 2010 2:03 pm 
Connoisseur of the Godawful
User avatar
 

Joined: Tue Mar 01, 2005 9:00 am
Posts: 456
ICQ: 286315965
Website: http://rabidtinker.mine.nu/
Yahoo Messenger: alistair_lynn
AOL: Agent_Vast@mac.com
Location: 127.0.0.1
Please show the compiler invocation, and, crucially, the callsite of this function.

_________________
Alastair Lynn / Alumnus / Onlink Team


Top
Offline   
 Post subject: Re: Function Parameter May Be Uninitialized?
PostPosted: Thu Dec 16, 2010 4:35 pm 
User avatar
 

Joined: Sun Feb 12, 2006 8:56 pm
Posts: 1019
Website: http://eddieringle.com
Location: Detroit, MI
Quote:
... and, crucially, the callsite of this function.
Are you suggesting that the function was passed an uninitialized argument?

_________________
-- Eddie Ringle

Check out Elysian Shadows and consider backing us on Kickstarter!

====================================

Image


Top
Offline   
 Post subject: Re: Function Parameter May Be Uninitialized?
PostPosted: Thu Dec 16, 2010 7:26 pm 
Connoisseur of the Godawful
User avatar
 

Joined: Tue Mar 01, 2005 9:00 am
Posts: 456
ICQ: 286315965
Website: http://rabidtinker.mine.nu/
Yahoo Messenger: alistair_lynn
AOL: Agent_Vast@mac.com
Location: 127.0.0.1
Yes.

_________________
Alastair Lynn / Alumnus / Onlink Team


Top
Offline   
Display posts from previous:  Sort by  
Post new topic  Reply to topic

All times are UTC-05:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created by Miah with assistance from hyprnova