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

Build failure using clang on Fedora 21

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.3, 5.2.0
    • Component/s: Core
    • Labels:
      None

      Description

      ../../proxy/CoreUtils.cc:266:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        intptr_t offset2 = abs(vaddr - vadd);
                           ^
      ../../proxy/CoreUtils.cc:266:22: note: use function 'std::abs' instead
        intptr_t offset2 = abs(vaddr - vadd);
                           ^~~
                           std::abs
      ../../proxy/CoreUtils.cc:305:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        intptr_t off2 = abs(vadd - framep);
                        ^
      ../../proxy/CoreUtils.cc:305:19: note: use function 'std::abs' instead
        intptr_t off2 = abs(vadd - framep);
                        ^~~
                        std::abs
      ../../proxy/CoreUtils.cc:348:19: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        intptr_t off2 = abs(vadd - framep);
                        ^
      ../../proxy/CoreUtils.cc:348:19: note: use function 'std::abs' instead
        intptr_t off2 = abs(vadd - framep);
                        ^~~
                        std::abs
      ../../proxy/CoreUtils.cc:652:20: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
          int nto_copy = abs((char *) copy_start - free_start);
                         ^
      ../../proxy/CoreUtils.cc:652:20: note: use function 'std::abs' instead
          int nto_copy = abs((char *) copy_start - free_start);
                         ^~~
                         std::abs
      ../../proxy/CoreUtils.cc:794:22: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        intptr_t offset2 = abs(vaddr - vadd);
                           ^
      ../../proxy/CoreUtils.cc:794:22: note: use function 'std::abs' instead
        intptr_t offset2 = abs(vaddr - vadd);
                           ^~~
                           std::abs
      

        Attachments

          Activity

            People

            • Assignee:
              zwoop Leif Hedstrom
              Reporter:
              zwoop Leif Hedstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: