diff options
Diffstat (limited to 'games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.5-c++17.patch')
-rw-r--r-- | games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.5-c++17.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.5-c++17.patch b/games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.5-c++17.patch new file mode 100644 index 000000000000..5f8e8dd7bb6d --- /dev/null +++ b/games-strategy/seven-kingdoms/files/seven-kingdoms-2.15.5-c++17.patch @@ -0,0 +1,23 @@ +Bug: https://bugs.gentoo.org/895996 +--- a/src/OMISC.cpp ++++ b/src/OMISC.cpp +@@ -608,7 +608,7 @@ int Misc::str_icmpx( const char* str1, const char* str2 ) + err_when( !str1 || !str2 ); + + int i; +- register int a,b; ++ int a,b; + + + for (i=0 ; (a=str1[i]) != '\0' && (b=str2[i]) != '\0' ; i++) +--- a/src/OSPATHBT.cpp ++++ b/src/OSPATHBT.cpp +@@ -50,7 +50,7 @@ void NodePriorityQueue::reset_priority_queue() + void NodePriorityQueue::insert_node(Node *insertNode) + { + unsigned int i = ++size; +- register int f=insertNode->node_f; ++ int f=insertNode->node_f; + Node **localElements = elements; + + while(i>1 && localElements[i/2]->node_f > f) |