You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Phil Sorber (JIRA)" <ji...@apache.org> on 2013/11/12 19:16:17 UTC

[jira] [Resolved] (TS-2341) remap_stats: comparsion always true warning

     [ https://issues.apache.org/jira/browse/TS-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Sorber resolved TS-2341.
-----------------------------

    Resolution: Fixed

> remap_stats: comparsion always true warning
> -------------------------------------------
>
>                 Key: TS-2341
>                 URL: https://issues.apache.org/jira/browse/TS-2341
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Plugins
>    Affects Versions: 4.1.0
>            Reporter: Thomas Berger
>            Assignee: Phil Sorber
>            Priority: Trivial
>             Fix For: 4.2.0
>
>
> clang throws a warning while compiling the remap_stats plugin:
> {noformat}
> 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))
>                                                   ~~~~~~~~~~~ ^  ~~~
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)