You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2014/12/25 03:48:13 UTC

[jira] [Created] (TS-3262) Build failure using clang on Fedora 21

Leif Hedstrom created TS-3262:
---------------------------------

             Summary: Build failure using clang on Fedora 21
                 Key: TS-3262
                 URL: https://issues.apache.org/jira/browse/TS-3262
             Project: Traffic Server
          Issue Type: Bug
            Reporter: Leif Hedstrom


{code}
../../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
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)