summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-02-26 07:41:46 +0000
committerPeter Powell <petpow@saberuk.com>2015-02-26 07:41:46 +0000
commitdb7b2a603d4a4ce0f9bc71173b379b42d0416759 (patch)
treef9c23843d1d4c76a753b91526607b374e48a7ee9 /src
parentc85a46ff97c03b28bfb54578c5ff851f47af8419 (diff)
Fix various Clang warnings.
- warning: 'register' storage class specifier is deprecated.
Diffstat (limited to 'src')
-rw-r--r--src/hashcomp.cpp4
-rw-r--r--src/modules/m_md5.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 3fb7f84fb..e0347421b 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -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;
diff --git a/src/modules/m_md5.cpp b/src/modules/m_md5.cpp
index 14ccf16a8..c902ee3cb 100644
--- a/src/modules/m_md5.cpp
+++ b/src/modules/m_md5.cpp
@@ -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];