From 5c2d76fdef08cd01354cba9fc3ce97bca94c1499 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 9 Dec 2012 19:39:30 -0600 Subject: [PATCH] [libpng16] Use "FALL THROUGH" comment consistently in switch statements. --- pngerror.c | 4 ++-- pngrtran.c | 2 +- pngwrite.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pngerror.c b/pngerror.c index a97778b3c..a52844a41 100644 --- a/pngerror.c +++ b/pngerror.c @@ -163,7 +163,7 @@ png_format_number(png_const_charp start, png_charp end, int format, case PNG_NUMBER_FORMAT_02u: /* Expects at least 2 digits. */ mincount = 2; - /* fall through */ + /* FALL THROUGH */ case PNG_NUMBER_FORMAT_u: *--end = digits[number % 10]; @@ -173,7 +173,7 @@ png_format_number(png_const_charp start, png_charp end, int format, case PNG_NUMBER_FORMAT_02x: /* This format expects at least two digits */ mincount = 2; - /* fall through */ + /* FALL THROUGH */ case PNG_NUMBER_FORMAT_x: *--end = digits[number & 0xf]; diff --git a/pngrtran.c b/pngrtran.c index c67298357..09be05c0e 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -1245,7 +1245,7 @@ png_init_rgb_transformations(png_structrp png_ptr) default: case 8: - /* Already 8 bits, fall through */ + /* FALL THROUGH (Already 8 bits) */ case 16: /* Already a full 16 bits */ diff --git a/pngwrite.c b/pngwrite.c index e0ca5f32b..1ef76d6e7 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -937,7 +937,7 @@ png_set_filter(png_structrp png_ptr, int method, int filters) case 5: case 6: case 7: png_app_error(png_ptr, "Unknown row filter for method 0"); - /* Fall through */ + /* FALL THROUGH */ #endif /* PNG_WRITE_FILTER_SUPPORTED */ case PNG_FILTER_VALUE_NONE: png_ptr->do_filter = PNG_FILTER_NONE; break;