PIByteArray gcc one annoying warning off

This commit is contained in:
2026-03-26 09:32:30 +03:00
parent 6ddc7263e8
commit 88d4a8e74d

View File

@@ -1105,9 +1105,18 @@ public:
//! \~english Add to the end byte array "data"
//! \~russian Добавляет в конец массива содержимое массива "data"
PIByteArray & append(const PIByteArray & data_) {
#ifdef CC_GCC
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wstringop-overflow"
# pragma GCC diagnostic ignored "-Warray-bounds"
# pragma GCC diagnostic ignored "-Wrestrict"
#endif
const size_t ps = size();
enlarge(data_.size_s());
memcpy(data(ps), data_.data(), data_.size());
#ifdef CC_GCC
# pragma GCC diagnostic pop
#endif
return *this;
}