only FreeBSD change/little warning addressing
This commit is contained in:
parent
04e1d8c1cb
commit
996eb3b0af
@ -20,10 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua
|
|||||||
NODEPS:=clean distclean
|
NODEPS:=clean distclean
|
||||||
|
|
||||||
# Default settings
|
# Default settings
|
||||||
ifeq (,$(findstring clang,$(CC)))
|
STD=-std=c99 -pedantic -DREDIS_STATIC=''
|
||||||
STD=-std=c99 -pedantic -DREDIS_STATIC=''
|
ifneq (,$(findstring clang,$(CC)))
|
||||||
else
|
ifneq (,$(findstring FreeBSD,$(uname_S)))
|
||||||
STD=-std=c99 -Wno-c11-extensions -pedantic -DREDIS_STATIC=''
|
STD+=-Wno-c11-extensions
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
WARN=-Wall -W -Wno-missing-field-initializers
|
WARN=-Wall -W -Wno-missing-field-initializers
|
||||||
OPT=$(OPTIMIZATION)
|
OPT=$(OPTIMIZATION)
|
||||||
|
@ -1189,6 +1189,8 @@ void serverLogHexDump(int level, char *descr, void *value, size_t len) {
|
|||||||
void watchdogSignalHandler(int sig, siginfo_t *info, void *secret) {
|
void watchdogSignalHandler(int sig, siginfo_t *info, void *secret) {
|
||||||
#ifdef HAVE_BACKTRACE
|
#ifdef HAVE_BACKTRACE
|
||||||
ucontext_t *uc = (ucontext_t*) secret;
|
ucontext_t *uc = (ucontext_t*) secret;
|
||||||
|
#else
|
||||||
|
(void)secret;
|
||||||
#endif
|
#endif
|
||||||
UNUSED(info);
|
UNUSED(info);
|
||||||
UNUSED(sig);
|
UNUSED(sig);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user