Leif Hedstrom created TS-3638:
---------------------------------
Summary: Build errors on OS X / clang in I_Lock.h asserts.
Key: TS-3638
URL: https://issues.apache.org/jira/browse/TS-3638
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)