From: Matthew Fernandez Date: Tue, 9 Nov 2021 02:39:09 +0000 (-0800) Subject: hsv2rgb: squash a -Wswitch-default warning X-Git-Tag: 2.50.0~33^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5ffd2e4b4d31693fb7c319cfef40870ae6d4916;p=graphviz hsv2rgb: squash a -Wswitch-default warning The preceding logic makes the rest of the switch exhaustive. --- 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(); } } }