mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
fix gcc 9/10 warnings
This commit is contained in:
parent
d1d14111cb
commit
903725314c
6 changed files with 14 additions and 18 deletions
|
@ -21,6 +21,7 @@ Revision History:
|
|||
#include "util/buffer.h"
|
||||
#include "util/z3_exception.h"
|
||||
#include "util/common_msgs.h"
|
||||
#include <memory>
|
||||
|
||||
namespace subpaving {
|
||||
|
||||
|
@ -363,7 +364,7 @@ template<typename C>
|
|||
context_t<C>::monomial::monomial(unsigned sz, power const * pws):
|
||||
definition(constraint::MONOMIAL),
|
||||
m_size(sz) {
|
||||
memcpy(m_powers, pws, sz*sizeof(power));
|
||||
std::uninitialized_copy(pws, pws + sz, m_powers);
|
||||
std::sort(m_powers, m_powers+sz, typename power::lt_proc());
|
||||
DEBUG_CODE({
|
||||
for (unsigned i = 0; i < sz; i ++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue