Codechange: Suppress warnings when asserts are disabled (#8917)

This commit is contained in:
Patric Stout
2021-04-01 11:16:19 +02:00
committed by GitHub
parent 9eb6c78a02
commit fece1c57ca
14 changed files with 31 additions and 7 deletions

View File

@@ -229,7 +229,9 @@ static void ResizeSpriteOut(SpriteLoader::Sprite *sprite, ZoomLevel zoom)
SpriteLoader::CommonPixel *dst = sprite[zoom].data;
const SpriteLoader::CommonPixel *src = sprite[zoom - 1].data;
#ifndef NDEBUG
const SpriteLoader::CommonPixel *src_end = src + sprite[zoom - 1].height * sprite[zoom - 1].width;
#endif
for (uint y = 0; y < sprite[zoom].height; y++) {
const SpriteLoader::CommonPixel *src_ln = src + sprite[zoom - 1].width;