From 99a3c47b5fc00680c06a1e829db81bfb1d48ce5c Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Wed, 16 Dec 2020 22:26:59 +0100 Subject: [PATCH] Fix build warning on OSX --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 00a55b509..f9e75dea1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -198,6 +198,12 @@ endif ## because UNRAR ifeq ($(USE_SYSTEM_UNRAR),0) +ifneq ($(UNAME),Darwin) +CFLAGS_UNRAR += -Wno-misleading-indentation +CFLAGS_UNRAR += -Wno-class-memaccess +else +CFLAGS_UNRAR += -Wno-missing-braces +endif CFLAGS_UNRAR += -Wno-unused-variable CFLAGS_UNRAR += -Wno-unused-parameter CFLAGS_UNRAR += -Wno-unused-function @@ -205,11 +211,9 @@ CFLAGS_UNRAR += -Wno-sign-compare CFLAGS_UNRAR += -Wno-dangling-else CFLAGS_UNRAR += -Wno-switch CFLAGS_UNRAR += -Wno-parentheses -CFLAGS_UNRAR += -Wno-misleading-indentation CFLAGS_UNRAR += -Wno-implicit-fallthrough CFLAGS_UNRAR += -Wno-extra CFLAGS_UNRAR += -Wno-unknown-pragmas -CFLAGS_UNRAR += -Wno-class-memaccess endif ifeq ($(DEBUG),0)