diff options
author | Christian Pointner <equinox@anytun.org> | 2009-03-04 22:46:28 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-03-04 22:46:28 +0000 |
commit | c0f45e79d0a238a05bb761c04283336230c76531 (patch) | |
tree | eaaf555e52e7a7543ff23771fc074e7c1e505fbb | |
parent | cleanup (diff) |
cleanup (less warnings on MSVC)
-rw-r--r-- | src/anytun.cpp | 6 | ||||
-rw-r--r-- | src/anytun.suo | bin | 66048 -> 66048 bytes | |||
-rw-r--r-- | src/anytun.vcproj | 4 | ||||
-rw-r--r-- | src/win32/tunDevice.cpp | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp index e321b17..eaa83ff 100644 --- a/src/anytun.cpp +++ b/src/anytun.cpp @@ -186,7 +186,7 @@ void sender(void* p) mux = gRoutingTable.getRoute(plain_packet.getDstAddr()); //std::cout << " -> "<<mux << std::endl; cit = gConnectionList.getConnection(mux); - } catch (std::exception& e) { continue; } // no route + } catch (std::exception&) { continue; } // no route else cit = gConnectionList.getBegin(); #else @@ -213,7 +213,7 @@ void sender(void* p) try { param->src.send(encrypted_packet.getBuf(), encrypted_packet.getLength(), conn.remote_end_); - } catch (std::exception&) { + } catch (std::exception& /*e*/) { //TODO: do something here //cLog.msg(Log::PRIO_ERROR) << "could not send data: " << e.what(); } @@ -250,7 +250,7 @@ void receiver(void* p) int len; try { len = param->src.recv(encrypted_packet.getBuf(), encrypted_packet.getLength(), remote_end); - } catch (std::exception& e) { + } catch (std::exception& /*e*/) { //TODO: do something here //cLog.msg(Log::PRIO_ERROR) << "could not recive packet "<< e.what(); continue; diff --git a/src/anytun.suo b/src/anytun.suo Binary files differindex 97051e3..8bdd35e 100644 --- a/src/anytun.suo +++ b/src/anytun.suo diff --git a/src/anytun.vcproj b/src/anytun.vcproj index df660cd..4bd6d85 100644 --- a/src/anytun.vcproj +++ b/src/anytun.vcproj @@ -189,7 +189,7 @@ Name="VCCLCompilerTool"
AdditionalOptions="/I "C:\Program Files\boost\boost_1_35_0\""
Optimization="0"
- PreprocessorDefinitions="LOG_FILE;LOG_STDOUT;LOG_WINEVENTLOG;WIN_SERVICE;USE_SSL_CRYPTO;NO_DAEMON;NO_EXEC;NO_SIGNALCONTROLLER;WIN32_LEAN_AND_MEAN"
+ PreprocessorDefinitions="LOG_FILE;LOG_STDOUT;LOG_WINEVENTLOG;WIN_SERVICE;USE_SSL_CRYPTO;NO_DAEMON;NO_EXEC;NO_SIGNALCONTROLLER;WIN32_LEAN_AND_MEAN;BOOST_ALL_DYN_LINK"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
@@ -264,7 +264,7 @@ />
<Tool
Name="VCCLCompilerTool"
- PreprocessorDefinitions="LOG_FILE;LOG_STDOUT;LOG_WINEVENTLOG;WIN_SERVICE;USE_SSL_CRYPTO;NO_DAEMON;NO_EXEC;NO_SIGNALCONTROLLER;WIN32_LEAN_AND_MEAN"
+ PreprocessorDefinitions="LOG_FILE;LOG_STDOUT;LOG_WINEVENTLOG;WIN_SERVICE;USE_SSL_CRYPTO;NO_DAEMON;NO_EXEC;NO_SIGNALCONTROLLER;WIN32_LEAN_AND_MEAN;BOOST_ALL_DYN_LINK"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
diff --git a/src/win32/tunDevice.cpp b/src/win32/tunDevice.cpp index 12f025c..3edee2a 100644 --- a/src/win32/tunDevice.cpp +++ b/src/win32/tunDevice.cpp @@ -132,7 +132,7 @@ bool TunDevice::getAdapter(std::string const& dev_name) continue; actual_name_ = nkey["Name"]; - } catch(AnytunErrno& e) { continue; } + } catch(AnytunErrno&) { continue; } if(dev_name != "") { if(dev_name == actual_name_) { |