diff --git a/libraries/gpu/src/gpu/State.h b/libraries/gpu/src/gpu/State.h index 6e29900c03..9bcd69dcdb 100755 --- a/libraries/gpu/src/gpu/State.h +++ b/libraries/gpu/src/gpu/State.h @@ -118,11 +118,12 @@ public: uint8 _function = LESS; uint8 _writeMask = true; uint8 _enabled = false; - __attribute__((unused)) // _spare is here to to affect alignment - uint8 _spare = 0; + uint8 _spare = 0; // _spare is here to to affect alignment public: DepthTest(bool enabled = false, bool writeMask = true, ComparisonFunction func = LESS) : - _function(func), _writeMask(writeMask), _enabled(enabled) {} + _function(func), _writeMask(writeMask), _enabled(enabled) { + (void)_spare; // to avoid unusued variable warning + } bool isEnabled() const { return _enabled != 0; } ComparisonFunction getFunction() const { return ComparisonFunction(_function); }