BIND 10 trac2726, updated. 49305bca03037ecf7cc2f91f75c4fd1c2d8bd5d1 [2726] Suppress cppcheck

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 12 09:36:16 UTC 2013


The branch, trac2726 has been updated
       via  49305bca03037ecf7cc2f91f75c4fd1c2d8bd5d1 (commit)
      from  056ca56102ee79dbc19629cdc6720d864b7a7e8d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 49305bca03037ecf7cc2f91f75c4fd1c2d8bd5d1
Author: Michal 'vorner' Vaner <vorner at vorner.cz>
Date:   Wed Jun 12 11:34:33 2013 +0200

    [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.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/dhcp4/dhcp4_srv.cc |    3 ++-
 src/bin/dhcp6/dhcp6_srv.cc |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc
index 01e7da7..8aa913c 100644
--- a/src/bin/dhcp4/dhcp4_srv.cc
+++ b/src/bin/dhcp4/dhcp4_srv.cc
@@ -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;
diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc
index 4f5133c..ef69a94 100644
--- a/src/bin/dhcp6/dhcp6_srv.cc
+++ b/src/bin/dhcp6/dhcp6_srv.cc
@@ -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;



More information about the bind10-changes mailing list