Mail Archives: djgpp/1997/02/05/19:58:33
: > void CApp::BuffUpdate(CWin *WItem)
: > {
: >
: > int x; // Current X Position
: > int y; // Current Y Position
: > int c; // Counter
: *snip*
: > if((Offender.Back==NULL) || (Ignore==TRUE))
: > {
: > *** video[(y*160)+x] = WItem->Front[c];
: > video[(y*160)+x+1] = WItem->Front[c+1];
: > }
: You forgot to initialize c to 0.
Now you see where forgetting -Wall (and maybe -W) can lead to :->
--
Groeten, Michel. http://www.cs.vu.nl/~mdruiter
\----/==\----/
\ / \ / "Life is cool.", Beavis.
\/ \/
- Raw text -