[kandinsky] Remove some warnings

This commit is contained in:
Romain Goyet
2018-10-11 13:13:49 +02:00
committed by LeaNumworks
parent 1dd1e6ca8d
commit dfb30e5799
2 changed files with 6 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ void KDFont::fetchGreyscaleGlyphForChar(char c, uint8_t * greyscaleBuffer) const
compressedGlyphDataSize(c),
m_glyphSize.width() * m_glyphSize.height() * k_bitsPerPixel/8
);
(void)resultSize; // Silence the "variable unused" warning if assertions are not enabled
assert(resultSize == m_glyphSize.width() * m_glyphSize.height() * k_bitsPerPixel/8);
}