PIByteArray gcc one annoying warning off
This commit is contained in:
@@ -1105,9 +1105,18 @@ public:
|
|||||||
//! \~english Add to the end byte array "data"
|
//! \~english Add to the end byte array "data"
|
||||||
//! \~russian Добавляет в конец массива содержимое массива "data"
|
//! \~russian Добавляет в конец массива содержимое массива "data"
|
||||||
PIByteArray & append(const PIByteArray & 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();
|
const size_t ps = size();
|
||||||
enlarge(data_.size_s());
|
enlarge(data_.size_s());
|
||||||
memcpy(data(ps), data_.data(), data_.size());
|
memcpy(data(ps), data_.data(), data_.size());
|
||||||
|
#ifdef CC_GCC
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user