]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix various Clang warnings.
authorPeter Powell <petpow@saberuk.com>
Thu, 26 Feb 2015 07:41:46 +0000 (07:41 +0000)
committerPeter Powell <petpow@saberuk.com>
Thu, 26 Feb 2015 07:41:46 +0000 (07:41 +0000)
- warning: 'register' storage class specifier is deprecated.

src/hashcomp.cpp
src/modules/m_md5.cpp

index 3fb7f84fbf0fde09d799a6091faeca177b4e39f9..e0347421b29d01fb89e7cedd13d89aacde04fb74 100644 (file)
@@ -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;
index 14ccf16a8c8ff87ae18d2088d89ccce08ac7a398..c902ee3cb753c8f9c527a0bfd3e381656261c766 100644 (file)
@@ -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];