summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorYossi Gottlieb <yossigo@gmail.com>2021-02-24 10:10:02 +0200
committerGitHub <noreply@github.com>2021-02-24 10:10:02 +0200
commitd1b5767a82889cfcd9c691131512262827059793 (patch)
tree7fdf64932795e9a31fa73ecffca3564f5c3b3eef /src/Makefile
parentae7d5bf6172e4597a859605268dd960c198ed935 (diff)
downloadredis-d1b5767a82889cfcd9c691131512262827059793.tar.gz
Cleanup clang warnings. (#8546)
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 3bc9f11c0..ecd69295f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -21,7 +21,12 @@ NODEPS:=clean distclean
# Default settings
STD=-pedantic -DREDIS_STATIC=''
+
+# Use -Wno-c11-extensions on clang, either where explicitly used or on
+# platforms we can assume it's being used.
ifneq (,$(findstring clang,$(CC)))
+ STD+=-Wno-c11-extensions
+else
ifneq (,$(findstring FreeBSD,$(uname_S)))
STD+=-Wno-c11-extensions
endif