diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-01-12 20:02:47 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-01-12 20:02:47 -0500 |
commit | a1de57a063af397612bb77f87c803c578d04f8e5 (patch) | |
tree | 89195dc59b21098e0d747d88e2f4c1ee6ba9d9f0 /src/net.cpp | |
parent | 025d495481f2313a1550d8d101415ff3e3a6b89f (diff) |
Compile with extra warnings turned on. And more makefile/code tidying up.
This turns on most gcc warnings, and removes some unused variables and other code that triggers warnings.
Exceptions are:
-Wno-sign-compare : triggered by lots of comparisons of signed integer to foo.size(), which is unsigned.
-Wno-char-subscripts : triggered by the convert-to-hex functions (I may fix this in a future commit).
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/net.cpp b/src/net.cpp index 72897687ef..817203b013 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -938,7 +938,6 @@ void ThreadMapPort2(void* parg) char port[6]; sprintf(port, "%d", GetListenPort()); - const char * rootdescurl = 0; const char * multicastif = 0; const char * minissdpdpath = 0; struct UPNPDev * devlist = 0; @@ -960,8 +959,6 @@ void ThreadMapPort2(void* parg) r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr)); if (r == 1) { - char intClient[16]; - char intPort[6]; string strDesc = "Bitcoin " + FormatFullVersion(); #ifndef UPNPDISCOVER_SUCCESS /* miniupnpc 1.5 */ |