supress warning of gcc

pull/2/head
MITSUNARI Shigeo 6 years ago
parent 50179edcfe
commit f4b525a639
  1. 7
      include/mcl/vint.hpp

@ -805,9 +805,16 @@ public:
FixedBuffer& operator=(const FixedBuffer& rhs)
{
size_ = rhs.size_;
#if defined(__GNUC__) && !defined(__EMSCRIPTEN__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
for (size_t i = 0; i < size_; i++) {
v_[i] = rhs.v_[i];
}
#if defined(__GNUC__) && !defined(__EMSCRIPTEN__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
return *this;
}
void clear() { size_ = 0; }

Loading…
Cancel
Save