Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Nov 8, 2016
2 parents 8e30f37 + 07be21c commit 41eac78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/atomic/detail/ops_msvc_x86.hpp
Expand Up @@ -772,7 +772,7 @@ struct msvc_dcas_x86
return compare_exchange_strong(storage, expected, desired, success_order, failure_order);
}

static BOOST_FORCEINLINE storage_type exchange(storage_type volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT
static BOOST_FORCEINLINE storage_type exchange(storage_type volatile& storage, storage_type v, memory_order) BOOST_NOEXCEPT
{
BOOST_ATOMIC_DETAIL_COMPILER_BARRIER();

Expand Down
10 changes: 10 additions & 0 deletions src/lockpool.cpp
Expand Up @@ -30,6 +30,12 @@
#include <boost/atomic/detail/lockpool.hpp>
#include <boost/atomic/detail/pause.hpp>

#if defined(BOOST_MSVC)
#pragma warning(push)
// 'struct_name' : structure was padded due to __declspec(align())
#pragma warning(disable: 4324)
#endif

namespace boost {
namespace atomics {
namespace detail {
Expand Down Expand Up @@ -149,3 +155,7 @@ BOOST_ATOMIC_DECL void lockpool::signal_fence() BOOST_NOEXCEPT
} // namespace detail
} // namespace atomics
} // namespace boost

#if defined(BOOST_MSVC)
#pragma warning(pop)
#endif

0 comments on commit 41eac78

Please sign in to comment.