Code: Select all
/home/blzut3/Code/GZDoom/src/p_sight.cpp: In member function ‘bool SightCheck::PTR_SightTraverse(intercept_t*)’:
/home/blzut3/Code/GZDoom/src/p_sight.cpp:241:24: warning: ‘open.SightOpening::top’ may be used uninitialized in this function [-Wmaybe-uninitialized]
slope = (open.bottom - sightstart.Z) / in->frac;
~~~~~~~~~~~~~^~~~~~~~~~~~~~~
As open.portalflags can be non zero, these bogus values are used to calculate slopes which may in turn be passed through the portal code before the function finally returns.