diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-11-18 11:34:24 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-11-18 11:34:24 +0800 |
commit | 9dea405fb989e40e14fd936a3ad6b039033328a0 (patch) | |
tree | b272ede3b5d7af8aabac499ca5be7271e932cc92 /graphics | |
parent | 1c5c516072ffed351df929a58dc84ab4cebd5fae (diff) | |
download | freebsd-ports-gnome-9dea405fb989e40e14fd936a3ad6b039033328a0.tar.gz freebsd-ports-gnome-9dea405fb989e40e14fd936a3ad6b039033328a0.tar.zst freebsd-ports-gnome-9dea405fb989e40e14fd936a3ad6b039033328a0.zip |
graphics/zphoto: unbreak with libc++ 3.9
image.cpp:557:11: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
char *suffix1 = strrchr(src, '.');
^ ~~~~~~~~~~~~~~~~~~
image.cpp:558:11: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
char *suffix2 = strrchr(dest, '.');
^ ~~~~~~~~~~~~~~~~~~
PR: 212343
Reported by: antoine (via exp-run)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/zphoto/files/patch-image.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/zphoto/files/patch-image.cpp b/graphics/zphoto/files/patch-image.cpp new file mode 100644 index 000000000000..68e00e71744d --- /dev/null +++ b/graphics/zphoto/files/patch-image.cpp @@ -0,0 +1,13 @@ +--- image.cpp.orig 2004-07-20 16:48:11 UTC ++++ image.cpp +@@ -554,8 +554,8 @@ restore_mtime (const char *file_name, ti + static int + convert_needed_p (const char *src, const char *dest) + { +- char *suffix1 = strrchr(src, '.'); +- char *suffix2 = strrchr(dest, '.'); ++ const char *suffix1 = strrchr(src, '.'); ++ const char *suffix2 = strrchr(dest, '.'); + + return strcmp(suffix1, suffix2) != 0; + } |