]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix unused variables reported by the clang static analyzer.
authorPeter Powell <petpow@saberuk.com>
Sat, 14 Apr 2012 16:04:47 +0000 (17:04 +0100)
committerPeter Powell <petpow@saberuk.com>
Sat, 14 Apr 2012 16:04:47 +0000 (17:04 +0100)
src/channels.cpp
src/modules/m_spanningtree/fjoin.cpp
src/server.cpp

index 8e7d4af06cc5426e1d76f231587c29e350cd7462..0b8945aca7c1e620c6b26e7451b15b91e992a108 100644 (file)
@@ -804,7 +804,6 @@ void Channel::UserList(User *user)
                        dlen = curlen = snprintf(list,MAXBUF,"%s %c %s :", user->nick.c_str(), this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name.c_str());
                        ptr = list + dlen;
 
-                       ptrlen = 0;
                        numusers = 0;
                }
 
index ea217b398e044e154e6c06ae5e9b7a0783ff5671..8846b2fbcf2aae04de55aaa218a53d0762c67de2 100644 (file)
@@ -93,7 +93,6 @@ CmdResult CommandFJoin::Handle(const std::vector<std::string>& params, User *src
                        parameterlist param_list;
                        if (Utils->AnnounceTSChange)
                                chan->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :TS for %s changed from %lu to %lu", chan->name.c_str(), channel.c_str(), (unsigned long) ourTS, (unsigned long) TS);
-                       ourTS = TS;
                        // while the name is equal in case-insensitive compare, it might differ in case; use the remote version
                        chan->name = channel;
                        chan->age = TS;
index 91b911ff2c6b2d007747a6b37c5ab489deae2cf1..cba395ebe491af65853dc2b8af768d38138ea379 100644 (file)
@@ -100,7 +100,6 @@ void InspIRCd::IncrementUID(int pos)
                        for (int i = 3; i < (UUID_LENGTH - 1); i++)
                        {
                                current_uid[i] = 'A';
-                               pos  = UUID_LENGTH - 1;
                        }
                }
                else