1
0
forked from 0ad/0ad

Removes use of 'register' storage class, deprecated in C++11. Fixes -Wdeprecated-register build warnings in clang, fixes #3068.

This was SVN commit r16708.
This commit is contained in:
historic_bruno 2015-06-02 03:20:04 +00:00
parent 040bdd14db
commit 2092ed4396
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2013 Wildfire Games.
/* Copyright (C) 2015 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@ -124,7 +124,7 @@ Quat Qt_FromMatrix(HMatrix mat)
* Otherwise, the largest diagonal entry corresponds to the largest of |x|,
* |y|, or |z|, one of which must be larger than |w|, and at least 1/2. */
Quat qu;
register double tr, s;
double tr, s;
tr = mat[X][X] + mat[Y][Y]+ mat[Z][Z];
if (tr >= 0.0) {

View File

@ -11,6 +11,7 @@
// in the build system.
// * To avoid debug spew, we disable DEBUG.
// * Use memcopy to get rid of strict-aliasing warning
// * Remove use of deprecated 'register' storage class
#define __STDC_LIMIT_MACROS
@ -1855,7 +1856,7 @@ static void MD5Init(MD5_CTX *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];