From 205a71b38f3f2e18a0bc5f7dc3031b2ff8ad3156 Mon Sep 17 00:00:00 2001 From: Peter Levine Date: Fri, 7 Jul 2017 03:02:29 -0400 Subject: [PATCH] games-sports/trigger: Fix building with GCC-6 Bug: https://bugs.gentoo.org/show_bug.cgi?id=617886 Package-Manager: Portage-2.3.6, Repoman-2.3.2 Closes: https://github.com/gentoo/gentoo/pull/5059 --- .../trigger/files/trigger-0.6.1-gcc6.patch | 39 +++++++++++++++++++ games-sports/trigger/trigger-0.6.1-r1.ebuild | 6 ++- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 games-sports/trigger/files/trigger-0.6.1-gcc6.patch diff --git a/games-sports/trigger/files/trigger-0.6.1-gcc6.patch b/games-sports/trigger/files/trigger-0.6.1-gcc6.patch new file mode 100644 index 000000000000..38822287c61d --- /dev/null +++ b/games-sports/trigger/files/trigger-0.6.1-gcc6.patch @@ -0,0 +1,39 @@ +Bug: https://bugs.gentoo.org/617886 + +--- a/src/pengine/tinyxmlparser.cpp ++++ b/src/pengine/tinyxmlparser.cpp +@@ -326,14 +326,14 @@ + if ( !p || !*p ) + { + SetError( TIXML_ERROR_DOCUMENT_EMPTY ); +- return false; ++ return NULL; + } + + p = SkipWhiteSpace( p ); + if ( !p ) + { + SetError( TIXML_ERROR_DOCUMENT_EMPTY ); +- return false; ++ return NULL; + } + + while ( p && *p ) +@@ -541,7 +541,7 @@ + if ( !p || !*p || *p != '<' ) + { + if ( document ) document->SetError( TIXML_ERROR_PARSING_ELEMENT ); +- return false; ++ return NULL; + } + + p = SkipWhiteSpace( p+1 ); +@@ -551,7 +551,7 @@ + if ( !p || !*p ) + { + if ( document ) document->SetError( TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME ); +- return false; ++ return NULL; + } + + TIXML_STRING endTag ("