]> granicus.if.org Git - libmatroska/commitdiff
Stop using -ansi -fno-gnu-keywords in Linux
authorCristian Morales Vega <reddwarf@opensuse.org>
Sun, 14 Apr 2013 15:23:32 +0000 (16:23 +0100)
committerCristian Morales Vega <reddwarf@opensuse.org>
Sun, 14 Apr 2013 15:23:32 +0000 (16:23 +0100)
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

index 5a4ddd02c5c1706928e0394ed42c2f31f6181292..501e72fabeb56f84611cec26fc47b193969c33d3 100644 (file)
@@ -67,8 +67,7 @@ objects:=$(patsubst %$(EXTENSION),%.o,$(sources))
 \r
 objects_so:=$(patsubst %$(EXTENSION),%.lo,$(sources))\r
 \r
-WARNINGFLAGS=-Wall -Wextra -Wno-unknown-pragmas -ansi -fno-gnu-keywords -D_GNU_SOURCE \\r
-               -Wshadow\r
+WARNINGFLAGS=-Wall -Wextra -Wno-unknown-pragmas -D_GNU_SOURCE -Wshadow\r
 COMPILEFLAGS=$(DEBUGFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(WARNINGFLAGS) $(INCLUDE)\r
 LINKFLAGS=-L. -L$(LIBEBML_LIB_DIR) $(LDFLAGS)\r
 DEPENDFLAGS  = $(CXXFLAGS) $(INCLUDE)\r