From 2a747ada5dfa16bc26b01c92b88107f1bbf517b6 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 4 Jun 2022 06:35:05 +0200 Subject: [PATCH] (GCC 12) Silence some new warnings generated --- libretro-common/formats/tga/rtga.c | 4 ++-- ui/drivers/ui_qt.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libretro-common/formats/tga/rtga.c b/libretro-common/formats/tga/rtga.c index b1999c1157..93a786ee0a 100644 --- a/libretro-common/formats/tga/rtga.c +++ b/libretro-common/formats/tga/rtga.c @@ -266,9 +266,9 @@ static uint8_t *rtga_tga_load(rtga_context *s, int RLE_repeating = 0; int RLE_count = 0; int read_next_pixel = 1; - /* Needs to be at least 32 bytes to silence a GCC warning, + /* Needs to be at least 33 bytes to silence a GCC warning, * only 4 are actually used */ - unsigned char raw_data[32] = {0}; + unsigned char raw_data[33] = {0}; unsigned char *tga_palette = NULL; /* Do I need to load a palette? */ diff --git a/ui/drivers/ui_qt.cpp b/ui/drivers/ui_qt.cpp index 40bf8e4096..3f6b0b5cff 100644 --- a/ui/drivers/ui_qt.cpp +++ b/ui/drivers/ui_qt.cpp @@ -44,7 +44,6 @@ #include #include #include -#include #include "ui_qt.h" #include "qt/gridview.h"