From 3a04e3d003a6a2500c8c301c81c14ca47d20fc43 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 23 Apr 2017 19:16:15 +0200 Subject: [PATCH] gif: avoid (wrong) uninitialized warning My guess is that GCC reports an warning because of the default case. I don't think we support yet __builtin_unreachable on Linux Nevertheless it will still be an issue in non-release build --- pcsx2/Gif_Unit.h | 1 + 1 file changed, 1 insertion(+) diff --git a/pcsx2/Gif_Unit.h b/pcsx2/Gif_Unit.h index 94effe9c94..84371961ef 100644 --- a/pcsx2/Gif_Unit.h +++ b/pcsx2/Gif_Unit.h @@ -79,6 +79,7 @@ struct Gif_Tag { hasAD = false; nRegIdx = 0; isValid = 1; + len = 0; // avoid uninitialized compiler warning switch(tag.FLG) { case GIF_FLG_PACKED: nRegs = ((tag.NREG-1)&0xf) + 1;