git » libjio » commit 34f635e

Default to build using C99 and -pedantic

author Alberto Bertogli
2008-07-25 22:53:51 UTC
committer Alberto Bertogli
2008-07-25 22:53:51 UTC
parent 4138295f2cd884439d7cc252adb5012eb35d852f

Default to build using C99 and -pedantic

We use long long, so it makes sense to use the C99 flag. And we always
want the compiler to be strict about it, so use -pedantic by default.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

Makefile +1 -4

diff --git a/Makefile b/Makefile
index e1b4de1..93d47c8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 VERSION="0.23"
 
 CC = gcc
-CFLAGS += -Wall -O3 -fPIC \
+CFLAGS += -std=c99 -pedantic -Wall -O3 -fPIC \
 	-D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
 	-D_LFS_LARGEFILE=1 -D_LFS64_LARGEFILE=1 \
 	-D_FILE_OFFSET_BITS=64 `getconf LFS_CFLAGS 2>/dev/null` \
@@ -12,9 +12,6 @@ ifdef DEBUG
 CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
 endif
 
-ifdef STRICT
-CFLAGS += -ansi -pedantic
-endif
 
 # prefix for installing the binaries
 PREFIX=/usr/local