mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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. |
||
---|---|---|
.. | ||
animation | ||
audio | ||
audio-client | ||
auto-updater | ||
avatars | ||
avatars-renderer | ||
baking | ||
controllers | ||
display-plugins | ||
embedded-webserver | ||
entities | ||
entities-renderer | ||
fbx | ||
gl | ||
gpu | ||
gpu-gl | ||
gpu-gl-common | ||
gpu-gles | ||
graphics | ||
graphics-scripting | ||
hfm | ||
image | ||
input-plugins | ||
ktx | ||
material-networking | ||
midi | ||
model-baker | ||
model-networking | ||
networking | ||
octree | ||
oculusMobile | ||
oculusMobilePlugin | ||
physics | ||
platform | ||
plugins | ||
pointers | ||
procedural | ||
qml | ||
recording | ||
render | ||
render-utils | ||
script-engine | ||
shaders | ||
shared | ||
task | ||
test-utils | ||
ui | ||
ui-plugins | ||
workload |