Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-2341

remap_stats: comparsion always true warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.1.2
    • 4.1.2
    • Plugins
    • None

    Description

      clang throws a warning while compiling the remap_stats plugin:

      plugins/experimental/remap_stats/remap_stats.c:230:63: warning: comparison of constant 599 with expression of type 'TSHttpStatus' is always true [-Wtautological-constant-out-of-range-compare]
                      else if ((status_code >= 500) && (status_code <= 599))
                                                        ~~~~~~~~~~~ ^  ~~~
      

      Attachments

        Activity

          People

            psudaemon Phil Sorber
            tbe.pp Thomas Berger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: