From 90cfc59c889315747f4ddc46a8cdeb2bafb80005 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 22 May 2020 15:28:54 +0200 Subject: [PATCH] silenced an uninitialized value warning --- rogueviz/qtm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rogueviz/qtm.cpp b/rogueviz/qtm.cpp index 90c20d3b..98bd37ae 100644 --- a/rogueviz/qtm.cpp +++ b/rogueviz/qtm.cpp @@ -43,7 +43,7 @@ color_t rainbow_color(hyperpoint h) { hue *= 6; - color_t res; + color_t res = 0; if(hue<1) res = gradient(0xFF0000, 0xFFFF00, 0, hue, 1); else if(hue<2) res = gradient(0x00FF00, 0xFFFF00, 2, hue, 1);