Explorar o código

Fix for warnings on windows compile due to depreciated compiler hint: register

devn00b hai 1 ano
pai
achega
dfc8d6d8c3
Modificáronse 2 ficheiros con 4 adicións e 4 borrados
  1. 3 3
      EQ2/source/common/MiscFunctions.cpp
  2. 1 1
      EQ2/source/common/md5.cpp

+ 3 - 3
EQ2/source/common/MiscFunctions.cpp

@@ -891,9 +891,9 @@ void SleepMS(int32 milliseconds) {
 
 size_t
 strlcpy(char *dst, const char *src, size_t size) {
-	register char *d = dst;
-	register const char *s = src;
-	register size_t n = size;
+	char *d = dst;
+	const char *s = src;
+	size_t n = size;
 
 	if (n != 0 && --n != 0) {
 		do {

+ 1 - 1
EQ2/source/common/md5.cpp

@@ -204,7 +204,7 @@ void MD5::Final(int8 digest[16], MD5Context *ctx) {
 
 /* The heart of the MD5 algorithm. */
 void MD5::Transform(uint32 hash[4], const uint32 input[16]) {
-   register uint32 a = hash[0], b = hash[1], c = hash[2], d = hash[3];
+   uint32 a = hash[0], b = hash[1], c = hash[2], d = hash[3];
 
    MD5STEP(F1, a, b, c, d, input[ 0]+0xd76aa478,  7);
    MD5STEP(F1, d, a, b, c, input[ 1]+0xe8c7b756, 12);