aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2017-03-16 16:15:59 +0800
committerbsam <bsam@FreeBSD.org>2017-03-16 16:15:59 +0800
commit8c18b6ff9055f6977362478cd49e9706aa70b07e (patch)
treed7bf593593dfc8c8a21b4ae80952f81df188bea4 /graphics
parentc2e3cb0cddc1916e6b3bc3d3f21f8861c1a4e53e (diff)
downloadfreebsd-ports-gnome-8c18b6ff9055f6977362478cd49e9706aa70b07e.tar.gz
freebsd-ports-gnome-8c18b6ff9055f6977362478cd49e9706aa70b07e.tar.zst
freebsd-ports-gnome-8c18b6ff9055f6977362478cd49e9706aa70b07e.zip
Fix build with clang-4.0. Error log:
----- /wrkdirs/usr/ports/graphics/iccexamin/work/icc_examin-0.55/icc_profile_tags.cpp:352:28: error: ordered comparison between pointer and zero ('char *' and 'int') while (strchr(txt, 13) > 0) { // \r 013 0x0d ~~~~~~~~~~~~~~~ ^ ~ /wrkdirs/usr/ports/graphics/iccexamin/work/icc_examin-0.55/icc_profile_tags.cpp:357:15: error: ordered comparison between pointer and zero ('char *' and 'int') if (pos > 0) { ~~~ ^ ~ ----- Reported by: FreeBSD package builder
Diffstat (limited to 'graphics')
-rw-r--r--graphics/iccexamin/files/patch-icc_profile_tags.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/iccexamin/files/patch-icc_profile_tags.cpp b/graphics/iccexamin/files/patch-icc_profile_tags.cpp
new file mode 100644
index 000000000000..c7b8d66d6384
--- /dev/null
+++ b/graphics/iccexamin/files/patch-icc_profile_tags.cpp
@@ -0,0 +1,17 @@
+--- icc_profile_tags.cpp.orig 2017-03-15 08:21:33.000000000 +0000
++++ icc_profile_tags.cpp 2017-03-15 08:21:33.000000000 +0000
+@@ -349,12 +349,12 @@
+ # ifdef DEBUG_ICCTAG
+ DBG_NUM_S ((int)strchr(txt, 13))
+ # endif
+- while (strchr(txt, 13) > 0) { // \r 013 0x0d
++ while (strchr(txt, 13)) { // \r 013 0x0d
+ pos = strchr(txt, 13);
+ # ifdef DEBUG_ICCTAG
+ //cout << (int)pos << " "; DBG
+ # endif
+- if (pos > 0) {
++ if (pos) {
+ if (*(pos+1) == '\n')
+ *pos = ' ';
+ else