mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Add FORCEWARNINGS Makefile flag to prevent disabling compiler warnings within the source.
git-svn-id: https://svn.eduke32.com/eduke32@3237 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b304360c87
commit
b6f41b6ae5
2 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,7 @@ endif
|
||||||
# RELEASE - 1 = no debugging
|
# RELEASE - 1 = no debugging
|
||||||
# DEBUGANYWAY - 1 = include debug symbols even when generating release code
|
# DEBUGANYWAY - 1 = include debug symbols even when generating release code
|
||||||
# DISABLEINLINING - 1 = compile inline functions as extern instead of static inline
|
# DISABLEINLINING - 1 = compile inline functions as extern instead of static inline
|
||||||
|
# FORCEWARNINGS - 1 = do not disable any compiler warnings within the source
|
||||||
# KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system
|
# KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system
|
||||||
# EFENCE - 1 = compile with Electric Fence for malloc() debugging
|
# EFENCE - 1 = compile with Electric Fence for malloc() debugging
|
||||||
# OPTLEVEL - 0..3 = GCC optimization strategy
|
# OPTLEVEL - 0..3 = GCC optimization strategy
|
||||||
|
@ -122,6 +123,7 @@ RELEASE?=1
|
||||||
DEBUGANYWAY?=0
|
DEBUGANYWAY?=0
|
||||||
KRANDDEBUG?=0
|
KRANDDEBUG?=0
|
||||||
DISABLEINLINING?=0
|
DISABLEINLINING?=0
|
||||||
|
FORCEWARNINGS?=0
|
||||||
EFENCE?=0
|
EFENCE?=0
|
||||||
DMALLOC?=0
|
DMALLOC?=0
|
||||||
OPTLEVEL?=2
|
OPTLEVEL?=2
|
||||||
|
@ -340,6 +342,9 @@ endif
|
||||||
ifneq (0,$(DISABLEINLINING))
|
ifneq (0,$(DISABLEINLINING))
|
||||||
BASECOMMONFLAGS+= -DDISABLE_INLINING
|
BASECOMMONFLAGS+= -DDISABLE_INLINING
|
||||||
endif
|
endif
|
||||||
|
ifneq (0,$(FORCEWARNINGS))
|
||||||
|
BASECOMMONFLAGS+= -DFORCE_WARNINGS
|
||||||
|
endif
|
||||||
|
|
||||||
BASELDFLAGS+= $(OPTOPT)
|
BASELDFLAGS+= $(OPTOPT)
|
||||||
|
|
||||||
|
|
|
@ -678,6 +678,7 @@ static inline char *Bstrncpyz(char *dst, const char *src, bsize_t n)
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
#ifndef FORCE_WARNINGS
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
// TODO: add MSVC pragmas to disable equivalent warning, if necessary later
|
// TODO: add MSVC pragmas to disable equivalent warning, if necessary later
|
||||||
#else
|
#else
|
||||||
|
@ -697,6 +698,7 @@ static inline char *Bstrncpyz(char *dst, const char *src, bsize_t n)
|
||||||
_Pragma("GCC diagnostic warning \"-Wformat\"") } while (0)
|
_Pragma("GCC diagnostic warning \"-Wformat\"") } while (0)
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
#endif // FORCE_WARNINGS
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
||||||
#define OSD_Printf_nowarn(fmt, ...) NOWARN(OSD_Printf, fmt, ## __VA_ARGS__)
|
#define OSD_Printf_nowarn(fmt, ...) NOWARN(OSD_Printf, fmt, ## __VA_ARGS__)
|
||||||
|
|
Loading…
Reference in a new issue