Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
0213d987
Commit
0213d987
authored
Dec 12, 2011
by
Stephen Morris
Browse files
[1470] Removed declared but unused exception variable
This leads to a warning on some compiler.
parent
62463d1d
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/lib/asiolink/tcp_socket.h
View file @
0213d987
...
...
@@ -276,7 +276,7 @@ TCPSocket<C>::asyncSend(const void* data, size_t length,
// ... and send it
socket_
.
async_send
(
asio
::
buffer
(
send_buffer_
->
getData
(),
send_buffer_
->
getLength
()),
callback
);
}
catch
(
boost
::
numeric
::
bad_numeric_cast
&
e
)
{
}
catch
(
boost
::
numeric
::
bad_numeric_cast
&
)
{
isc_throw
(
BufferTooLarge
,
"attempt to send buffer larger than 64kB"
);
}
...
...
src/lib/bench/benchmark_util.cc
View file @
0213d987
...
...
@@ -103,7 +103,7 @@ loadQueryData(istream& input, BenchQueries& queries, const RRClass& qclass,
static_cast
<
const
unsigned
char
*>
(
buffer
.
getData
())
+
buffer
.
getLength
());
queries
.
push_back
(
query_data
);
}
catch
(
const
Exception
&
error
)
{
}
catch
(
const
Exception
&
)
{
if
(
strict
)
{
isc_throw
(
BenchMarkError
,
"failed to parse/create query around line "
<<
...
...
src/lib/cc/data.cc
View file @
0213d987
...
...
@@ -742,7 +742,7 @@ MapElement::find(const std::string& id, ConstElementPtr t) const {
t
=
p
;
return
(
true
);
}
}
catch
(
const
TypeError
&
e
)
{
}
catch
(
const
TypeError
&
)
{
// ignore
}
return
(
false
);
...
...
src/lib/dhcp/libdhcp.cc
View file @
0213d987
...
...
@@ -139,7 +139,7 @@ LibDHCP::packOptions6(boost::shared_array<uint8_t> data,
offset
=
it
->
second
->
pack
(
data
,
data_len
,
offset
);
}
}
catch
(
const
Exception
&
e
)
{
catch
(
const
Exception
&
)
{
cout
<<
"Packet build failed (Option build failed)."
<<
endl
;
throw
;
}
...
...
src/lib/python/isc/log/log.cc
View file @
0213d987
...
...
@@ -237,10 +237,10 @@ logConfigUpdate(PyObject*, PyObject* args) {
}
catch
(
const
isc
::
data
::
JSONError
&
je
)
{
std
::
string
error_msg
=
std
::
string
(
"JSON format error: "
)
+
je
.
what
();
PyErr_SetString
(
PyExc_TypeError
,
error_msg
.
c_str
());
}
catch
(
const
isc
::
data
::
TypeError
&
de
)
{
}
catch
(
const
isc
::
data
::
TypeError
&
)
{
PyErr_SetString
(
PyExc_TypeError
,
"argument 1 of log_config_update "
"is not a map of config data"
);
}
catch
(
const
isc
::
config
::
ModuleSpecError
&
mse
)
{
}
catch
(
const
isc
::
config
::
ModuleSpecError
&
)
{
PyErr_SetString
(
PyExc_TypeError
,
"argument 2 of log_config_update "
"is not a correct module specification"
);
}
catch
(
const
std
::
exception
&
e
)
{
...
...
src/lib/server_common/portconfig.cc
View file @
0213d987
...
...
@@ -59,7 +59,7 @@ parseAddresses(isc::data::ConstElementPtr addresses,
result
.
push_back
(
AddressPair
(
addr
->
stringValue
(),
port
->
intValue
()));
}
catch
(
const
TypeError
&
e
)
{
// Better error message
catch
(
const
TypeError
&
)
{
// Better error message
LOG_ERROR
(
logger
,
SRVCOMM_ADDRESS_TYPE
).
arg
(
addrPair
->
str
());
isc_throw
(
TypeError
,
...
...
src/lib/util/strutil.h
View file @
0213d987
...
...
@@ -191,7 +191,7 @@ tokenToNum(const std::string& num_token) {
NumType
num
;
try
{
num
=
boost
::
lexical_cast
<
NumType
>
(
num_token
);
}
catch
(
const
boost
::
bad_lexical_cast
&
ex
)
{
}
catch
(
const
boost
::
bad_lexical_cast
&
)
{
isc_throw
(
StringTokenError
,
"Invalid SRV numeric parameter: "
<<
num_token
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment