video_core: Enforce -Wunused-variable and -Wunused-but-set-variable

This commit is contained in:
ReinUsesLisp 2020-10-02 21:19:35 -03:00
parent 182cf7d631
commit 2a24b1c973
3 changed files with 7 additions and 4 deletions

View file

@ -114,8 +114,6 @@ void MaxwellDMA::CopyBlockLinearToPitch() {
const u32 block_depth = src_params.block_size.depth;
const size_t src_size =
CalculateSize(true, bytes_per_pixel, width, height, depth, block_height, block_depth);
const size_t src_layer_size =
CalculateSize(true, bytes_per_pixel, width, height, 1, block_height, block_depth);
if (read_buffer.size() < src_size) {
read_buffer.resize(src_size);