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
This commit is contained in:
parent
22268041d5
commit
da0dcfc3fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436264
17
graphics/iccexamin/files/patch-icc_profile_tags.cpp
Normal file
17
graphics/iccexamin/files/patch-icc_profile_tags.cpp
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user