games-sports/torcs: Fix building with GCC-7

Closes: https://bugs.gentoo.org/631542
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7728
This commit is contained in:
Peter Levine
2018-03-30 20:25:35 -04:00
committed by Andreas Sturmlechner
parent f602ce29a2
commit 12df4e984c
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
--- a/src/libs/musicplayer/OpenALMusicPlayer.cpp
+++ b/src/libs/musicplayer/OpenALMusicPlayer.cpp
@@ -161,7 +161,7 @@
{
char pcm[BUFFERSIZE];
int size = 0;
- const char* error = '\0';
+ const char* error = "";
if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
GfError("OpenALMusicPlayer: Stream read error: %s\n", error);

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2017 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -34,6 +34,7 @@ PATCHES=(
"${FILESDIR}"/${P}-format.patch
"${FILESDIR}"/${P}-noXmuXt.patch
"${FILESDIR}"/${P}-gcc6.patch
"${FILESDIR}"/${P}-gcc7.patch
)
src_prepare() {