mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Makefile.common: pass Clang sanitizer flags in release DEBUGANYWAY builds, too.
Also, - add a static assertion to engine.c - gameexec.c: compile out an unused function in Lunatic builds git-svn-id: https://svn.eduke32.com/eduke32@4451 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
66b789376b
commit
b4a050b0cf
3 changed files with 8 additions and 0 deletions
|
@ -370,6 +370,8 @@ endif
|
|||
# Clang 3.2 does only supports -fsanitize=address for the AddressSanitizer
|
||||
ifneq ($(PLATFORM),WINDOWS)
|
||||
CLANG_DEBUG_FLAGS := -fsanitize=address -fsanitize=bounds,enum,float-cast-overflow,object-size
|
||||
# CLANG_DEBUG_FLAGS := $(CLANG_DEBUG_FLAGS),signed-integer-overflow
|
||||
# CLANG_DEBUG_FLAGS := $(CLANG_DEBUG_FLAGS),unsigned-integer-overflow
|
||||
endif
|
||||
|
||||
ifneq (0,$(RELEASE))
|
||||
|
@ -389,6 +391,9 @@ ifneq (0,$(RELEASE))
|
|||
debug+= -fomit-frame-pointer -DNDEBUG
|
||||
else
|
||||
debug+= -DDEBUGGINGAIDS
|
||||
ifneq (0,$(CLANG))
|
||||
debug+= $(CLANG_DEBUG_FLAGS)
|
||||
endif
|
||||
endif
|
||||
ifneq (0,$(LTO))
|
||||
BASELDFLAGS+= -flto
|
||||
|
|
|
@ -2404,6 +2404,7 @@ typedef struct
|
|||
static permfifotype permfifo[MAXPERMS];
|
||||
static int32_t permhead = 0, permtail = 0;
|
||||
|
||||
EDUKE32_STATIC_ASSERT(MAXWALLSB < INT16_MAX);
|
||||
int16_t numscans, numbunches;
|
||||
static int16_t numhits;
|
||||
int16_t capturecount = 0;
|
||||
|
|
|
@ -211,6 +211,7 @@ static inline int32_t VM_CheckSquished(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
#if !defined LUNATIC
|
||||
GAMEEXEC_STATIC GAMEEXEC_INLINE void P_ForceAngle(DukePlayer_t *p)
|
||||
{
|
||||
int32_t n = 128-(krand()&255);
|
||||
|
@ -219,6 +220,7 @@ GAMEEXEC_STATIC GAMEEXEC_INLINE void P_ForceAngle(DukePlayer_t *p)
|
|||
p->return_to_center = 9;
|
||||
p->look_ang = p->rotscrnang = n>>1;
|
||||
}
|
||||
#endif
|
||||
|
||||
int32_t A_Dodge(spritetype *s)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue