From 1a15920ee4ee5652cc1c2f86c99c9f3b26313f00 Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Sun, 14 Apr 2013 16:23:32 +0100 Subject: [PATCH] Stop using -ansi -fno-gnu-keywords in Linux There is no need for -fno-gnu-keywords (which was implied by -ansi) in the current code. -ansi disables GCC built-in functions, which add optimizations and extra security checks in some cases. It may be good to use it (and -pedantic) while developing to try to keep the code ANSI standard, but users should have binaries compiled without the option. --- make/linux/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/make/linux/Makefile b/make/linux/Makefile index 5a4ddd0..501e72f 100644 --- a/make/linux/Makefile +++ b/make/linux/Makefile @@ -67,8 +67,7 @@ objects:=$(patsubst %$(EXTENSION),%.o,$(sources)) objects_so:=$(patsubst %$(EXTENSION),%.lo,$(sources)) -WARNINGFLAGS=-Wall -Wextra -Wno-unknown-pragmas -ansi -fno-gnu-keywords -D_GNU_SOURCE \ - -Wshadow +WARNINGFLAGS=-Wall -Wextra -Wno-unknown-pragmas -D_GNU_SOURCE -Wshadow COMPILEFLAGS=$(DEBUGFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(WARNINGFLAGS) $(INCLUDE) LINKFLAGS=-L. -L$(LIBEBML_LIB_DIR) $(LDFLAGS) DEPENDFLAGS = $(CXXFLAGS) $(INCLUDE) -- 2.50.1