[libpng16] Revised example.c to put text strings in a temporary character array

instead of directly assigning string constants to png_textp members.
This avoids compiler warnings when -Wwrite-strings is enabled.
This commit is contained in:
Glenn Randers-Pehrson
2012-03-15 19:52:03 -05:00
parent 845ee6af72
commit f2715a558a
4 changed files with 64 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
Libpng 1.6.0beta18 - March 11, 2012
Libpng 1.6.0beta18 - March 15, 2012
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
@@ -298,11 +298,14 @@ Version 1.6.0beta17 [March 10, 2012]
chunks could end up with a too-small windowBits value in the deflate
header.
Version 1.6.0beta18 [March 11, 2012]
Version 1.6.0beta18 [March 15, 2012]
Issue a png_benign_error() instead of png_warning() about bad palette index.
In pngtest, treat benign errors as errors if "-strict" is present.
Fixed an off-by-one error in the palette index checking function.
Fixed a compiler warning under Cygwin (Windows-7, 32-bit system)
Revised example.c to put text strings in a temporary character array
instead of directly assigning string constants to png_textp members.
This avoids compiler warnings when -Wwrite-strings is enabled.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit