mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Fix various Clang warnings.
- warning: 'register' storage class specifier is deprecated.
This commit is contained in:
parent
c85a46ff97
commit
db7b2a603d
@ -140,7 +140,7 @@ void nspace::strlower(char *n)
|
||||
* only with *x replaced with national_case_insensitive_map[*x].
|
||||
* This avoids a copy to use hash<const char*>
|
||||
*/
|
||||
register size_t t = 0;
|
||||
size_t t = 0;
|
||||
for (std::string::const_iterator x = s.begin(); x != s.end(); ++x) /* ++x not x++, as its faster */
|
||||
t = 5 * t + national_case_insensitive_map[(unsigned char)*x];
|
||||
return t;
|
||||
@ -149,7 +149,7 @@ void nspace::strlower(char *n)
|
||||
|
||||
size_t CoreExport irc::hash::operator()(const irc::string &s) const
|
||||
{
|
||||
register size_t t = 0;
|
||||
size_t t = 0;
|
||||
for (irc::string::const_iterator x = s.begin(); x != s.end(); ++x) /* ++x not x++, as its faster */
|
||||
t = 5 * t + national_case_insensitive_map[(unsigned char)*x];
|
||||
return t;
|
||||
|
@ -163,7 +163,7 @@ class MD5Provider : public HashProvider
|
||||
|
||||
void MD5Transform(word32 buf[4], word32 const in[16])
|
||||
{
|
||||
register word32 a, b, c, d;
|
||||
word32 a, b, c, d;
|
||||
|
||||
a = buf[0];
|
||||
b = buf[1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user