Menu

#1 usage of uninit variable

open
nobody
None
5
2009-07-10
2009-07-10
No

camera.cpp:99: warning: 'height' is used uninitialized in this function

double height = ( height == -1 ) ? _viewport.height() : height_;

has to be:

double height = ( height_ == -1 ) ? _viewport.height() : height_;

Discussion

MongoDB Logo MongoDB