From 7c002246894139eb3ff602a1687cd6b6c9e5ff32 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 23 Aug 2008 15:19:48 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3