[openjk] 26/32: Shared: Avoid using legacy register keyword

Simon McVittie smcv at debian.org
Sun Mar 12 18:03:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository openjk.

commit 0edd860ac9cd96fdbc5c594e17bc0265dddf8f0d
Author: Ensiform <ensiform at gmail.com>
Date:   Sun Mar 12 09:41:05 2017 -0500

    Shared: Avoid using legacy register keyword
    
    Not supported in C++11 and newer.
---
 code/game/wp_saberLoad.cpp  | 2 +-
 code/ui/ui_shared.cpp       | 2 +-
 codemp/botlib/l_precomp.cpp | 2 +-
 codemp/qcommon/common.cpp   | 2 +-
 codemp/qcommon/md5.cpp      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/code/game/wp_saberLoad.cpp b/code/game/wp_saberLoad.cpp
index c298d1d..1b89f34 100644
--- a/code/game/wp_saberLoad.cpp
+++ b/code/game/wp_saberLoad.cpp
@@ -1786,7 +1786,7 @@ typedef struct keywordHash_s {
 } keywordHash_t;
 
 static int KeywordHash_Key( const char *keyword ) {
-	int register hash, i;
+	int hash, i;
 
 	hash = 0;
 	for ( i=0; keyword[i]; i++ ) {
diff --git a/code/ui/ui_shared.cpp b/code/ui/ui_shared.cpp
index 379e677..885d0e9 100644
--- a/code/ui/ui_shared.cpp
+++ b/code/ui/ui_shared.cpp
@@ -1220,7 +1220,7 @@ KeywordHash_Key
 */
 int KeywordHash_Key(const char *keyword)
 {
-	int register hash, i;
+	int hash, i;
 
 	hash = 0;
 	for (i = 0; keyword[i] != '\0'; i++) {
diff --git a/codemp/botlib/l_precomp.cpp b/codemp/botlib/l_precomp.cpp
index 34c094f..c1b7100 100644
--- a/codemp/botlib/l_precomp.cpp
+++ b/codemp/botlib/l_precomp.cpp
@@ -558,7 +558,7 @@ void PC_PrintDefineHashTable(define_t **definehash)
 
 int PC_NameHash(char *name)
 {
-	int register hash, i;
+	int hash, i;
 
 	hash = 0;
 	for (i = 0; name[i] != '\0'; i++)
diff --git a/codemp/qcommon/common.cpp b/codemp/qcommon/common.cpp
index 139a0f7..fb9f050 100644
--- a/codemp/qcommon/common.cpp
+++ b/codemp/qcommon/common.cpp
@@ -647,7 +647,7 @@ Com_HashKey
 ============
 */
 int Com_HashKey(char *string, int maxlen) {
-	int register hash, i;
+	int hash, i;
 
 	hash = 0;
 	for (i = 0; i < maxlen && string[i] != '\0'; i++) {
diff --git a/codemp/qcommon/md5.cpp b/codemp/qcommon/md5.cpp
index 9213213..8bb307d 100644
--- a/codemp/qcommon/md5.cpp
+++ b/codemp/qcommon/md5.cpp
@@ -76,7 +76,7 @@ void MD5Init(struct MD5Context *ctx)
  */
 static void MD5Transform(uint32_t buf[4], uint32_t const in[16])
 {
-    register uint32_t a, b, c, d;
+    uint32_t a, b, c, d;
 
     a = buf[0];
     b = buf[1];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git



More information about the Pkg-games-commits mailing list