svn commit: r468212 - head/devel/shiboken/files
William Grzybowski
wg at FreeBSD.org
Tue Apr 24 14:02:13 UTC 2018
Author: wg
Date: Tue Apr 24 14:02:12 2018
New Revision: 468212
URL: https://svnweb.freebsd.org/changeset/ports/468212
Log:
devel/shiboken: fix build with gcc6
PR: 216047
Submitted by: jbeich
Added:
head/devel/shiboken/files/patch-tests_libsample_simplefile.cpp (contents, props changed)
Added: head/devel/shiboken/files/patch-tests_libsample_simplefile.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/shiboken/files/patch-tests_libsample_simplefile.cpp Tue Apr 24 14:02:12 2018 (r468212)
@@ -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);
+ }
+
More information about the svn-ports-all
mailing list