]> granicus.if.org Git - graphviz/commitdiff
hsv2rgb: squash a -Wswitch-default warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 9 Nov 2021 02:39:09 +0000 (18:39 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 14 Nov 2021 21:59:18 +0000 (13:59 -0800)
The preceding logic makes the rest of the switch exhaustive.

lib/common/colxlate.c

index f5caf7cb6db2007419f3983b0f792917f6f05a84..fe419ef3a516837c49d731f3f2d249c029f617ea 100644 (file)
@@ -75,6 +75,8 @@ static void hsv2rgb(double h, double s, double v,
            *g = p;
            *b = q;
            break;
+       default:
+           UNREACHABLE();
        }
     }
 }