mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-04-22 08:28:53 +00:00
Merge branch 'maint' of https://github.com/rheit/zdoom into maint1.9
# Conflicts: # src/version.h
This commit is contained in:
commit
2086cf564a
3 changed files with 15 additions and 3 deletions
|
@ -35,6 +35,8 @@
|
|||
#ifndef AUTOSEGS_H
|
||||
#define AUTOSEGS_H
|
||||
|
||||
#include "doomtype.h"
|
||||
|
||||
#define REGMARKER(x) (x)
|
||||
typedef void *REGINFO;
|
||||
|
||||
|
@ -76,11 +78,11 @@ class FAutoSegIterator
|
|||
}
|
||||
Probe = Head;
|
||||
}
|
||||
REGINFO operator*() const
|
||||
REGINFO operator*() const NO_SANITIZE
|
||||
{
|
||||
return *Probe;
|
||||
}
|
||||
FAutoSegIterator &operator++()
|
||||
FAutoSegIterator &operator++() NO_SANITIZE
|
||||
{
|
||||
do
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ bool PClass::bShutdown;
|
|||
// A harmless non-NULL FlatPointer for classes without pointers.
|
||||
static const size_t TheEnd = ~(size_t)0;
|
||||
|
||||
static int STACK_ARGS cregcmp (const void *a, const void *b)
|
||||
static int STACK_ARGS cregcmp (const void *a, const void *b) NO_SANITIZE
|
||||
{
|
||||
// VC++ introduces NULLs in the sequence. GCC seems to work as expected and not do it.
|
||||
const ClassReg *class1 = *(const ClassReg **)a;
|
||||
|
|
|
@ -113,6 +113,16 @@ typedef TMap<int, const PClass *> FClassMap;
|
|||
#define NOVTABLE
|
||||
#endif
|
||||
|
||||
#if defined(__clang__)
|
||||
#if defined(__has_feature) && __has_feature(address_sanitizer)
|
||||
#define NO_SANITIZE __attribute__((no_sanitize("address")))
|
||||
#else
|
||||
#define NO_SANITIZE
|
||||
#endif
|
||||
#else
|
||||
#define NO_SANITIZE
|
||||
#endif
|
||||
|
||||
#include "basictypes.h"
|
||||
|
||||
// Bounding box coordinate storage.
|
||||
|
|
Loading…
Reference in a new issue