Reduce compiler warnings when boost uses std-atomics
authorRobin Gareus <robin@gareus.org>
Sun, 28 Jul 2019 18:10:09 +0000 (20:10 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 28 Jul 2019 18:10:09 +0000 (20:10 +0200)
commit6d4b94df13e9a7df4270494d8376d4b81a0b2b9e
treec472d6a6a789f8332d21b6bfcbef38fd0966c0d9
parent684b364a8a471c6ca43822ddfe41f0580b0ec83b
Reduce compiler warnings when boost uses std-atomics

This works around for compilers with non-static-data-member
initialization.

spinlock_t is-a struct { lockType _; } and BOOST_DETAIL_SPINLOCK_INIT
initializes the first member of the struct.
All defines of BOOST_DETAIL_SPINLOCK_INIT include c-style curly braces
to initialize the struct's data member.

However, modern C++ compiler interpret the braces differently resulting
in copy constriction of the initializer.
libs/pbd/spinlock.cc