mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Removed need for -Wno-cast-align with clang. clang correctly warns
on alignment increasing pointer casts when -Wcast-align is passed. This fixes the cases clang warns about either (pngread.c) by eliminating the casts from png_bytep to png_uint_16p or, for pngrutil.c where the cast is previously verified or pngstest.c where it is OK by introducing new png_aligncast macros to do the cast in a way that clang accepts.
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
040575c80b
commit
b45416921b
10
ANNOUNCE
10
ANNOUNCE
@@ -1,5 +1,5 @@
|
||||
|
||||
Libpng 1.6.0beta22 - April 28, 2012
|
||||
Libpng 1.6.0beta22 - April 30, 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.
|
||||
@@ -360,7 +360,13 @@ Version 1.6.0beta21 [April 27, 2012]
|
||||
Added -lssp_nonshared in a comment in scripts/makefile.freebsd
|
||||
and changed deprecated NOOBJ and NOPROFILE to NO_OBJ and NO_PROFILE.
|
||||
|
||||
Version 1.6.0beta22 [April 28, 2012]
|
||||
Version 1.6.0beta22 [April 30, 2012]
|
||||
Removed need for -Wno-cast-align with clang. clang correctly warns on
|
||||
alignment increasing pointer casts when -Wcast-align is passed. This
|
||||
fixes the cases clang warns about either (pngread.c) by eliminating the
|
||||
casts from png_bytep to png_uint_16p or, for pngrutil.c where the cast
|
||||
is previously verified or pngstest.c where it is OK by introducing new
|
||||
png_aligncast macros to do the cast in a way that clang accepts.
|
||||
|
||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||
(subscription required; visit
|
||||
|
||||
Reference in New Issue
Block a user