[torcs] 01/02: Add gcc7.patch. Fix FTBFS with GCC 7.
Markus Koschany
apo at moszumanska.debian.org
Thu Aug 10 15:46:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository torcs.
commit 8746f055a549a78548a1b694e7a8be39fa4b186c
Author: Markus Koschany <apo at debian.org>
Date: Thu Aug 10 03:36:10 2017 +0000
Add gcc7.patch. Fix FTBFS with GCC 7.
Closes: #853685
---
debian/patches/gcc7.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/gcc7.patch b/debian/patches/gcc7.patch
new file mode 100644
index 0000000..e7706ca
--- /dev/null
+++ b/debian/patches/gcc7.patch
@@ -0,0 +1,18 @@
+--- a/src/libs/musicplayer/OpenALMusicPlayer.cpp 2014-02-05 09:54:43.000000000 +0000
++++ b/src/libs/musicplayer/OpenALMusicPlayer.cpp 2017-08-10 03:28:31.025410384 +0000
+@@ -161,7 +161,7 @@
+ {
+ char pcm[BUFFERSIZE];
+ int size = 0;
+- const char* error = '\0';
++ const char* error = nullptr;
+
+ if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
+ GfError("OpenALMusicPlayer: Stream read error: %s\n", error);
+@@ -268,4 +268,4 @@
+ alSourcePlay(source);
+
+ return true;
+-}
+\ No newline at end of file
++}
diff --git a/debian/patches/series b/debian/patches/series
index 9846366..c7ac0a6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ gcc6-isnan.patch
glibc-default-source.patch
format-argument.patch
manpage-and-spelling.patch
+gcc7.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/torcs.git
More information about the Pkg-games-commits
mailing list