Skip to content
Permalink
Browse files

Silence bogus gcc warnings about missing struct member initializers.

  • Loading branch information
Lastique committed May 29, 2017
1 parent be5ed8a commit 078639812015b96f64eb88a67a857d12201aab17
Showing with 10 additions and 0 deletions.
  1. +10 −0 include/boost/atomic/detail/bitwise_cast.hpp
@@ -25,6 +25,12 @@
#pragma once
#endif

#if defined(BOOST_GCC) && (BOOST_GCC+0) >= 40600
#pragma GCC diagnostic push
// missing initializer for member var
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

namespace boost {
namespace atomics {
namespace detail {
@@ -61,4 +67,8 @@ BOOST_FORCEINLINE To bitwise_cast(From const& from) BOOST_NOEXCEPT
} // namespace atomics
} // namespace boost

#if defined(BOOST_GCC) && (BOOST_GCC+0) >= 40600
#pragma GCC diagnostic pop
#endif

#endif // BOOST_ATOMIC_DETAIL_BITWISE_CAST_HPP_INCLUDED_

0 comments on commit 0786398

Please sign in to comment.
You can’t perform that action at this time.