diff --git a/src/Makefile b/src/Makefile index 912cbc19..2d279775 100644 --- a/src/Makefile +++ b/src/Makefile @@ -21,6 +21,11 @@ NODEPS:=clean distclean # Default settings 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) diff --git a/src/debug.c b/src/debug.c index 8cc53d92..70def3b3 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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);