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 2015/05/26 23:22:21 UTC

[jira] [Created] (TS-3637) Build errors on OS X / clang in I_Lock.h asserts.

Leif Hedstrom created TS-3637:
---------------------------------

             Summary: Build errors on OS X / clang in I_Lock.h asserts.
                 Key: TS-3637
                 URL: https://issues.apache.org/jira/browse/TS-3637
             Project: Traffic Server
          Issue Type: Bug
          Components: Core
            Reporter: Leif Hedstrom


Seems some compilers complain on the volatility of thread_holding not being loaded in an ink_assert.

{code}
In file included from ./I_Continuation.h:40:
./I_Lock.h:350:15: error: expression result unused; assign into a variable to force a volatile load [-Werror,-Wunused-volatile-lvalue]
    (void)(m->thread_holding);
           ~  ^~~~~~~~~~~~~~
./I_Lock.h:383:15: error: expression result unused; assign into a variable to force a volatile load [-Werror,-Wunused-volatile-lvalue]
    (void)(m->thread_holding);
           ~  ^~~~~~~~~~~~~~
./I_Lock.h:421:17: error: expression result unused; assign into a variable to force a volatile load [-Werror,-Wunused-volatile-lvalue]
      (void)(m->thread_holding);
             ~  ^~~~~~~~~~~~~~
3 errors generated.
{code}




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