BIND 10 #2950: suppress tautological-constant-out-of-range-compare warning of clang++

BIND 10 Development do-not-reply at isc.org
Thu May 9 17:15:59 UTC 2013


#2950: suppress tautological-constant-out-of-range-compare warning of clang++
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  UnAssigned
  jinmei                             |                Status:  new
                       Type:         |             Milestone:  Next-Sprint-
  defect                             |  Proposed
                   Priority:         |              Keywords:
  medium                             |             Sensitive:  0
                  Component:  build  |           Sub-Project:  Core
  system                             |  Estimated Difficulty:  0
               CVSS Scoring:         |           Total Hours:  0
            Defect Severity:  N/A    |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 Build of BIND 10 fails with a recent version of clang++ if with
 `-Werror` due to the following warning:

 {{{
 message.cc:498:17: warning: comparison of constant 4 with expression of
 type 'const isc::dns::Message::Section' is always false [-Wtautological-
 constant-out-of-range-compare]
     if (section >= MessageImpl::NUM_SECTIONS) {
 }}}

 We cannot skip such checks if we want to protect our code from buggy
 application (either developed by ourselves or others).  So I propose
 just suppressing this warning globally in configure.ac.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2950>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list