Browse Source

Trade: shh, GCC 4.8.

Or does THIS cause the OOMs?
pull/491/head
Vladimír Vondruš 5 years ago
parent
commit
329ea4d33d
  1. 6
      src/Magnum/Trade/MaterialData.h

6
src/Magnum/Trade/MaterialData.h

@ -1279,7 +1279,11 @@ class MAGNUM_TRADE_EXPORT MaterialAttributeData {
constexpr explicit ErasedScalar(Rad value): f{Float(value)} {}
constexpr explicit ErasedScalar(UnsignedInt value): u{value} {}
constexpr explicit ErasedScalar(Int value): i{value} {}
constexpr explicit ErasedScalar(MaterialTextureSwizzle value): u{UnsignedInt(value)} {}
constexpr explicit ErasedScalar(MaterialTextureSwizzle value):
/* Interestingly enough, on GCC 4.8, using u{} will spam with
warning: parameter value set but not used [-Wunused-but-set-parameter]
even though everything works as intended. Using () instead. */
u(UnsignedInt(value)) {}
Float f;
UnsignedInt u;

Loading…
Cancel
Save