mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Fixup DEBUGMODE builds
doomdef.h: check if the build system already define our DEBUG code version.mk: do not fail on our inline functions in DEBUGMODE features.mk: we do not need the VALGRIND libraies, just the headers mserv.c: start registered with false in Update_parameters()
This commit is contained in:
parent
8fefb8a87b
commit
5b6c24281d
4 changed files with 13 additions and 1 deletions
|
@ -61,6 +61,7 @@ endif
|
|||
# (Valgrind is a memory debugger.)
|
||||
ifdef VALGRIND
|
||||
VALGRIND_PKGCONFIG?=valgrind
|
||||
VALGRIND_LDFLAGS=
|
||||
$(eval $(call Use_pkg_config,VALGRIND))
|
||||
ZDEBUG=1
|
||||
opts+=-DHAVE_VALGRIND
|
||||
|
|
|
@ -84,6 +84,9 @@ endif
|
|||
WFLAGS+=-Wnested-externs
|
||||
#WFLAGS+=-Wunreachable-code
|
||||
WFLAGS+=-Winline
|
||||
ifdef DEBUGMODE
|
||||
WFLAGS+=-Wno-error=inline
|
||||
endif
|
||||
ifdef GCC43
|
||||
WFLAGS+=-funit-at-a-time
|
||||
WFLAGS+=-Wlogical-op
|
||||
|
|
|
@ -110,11 +110,19 @@ FILE *fopenfile(const char*, const char*);
|
|||
|
||||
// If you don't disable ALL debug first, you get ALL debug enabled
|
||||
#if !defined (NDEBUG)
|
||||
#ifndef PACKETDROP
|
||||
#define PACKETDROP
|
||||
#endif
|
||||
#ifndef PARANOIA
|
||||
#define PARANOIA
|
||||
#endif
|
||||
#ifndef RANGECHECK
|
||||
#define RANGECHECK
|
||||
#endif
|
||||
#ifndef ZDEBUG
|
||||
#define ZDEBUG
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Uncheck this to compile debugging code
|
||||
//#define RANGECHECK
|
||||
|
|
|
@ -506,7 +506,7 @@ static void
|
|||
Update_parameters (void)
|
||||
{
|
||||
#ifdef MASTERSERVER
|
||||
int registered;
|
||||
int registered = 0;
|
||||
int delayed;
|
||||
|
||||
if (Online())
|
||||
|
|
Loading…
Reference in a new issue