[libpng16] Removed unreachable "break" statements in png.c, pngread.c, and

pngrtran.c to suppress clang warnings (Bug report by Viktor Szakats).
This commit is contained in:
Victor Szakats
2015-08-07 14:31:11 -05:00
committed by Glenn Randers-Pehrson
parent 0e9cd91609
commit 4e1d299e6b
5 changed files with 22 additions and 20 deletions

6
png.c
View File

@@ -769,13 +769,13 @@ png_get_copyright(png_const_structrp png_ptr)
#else
# ifdef __STDC__
return PNG_STRING_NEWLINE \
"libpng version 1.6.19beta02 - July 30, 2015" PNG_STRING_NEWLINE \
"libpng version 1.6.19beta02 - August 7, 2015" PNG_STRING_NEWLINE \
"Copyright (c) 1998-2015 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \
"Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \
PNG_STRING_NEWLINE;
# else
return "libpng version 1.6.19beta02 - July 30, 2015\
return "libpng version 1.6.19beta02 - August 7, 2015\
Copyright (c) 1998-2015 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
@@ -1706,7 +1706,6 @@ png_colorspace_set_chromaticities(png_const_structrp png_ptr,
*/
colorspace->flags |= PNG_COLORSPACE_INVALID;
png_error(png_ptr, "internal error checking chromaticities");
break;
}
return 0; /* failed */
@@ -1734,7 +1733,6 @@ png_colorspace_set_endpoints(png_const_structrp png_ptr,
default:
colorspace->flags |= PNG_COLORSPACE_INVALID;
png_error(png_ptr, "internal error checking chromaticities");
break;
}
return 0; /* failed */