diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:29:19 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-01 13:29:19 +0800 |
commit | 7cd8e9920cfc76ef13bd2a2336864cdd719da1a9 (patch) | |
tree | cb5c2543b6027e231b00985635f94152a1dafb67 | |
parent | f269049aa47b49f4723393a15ea4a461af48eb7e (diff) | |
download | freebsd-ports-gnome-7cd8e9920cfc76ef13bd2a2336864cdd719da1a9.tar.gz freebsd-ports-gnome-7cd8e9920cfc76ef13bd2a2336864cdd719da1a9.tar.zst freebsd-ports-gnome-7cd8e9920cfc76ef13bd2a2336864cdd719da1a9.zip |
graphics/copperspice: unbreak with clang 4.0
../3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp:77:24: error: ordered comparison between pointer and zero ('const int *' and 'int')
if (optionalHeight > 0)
~~~~~~~~~~~~~~ ^ ~
PR: 216015
Reported by: antoine (via exp-run)
Obtained from: upstream (excerpt)
-rw-r--r-- | graphics/copperspice/files/patch-src_3rdparty_webkit_Source_WebCore_html_HTMLImageElement.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/copperspice/files/patch-src_3rdparty_webkit_Source_WebCore_html_HTMLImageElement.cpp b/graphics/copperspice/files/patch-src_3rdparty_webkit_Source_WebCore_html_HTMLImageElement.cpp new file mode 100644 index 000000000000..226720857a69 --- /dev/null +++ b/graphics/copperspice/files/patch-src_3rdparty_webkit_Source_WebCore_html_HTMLImageElement.cpp @@ -0,0 +1,21 @@ +------------------------------------------------------------------------ +r113848 | abecsi@webkit.org | 2012-04-11 11:23:19 +0000 (Wed, 11 Apr 2012) | 27 lines + +Fix the build with gcc 4.7.0 +https://bugs.webkit.org/show_bug.cgi?id=83584 +[...] +* html/HTMLImageElement.cpp: +(WebCore::HTMLImageElement::createForJSConstructor): Fails because of -Werror=extra +[...] + +--- src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp.orig 2016-09-12 14:20:12 UTC ++++ src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp +@@ -74,7 +74,7 @@ PassRefPtr<HTMLImageElement> HTMLImageEl + RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document)); + if (optionalWidth) + image->setWidth(*optionalWidth); +- if (optionalHeight > 0) ++ if (optionalHeight) + image->setHeight(*optionalHeight); + return image.release(); + } |