BIND 10 #2404: MySQL IPv4 lease database access functions

BIND 10 Development do-not-reply at isc.org
Fri Dec 7 20:31:50 UTC 2012


#2404: MySQL IPv4 lease database access functions
-------------------------------------+-------------------------------------
            Reporter:  stephen       |                        Owner:
                Type:  task          |  stephen
            Priority:  medium        |                       Status:
           Component:  dhcpdb        |  closed
            Keywords:                |                    Milestone:
           Sensitive:  0             |  Sprint-DHCP-20121213
         Sub-Project:  DHCP          |                   Resolution:
Estimated Difficulty:  0             |  complete
         Total Hours:  0             |                 CVSS Scoring:
                                     |              Defect Severity:  N/A
                                     |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------

Comment (by stephen):

 A subsequent commit 5c9dba4001ebbb432a7313a91cb3bc7b440bb396 was applied
 to master after being reviewed in the BIND 10 Jabber room.

 The array declarations in the !MySqlExchange objects in mysql_lease_mgr.cc
 were effectively declared as:
 {{{
 const int A = 6;
 const int B = A;
 std::string alpha[B];
 }}}
 cppcheck 1.56 was objecting to the indirection.  Changing the code to:
 {{{
 const int B = 6;
 std::string alpha[B];
 }}}
 ... worked.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2404#comment:14>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list