-
relminator
- Posts: 84
- Joined: Sun Apr 11, 2010 10:43 am
Post
by relminator » Fri Sep 30, 2011 9:00 am
Hi, I've just updated last week and when I compiled the example files I get a warning:
Code: Select all
c:/Programming/devkitPro/examples/nds/Graphics/3D/Env_Mapping/source/main.cpp: In function 'int main()':
c:/Programming/devkitPro/examples/nds/Graphics/3D/Env_Mapping/source/main.cpp:106:26: warning: 'pen_delta[1]' may be used uninitialized in this function [-Wuninitialized]
c:/Programming/devkitPro/examples/nds/Graphics/3D/Env_Mapping/source/main.cpp:105:26: warning: 'pen_delta[0]' may be used uninitialized in this function [-Wuninitialized]
linking Env_Mapping.elf
-
HeavyDude
- Posts: 14
- Joined: Sun Oct 31, 2010 12:55 pm
Post
by HeavyDude » Fri Sep 30, 2011 12:54 pm
I get loads of them even though the variable has been initialised, more often than not it's due to the flow of your code.
-
WinterMute
- Site Admin
- Posts: 1856
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
-
Contact:
Post
by WinterMute » Sat Oct 01, 2011 1:19 pm
Latest gcc can be a lot more picky about uninitialised variables. The examples which issue warnings need updated and nobody has had the time or motivation to look.
It's not a huge issue or indicative of a problem in the tools.
-
WinterMute
- Site Admin
- Posts: 1856
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
-
Contact:
Post
by WinterMute » Wed Oct 05, 2011 11:03 pm
I fixed these warnings in SVN recently - the warnings were entirely justified
Who is online
Users browsing this forum: No registered users and 23 guests