From 9e55b2d9952c8f8ade8478cfbb2384762ba6fea4 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 28 May 2017 10:21:50 +0200 Subject: [PATCH] Enable -Werror only for Haiku for now. It is a bit early to have it enabled for all Linux variants out there. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 34db452f..211bba14 100644 --- a/src/Makefile +++ b/src/Makefile @@ -220,7 +220,7 @@ endif LUACOPT = -D__ENABLE_LUA__ $(shell pkg-config $(LUAPKG) --cflags) LUALOPT = $(shell pkg-config $(LUAPKG) --libs) endif - COPT = -W -Wall -c -g $(shell sdl-config --cflags) $(TTFCOPT) -I/boot/common/include $(LUACOPT) + COPT = -W -Wall -Werror -c -g $(shell sdl-config --cflags) $(TTFCOPT) -I/boot/common/include $(LUACOPT) COPT += -DENABLE_FILENAMES_ICONV LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lfreetype -lbe $(LUALOPT) -liconv CC = gcc @@ -384,7 +384,7 @@ endif # Compiles a regular linux executable for the native platform BIN = ../bin/grafx2 - COPT = -W -Wall -Wdeclaration-after-statement -Werror -std=c99 -c -g $(shell sdl-config --cflags) $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM) + COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g $(shell sdl-config --cflags) $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM) COPT += $(shell pkg-config --cflags libpng) ifneq ($(PLATFORM), FreeBSD)