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

clang complaint in HttpTransact.cc: logical not is only applied to the left hand side of this comparison

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.3.5
    • Cleanup
    • None

    Description

        CXX    HttpTransact.o
      HttpTransact.cc:5186:9: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
              ! s->client_info.transfer_encoding == CHUNKED_ENCODING) {
              ^                                  ~~
      HttpTransact.cc:5186:9: note: add parentheses after the '!' to evaluate the comparison first
              ! s->client_info.transfer_encoding == CHUNKED_ENCODING) {
              ^
                (                                                   )
      HttpTransact.cc:5186:9: note: add parentheses around left hand side expression to silence this warning
              ! s->client_info.transfer_encoding == CHUNKED_ENCODING) {
              ^
              (                                 )
      1 error generated.
      make[3]: *** [HttpTransact.o] Error 1
      make[3]: Leaving directory `/home/igalic/src/asf/trafficserver/proxy/http'
      

      Attachments

        Activity

          People

            i.galic Igor Galić
            i.galic Igor Galić
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: