From cdda2034385048fae409f91932817259390dc406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 8 Sep 2022 01:31:10 +0200 Subject: [PATCH] Fix compiler warnings --- GPU/GeDisasm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/GeDisasm.cpp b/GPU/GeDisasm.cpp index f1f1293255..b30218b44a 100644 --- a/GPU/GeDisasm.cpp +++ b/GPU/GeDisasm.cpp @@ -94,7 +94,7 @@ void GeDisassembleOp(u32 pc, u32 op, u32 prev, char *buffer, int bufsize) { u32 cmd = op >> 24; u32 data = op & 0xFFFFFF; - static constexpr char *primTypes[8] = { + static const char * const primTypes[8] = { "POINTS", "LINES", "LINE_STRIP", @@ -765,7 +765,7 @@ void GeDisassembleOp(u32 pc, u32 op, u32 prev, char *buffer, int bufsize) { float g = (float)((data>>8) & 0xff)/255.0f; float b = (float)(data>>16)/255.0f; - static constexpr char *lightColorTypes[] = { + static const char * const lightColorTypes[] = { "ambient", "diffuse", "specular",