mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 04:23:24 +02:00
When building with GCC, it generates 3020 warnings like this: libraries/gpu/src/gpu/State.h:208:18: warning: ‘gpu::State::BlendFunction::destColor’ is too small to hold all values of ‘enum gpu::State::BlendArg’ This is because ‘enum gpu::State::BlendArg’ is declared as an enum of uint16 size, and gpu::State::BlendFunction::destColor is a bit field. GCC correctly deduces that a 16 bit value won't always fit in a 4 bit field, and emits a warning. The problem is that the amount is such that it floods the output and hides other warnings. Changing the 'enum foo : uint16' declarations to 'enum foo' stops gcc from emitting the warning. Making this change required the removal of a set of assertion checks. At least empirically they seem unnecessary -- the interface compiles and runs fine. |
||
---|---|---|
.. | ||
src/gpu | ||
CMakeLists.txt |