[med-svn] [libbpp-core] 01/03: d/p/gcc-6.patch: Fix compilation with g++-6, Closes: #811657
Gert Wollny
gert-guest at moszumanska.debian.org
Wed Jun 29 15:04:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
gert-guest pushed a commit to branch master
in repository libbpp-core.
commit 323e8aa1f923f6b6ded5a262139277081a2fe8eb
Author: Gert Wollny <gw.fossdev at gmail.com>
Date: Wed Jun 29 14:53:08 2016 +0000
d/p/gcc-6.patch: Fix compilation with g++-6, Closes: #811657
---
debian/patches/gcc-6.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 26 insertions(+)
diff --git a/debian/patches/gcc-6.patch b/debian/patches/gcc-6.patch
new file mode 100644
index 0000000..0907df2
--- /dev/null
+++ b/debian/patches/gcc-6.patch
@@ -0,0 +1,25 @@
+From: Gert Wollny <gw.fossdev at gmail.com>
+Date: Wed, 29 Jun 2014 16:52:43 +0200
+Subject: Fix compilation with g++-6
+Bug-Debian: https://bugs.debian.org/811657
+
+--- a/src/Bpp/Io/FileTools.cpp
++++ b/src/Bpp/Io/FileTools.cpp
+@@ -54,7 +54,7 @@
+ bool FileTools::fileExists(const std::string& filename)
+ {
+ ifstream file(filename.c_str());
+- bool test = file ? true : false; //needed for CLang.
++ bool test = file.good(); //needed for CLang.
+ file.close();
+ return test;
+ }
+@@ -64,7 +64,7 @@
+ bool FileTools::directoryExists(const std::string& path)
+ {
+ ifstream file(path.c_str());
+- bool test = file ? true : false; //needed for CLang.
++ bool test = file.good(); //needed for CLang.
+ file.close();
+ return test;
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..76d6364
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gcc-6.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libbpp-core.git
More information about the debian-med-commit
mailing list