Disable "-Wmismatched-new-delete", certainly needs another set of eyes to glance over this, but it appears hidden under a layer of templates, operators and inheritance the right thing happens:

new > posix_memalign / delete -> free. According to the man pages this would be correct.
meow-7.2.2
Nicky 2022-02-10 10:31:48 +01:00
parent 47108ca002
commit fd98fbf0a5
1 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,13 @@
#include "llcontrolavatar.h"
#include "lldrawpoolavatar.h"
// <FS:ND> Tentatively ignoring mismatched new/delete from the MemTrackableNonVirtual. I think according to the docs
// they are properly matched
#if LL_LINUX
#pragma GCC diagnostic ignored "-Wmismatched-new-delete"
#endif
// </FS:ND>
const F32 MIN_INTERPOLATE_DISTANCE_SQUARED = 0.001f * 0.001f;
const F32 MAX_INTERPOLATE_DISTANCE_SQUARED = 10.f * 10.f;
const F32 OBJECT_DAMPING_TIME_CONSTANT = 0.06f;