summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-23 15:19:48 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-23 15:19:48 +0000
commit7c002246894139eb3ff602a1687cd6b6c9e5ff32 (patch)
tree9c29dc5d79c52ab511ccd4542cee7a3b0614bb56 /src/modules/m_spanningtree
parent85a6e09096f762554649c5cb9ebb95e8bf8f5f4f (diff)
Remove (unnecessary) compiler warning bypass; we don't need to assign TreeSocket to a temporary var anyway, so remove the assign and we have no need to get gcc to ignore an unused var ;p.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10228 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index 5b3ace4d4..912959b4e 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -693,7 +693,7 @@ int TreeSocket::OnIncomingConnection(int newsock, char* ip)
}
}
- TreeSocket* s = new TreeSocket(this->Utils, this->Instance, newsock, ip, this->Hook);
- s = s; /* Whinge whinge whinge, thats all GCC ever does. */
+ /* we don't need a pointer to this, creating it stores it in the necessary places */
+ new TreeSocket(this->Utils, this->Instance, newsock, ip, this->Hook);
return true;
}