mirror of
https://github.com/Z3Prover/z3
synced 2026-02-18 06:34:22 +00:00
Fix all build warnings with surgical changes
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
ee162695b6
commit
72b4c2258c
5 changed files with 11 additions and 5 deletions
|
|
@ -405,7 +405,14 @@ public:
|
|||
if (CallDestructors) {
|
||||
back().~T();
|
||||
}
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
reinterpret_cast<SZ *>(m_data)[SIZE_IDX]--;
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
vector& push_back(T const & elem) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue