aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2018-04-24 22:02:12 +0800
committerwg <wg@FreeBSD.org>2018-04-24 22:02:12 +0800
commitd385c4807a199283d306faa86dcfe17ccdb9a47c (patch)
tree0b1ea1585d5d3ddaabd2b3bbdd00ddd9f293e32b
parent24215fa8318fe5c9f13a679773ef7447fb06ceba (diff)
downloadfreebsd-ports-gnome-d385c4807a199283d306faa86dcfe17ccdb9a47c.tar.gz
freebsd-ports-gnome-d385c4807a199283d306faa86dcfe17ccdb9a47c.tar.zst
freebsd-ports-gnome-d385c4807a199283d306faa86dcfe17ccdb9a47c.zip
devel/shiboken: fix build with gcc6
PR: 216047 Submitted by: jbeich
-rw-r--r--devel/shiboken/files/patch-tests_libsample_simplefile.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/shiboken/files/patch-tests_libsample_simplefile.cpp b/devel/shiboken/files/patch-tests_libsample_simplefile.cpp
new file mode 100644
index 000000000000..f4c130ca8d5a
--- /dev/null
+++ b/devel/shiboken/files/patch-tests_libsample_simplefile.cpp
@@ -0,0 +1,18 @@
+--- tests/libsample/simplefile.cpp.orig 2018-01-31 17:26:30 UTC
++++ tests/libsample/simplefile.cpp
+@@ -90,13 +90,13 @@ bool
+ SimpleFile::exists() const
+ {
+ std::ifstream ifile(p->m_filename);
+- return ifile;
++ return static_cast<bool>(ifile);
+ }
+
+ bool
+ SimpleFile::exists(const char* filename)
+ {
+ std::ifstream ifile(filename);
+- return ifile;
++ return static_cast<bool>(ifile);
+ }
+