Commit 49305bca authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner

[2726] Suppress cppcheck

The variable is in larger scope because it is used as a constant, so
it's at the top of the function.
parent 056ca561
......@@ -126,7 +126,8 @@ bool
Dhcpv4Srv::run() {
while (!shutdown_) {
/// @todo: calculate actual timeout once we have lease database
int timeout = 1000;
//cppcheck-suppress variableScope This is temporary anyway
const int timeout = 1000;
// client's message and server's response
Pkt4Ptr query;
......
......@@ -134,7 +134,8 @@ bool Dhcpv6Srv::run() {
/// For now, we are just calling select for 1000 seconds. There
/// were some issues reported on some systems when calling select()
/// with too large values. Unfortunately, I don't recall the details.
int timeout = 1000;
//cppcheck-suppress variableScope This is temporary anyway
const int timeout = 1000;
// client's message and server's response
Pkt6Ptr query;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment