Dlaczego MinGW wypisuje mi ostrzeżenie w funkcji:
void Camera::RotatePitch(float angle) // In member function 'void Camera::RotatePitch(float)':
{
const float limit = 89.0 * M_PI / 180.0;
m_pitch += angle;
if(m_pitch < -limit)
m_pitch = -limit;
if(m_pitch > limit) // warning: this 'if' clause does not guard... [-Wmisleading-indentation]
m_pitch = limit;
Refresh(); // note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
}
O co tu chodzi? Czy to tylko warning spowodowany "głupotą" kompilatora?
PS: Build messages umieściłem za liniami na których wystąpiły.
Rafbeam