Page 1 of 1

Example file warnings...

Posted: Fri Sep 30, 2011 9:00 am
by relminator
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

Re: Example file warnings...

Posted: Fri Sep 30, 2011 12:54 pm
by HeavyDude
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.

Re: Example file warnings...

Posted: Sat Oct 01, 2011 1:19 pm
by WinterMute
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.

Re: Example file warnings...

Posted: Wed Oct 05, 2011 11:03 pm
by WinterMute
I fixed these warnings in SVN recently - the warnings were entirely justified :)

Re: Example file warnings...

Posted: Thu Oct 13, 2011 7:12 am
by relminator
Thanks buddy!
:D