qt5base-lts/src
Tor Arne Vestbø 4a0bab33d6 Fix build with Clang for libpng versions 1.4.0 to 1.5.2
Versions 1.4.0 to 1.5.2 of libpng declare png_longjmp_ptr to
have a noreturn attribute if PNG_PEDANTIC_WARNINGS_SUPPORTED
is enabled, but most declarations of longjmp in the wild do
not add this attribute. This causes problems when the png_jmpbuf
macro expands to calling png_set_longjmp_fn with a mismatched
longjmp, as compilers such as Clang will treat this as an error.

To work around this we override the png_jmpbuf macro to cast
longjmp to a png_longjmp_ptr.

See also http://llvm.org/bugs/show_bug.cgi?id=10338

Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Change-Id: I197cfa12af76410310e409bc0fce7d4332ee66a6
Reviewed-on: http://codereview.qt.nokia.com/3929
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2011-08-31 16:25:34 +02:00
..
3rdparty Add QtV8 library to QtBase 2011-08-29 10:16:01 +02:00
corelib Add QLocale::toUpper/Lower 2011-08-31 13:12:43 +02:00
dbus Make the DBus timeout configurable in QDBusAbstractInterface. 2011-08-25 11:36:52 +02:00
gui Fix build with Clang for libpng versions 1.4.0 to 1.5.2 2011-08-31 16:25:34 +02:00
modules Add QtV8 library to QtBase 2011-08-29 10:16:01 +02:00
network QSslCertificate: blacklist fraudulent *.google.com 2011-08-30 18:48:35 +02:00
opengl Remove all non-const operator== 2011-08-09 12:00:51 +02:00
openvg Remove QPainter::UniteClip 2011-06-28 16:52:44 +02:00
plugins Incorrect property name in QAccessibleAbstractSpinBox::setCurrentValue 2011-08-26 22:41:37 +02:00
s60installs update def files 2011-05-11 16:40:09 +02:00
s60main Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
sql Add operator== and operator!= to qsqlerror class 2011-08-24 06:51:17 +02:00
testlib Fix errors in lightxml test logger 2011-08-31 07:40:06 +02:00
tools Remove QTestFileLogger class. 2011-08-29 06:47:22 +02:00
uitools Submit ui4.cpp/h as generated by corresponding change in qttools. 2011-08-12 13:12:46 +02:00
v8 Add QtV8 library to QtBase 2011-08-29 10:16:01 +02:00
winmain Windows: fixed qtmain.lib not going to `lib' directory 2011-07-26 03:27:34 +02:00
xml QXmlStream lives in QtCore 2011-08-11 16:21:14 +02:00
qbase.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_install.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_targets.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
src.pro Add QtV8 library to QtBase 2011-08-29 10:16:01 +02:00