summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/cppcodeparser.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2011-08-30 14:15:07 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2011-08-31 09:46:36 (GMT)
commita36c81774cb6ac45c211c85f6f2e797688b4946b (patch)
tree06cdc98e100da4103ed2915bf09b0d382d766784 /tools/qdoc3/cppcodeparser.cpp
parente95de30977291a251660f72baa84b5ff244711fb (diff)
downloadQt-a36c81774cb6ac45c211c85f6f2e797688b4946b.zip
Qt-a36c81774cb6ac45c211c85f6f2e797688b4946b.tar.gz
Qt-a36c81774cb6ac45c211c85f6f2e797688b4946b.tar.bz2
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>
Diffstat (limited to 'tools/qdoc3/cppcodeparser.cpp')
0 files changed, 0 insertions, 0 deletions