Skip to content

Commit

Permalink
Merge branch 'maint' of https://github.com/rheit/zdoom into maint2.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/version.h
  • Loading branch information
Christoph Oelckers committed Feb 6, 2016
2 parents 995fb54 + 2bc1d1c commit 9e90708
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/autosegs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#ifndef AUTOSEGS_H
#define AUTOSEGS_H

#include "doomtype.h"

#define REGMARKER(x) (x)
typedef void *REGINFO;

Expand Down Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/dobjtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions src/doomtype.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/g_heretic/a_hereticartifacts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ bool AArtiTimeBomb::Use (bool pickup)
{
angle_t angle = Owner->angle >> ANGLETOFINESHIFT;
AActor *mo = Spawn("ActivatedTimeBomb",
Vec3Angle(24*FRACUNIT, Owner->angle, - Owner->floorclip), ALLOW_REPLACE);
Owner->Vec3Angle(24*FRACUNIT, Owner->angle, - Owner->floorclip), ALLOW_REPLACE);
mo->target = Owner;
return true;
}
Expand Down

0 comments on commit 9e90708

Please sign in to comment.