ref: c55429d7a5db72e045d8f0ccd350de822a970c00
parent: 8be8fe17757aa298881811b35016a06872b13228
author: Andoni Morales Alastruey <[email protected]>
date: Tue Mar 18 03:57:27 EDT 2014
Replace -Werror with -Wall Treating warnings as error is useless if no warning is activated. Several build systems enable -Wall in the CLFAGS, which in combination with -Werror can trigger undesired build errors.
--- a/build/platform-darwin.mk
+++ b/build/platform-darwin.mk
@@ -1,7 +1,7 @@
include build/platform-arch.mk
SHAREDLIBSUFFIX = dylib
SHARED = -dynamiclib
-CFLAGS += -Werror -fPIC -DMACOS -DMT_ENABLED -MMD -MP
+CFLAGS += -Wall -fPIC -DMACOS -DMT_ENABLED -MMD -MP
LDFLAGS += -lpthread
ifeq ($(ASM_ARCH), x86)
ASMFLAGS += --prefix _
--- a/build/platform-linux.mk
+++ b/build/platform-linux.mk
@@ -1,6 +1,6 @@
include build/platform-arch.mk
SHAREDLIBSUFFIX = so
-CFLAGS += -Werror -fPIC -DLINUX -DMT_ENABLED -MMD -MP
+CFLAGS += -Wall -fPIC -DLINUX -DMT_ENABLED -MMD -MP
LDFLAGS += -lpthread
ifeq ($(ASM_ARCH), x86)
ifeq ($(ENABLE64BIT), Yes)