[med-svn] [pbsim] 01/02: fix compiling with GCC 7
Sascha Steinbiss
satta at debian.org
Tue Jan 31 10:36:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
satta pushed a commit to branch master
in repository pbsim.
commit 75c508a903631edc80744c7d756cff9ed1924d35
Author: Sascha Steinbiss <satta at debian.org>
Date: Tue Jan 31 10:35:36 2017 +0000
fix compiling with GCC 7
---
debian/changelog | 6 ++++++
debian/patches/0001-fix-for-gcc-7.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 28 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index ed0fbbe..a58e9cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pbsim (1.0.3-3) unstable; urgency=medium
+
+ * Fix compiling with GCC 7.
+
+ -- Sascha Steinbiss <satta at debian.org> Tue, 31 Jan 2017 10:31:06 +0000
+
pbsim (1.0.3-2) unstable; urgency=medium
* switch man page building to asciidoctor from ronn
diff --git a/debian/patches/0001-fix-for-gcc-7.patch b/debian/patches/0001-fix-for-gcc-7.patch
new file mode 100644
index 0000000..bc50e26
--- /dev/null
+++ b/debian/patches/0001-fix-for-gcc-7.patch
@@ -0,0 +1,21 @@
+From: Sascha Steinbiss <satta at debian.org>
+Date: Tue, 31 Jan 2017 10:28:08 +0000
+Subject: fix for gcc-7
+
+---
+ src/pbsim.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/pbsim.cpp b/src/pbsim.cpp
+index af1b7d8..77e3e5c 100644
+--- a/src/pbsim.cpp
++++ b/src/pbsim.cpp
+@@ -371,7 +371,7 @@ int main (int argc, char** argv) {
+
+ srand((unsigned int)seed);
+
+- if (argv[optind] == '\0') {
++ if (argv[optind] == NULL) {
+ print_help();
+ exit(-1);
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..469245b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-fix-for-gcc-7.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pbsim.git
More information about the debian-med-commit
mailing list