We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f431f5a commit 5d8bebbCopy full SHA for 5d8bebb
1 file changed
include/boost/circular_buffer/debug.hpp
@@ -34,6 +34,10 @@ const int UNINITIALIZED = 0xcc;
34
35
template <class T>
36
inline void do_fill_uninitialized_memory(T* data, std::size_t size_in_bytes) BOOST_NOEXCEPT {
37
+#if defined(__GNUC__) && __GNUC__ < 5
38
+ // Avoid warning for calling memset with a constant size of zero
39
+ if( size_in_bytes )
40
+#endif
41
std::memset(static_cast<void*>(data), UNINITIALIZED, size_in_bytes);
42
}
43
0 commit comments