diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2016-06-06 17:39:44 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2016-06-06 17:39:44 +0100 |
commit | 3cdf4f936d07333e78f545d67ce14ccbe4290b4c (patch) | |
tree | a92c8b17afa34bf528471c250d2756401e1acf63 /cups | |
parent | c4dd42e0bcfd9e5bdd42a248111b5786ad7096cb (diff) | |
download | ghostpdl-3cdf4f936d07333e78f545d67ce14ccbe4290b4c.tar.gz |
Add 'fall through' comments to many switch cases to satisfy Coverity
Diffstat (limited to 'cups')
-rw-r--r-- | cups/gdevcups.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c index 00934f255..901816363 100644 --- a/cups/gdevcups.c +++ b/cups/gdevcups.c @@ -717,6 +717,7 @@ cups_get_color_comp_index(gx_device * pdev, const char * pname, compare_color_names(pname, name_size, "Transparent") || compare_color_names(pname, name_size, "Transparency")) return 3; + /* fall through */ case CUPS_CSPACE_RGBW : if (compare_color_names(pname, name_size, "Red")) return 0; @@ -761,6 +762,7 @@ cups_get_color_comp_index(gx_device * pdev, const char * pname, # endif /* CUPS_RASTER_HAVE_COLORIMETRIC */ if (compare_color_names(pname, name_size, "Black")) return 3; + /* fall through */ case CUPS_CSPACE_CMY : if (compare_color_names(pname, name_size, "Cyan")) return 0; @@ -775,13 +777,16 @@ cups_get_color_comp_index(gx_device * pdev, const char * pname, if (compare_color_names(pname, name_size, "Silver") || compare_color_names(pname, name_size, "Silver Foil")) return 3; + /* fall through */ case CUPS_CSPACE_GMCK : if (compare_color_names(pname, name_size, "Gold") || compare_color_names(pname, name_size, "Gold Foil")) return 0; + /* fall through */ case CUPS_CSPACE_YMCK : if (compare_color_names(pname, name_size, "Black")) return 3; + /* fall through */ case CUPS_CSPACE_YMC : if (compare_color_names(pname, name_size, "Yellow")) return 0; |