ptitSeb / Serious-Engine

A port to the OpenPandora (and working fine on plain Linux) of the open source version of a game engine developed by Croteam for the classic Serious Sam games. Status: Working (for both FE and SE).
https://pyra-handheld.com/boards/threads/serious-sam-first-encounter.77225/
GNU General Public License v2.0
75 stars 23 forks source link

Fix GCC -Waddress warning in PlayCamera #47

Closed chewi closed 2 years ago

chewi commented 2 years ago

GCC 11 says:

Sources/Entities/Camera.es:397:10: warning: the compiler can assume that the address of ‘cm’ will never be NULL [-Waddress]

The MP version of Camera.es simply checks m_penTarget instead, so that's what I've done here. It's not clear what the intention of the original code was.

P.S. I've got many more changes on the way. :smile: