From d5ffd2e4b4d31693fb7c319cfef40870ae6d4916 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 8 Nov 2021 18:39:09 -0800 Subject: [PATCH] hsv2rgb: squash a -Wswitch-default warning The preceding logic makes the rest of the switch exhaustive. --- lib/common/colxlate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/common/colxlate.c b/lib/common/colxlate.c index f5caf7cb6..fe419ef3a 100644 --- a/lib/common/colxlate.c +++ b/lib/common/colxlate.c @@ -75,6 +75,8 @@ static void hsv2rgb(double h, double s, double v, *g = p; *b = q; break; + default: + UNREACHABLE(); } } } -- 2.40.0