Commit 5ad588f0 authored by David Carlier's avatar David Carlier Committed by antirez
Browse files

only FreeBSD change/little warning addressing

parent 11801e1a
......@@ -20,10 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua
NODEPS:=clean distclean
# Default settings
ifeq (,$(findstring clang,$(CC)))
STD=-std=c99 -pedantic -DREDIS_STATIC=''
else
STD=-std=c99 -Wno-c11-extensions -pedantic -DREDIS_STATIC=''
STD=-std=c99 -pedantic -DREDIS_STATIC=''
ifneq (,$(findstring clang,$(CC)))
ifneq (,$(findstring FreeBSD,$(uname_S)))
STD+=-Wno-c11-extensions
endif
endif
WARN=-Wall -W -Wno-missing-field-initializers
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) {
#ifdef HAVE_BACKTRACE
ucontext_t *uc = (ucontext_t*) secret;
#else
(void)secret;
#endif
UNUSED(info);
UNUSED(sig);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment