git » nmdb » commit f31fe49

Remove the 'STRICT' build option and add -pedantic as default.

author Alberto Bertogli
2007-08-08 21:37:05 UTC
committer Alberto Bertogli
2007-08-08 21:37:05 UTC
parent b22586bbd11f12e99870f2f046cc5a40f56a00c7

Remove the 'STRICT' build option and add -pedantic as default.

The -ansi was wrong, because it set the standard to C90, overriding the
earlier -std=c99 option.

After we remove it, it makes no sense leaving -pedantic as an option; it
should be in the default CFLAGS, as we should be sticking to C99 and not
rely on any GNU extensions.

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

libnmdb/Makefile +1 -4
nmdb/Makefile +1 -4

diff --git a/libnmdb/Makefile b/libnmdb/Makefile
index 84d2fe2..45370a3 100644
--- a/libnmdb/Makefile
+++ b/libnmdb/Makefile
@@ -3,7 +3,7 @@ ENABLE_TIPC = 1
 ENABLE_TCP = 1
 ENABLE_UDP = 1
 
-CFLAGS += -std=c99 -Wall -O3
+CFLAGS += -std=c99 -pedantic -Wall -O3
 ALL_CFLAGS = -D_XOPEN_SOURCE=500 -fPIC $(CFLAGS)
 ALL_CFLAGS += -DENABLE_TIPC=$(ENABLE_TIPC) \
 		-DENABLE_TCP=$(ENABLE_TCP) \
@@ -17,9 +17,6 @@ ifdef PROFILE
 ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
 endif
 
-ifdef STRICT
-ALL_CFLAGS += -ansi -pedantic
-endif
 
 # prefix for installing the binaries
 PREFIX=/usr/local
diff --git a/nmdb/Makefile b/nmdb/Makefile
index 25867ee..97fe2de 100644
--- a/nmdb/Makefile
+++ b/nmdb/Makefile
@@ -7,7 +7,7 @@ ENABLE_UDP = 1
 # Backend to use, can be qdbm, bdb, or null
 BACKEND = qdbm
 
-CFLAGS += -std=c99 -Wall -O3
+CFLAGS += -std=c99 -pedantic -Wall -O3
 ALL_CFLAGS = -D_XOPEN_SOURCE=500 $(CFLAGS)
 ALL_CFLAGS += -DENABLE_TIPC=$(ENABLE_TIPC) \
 		-DENABLE_TCP=$(ENABLE_TCP) \
@@ -21,9 +21,6 @@ ifdef PROFILE
 ALL_CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
 endif
 
-ifdef STRICT
-ALL_CFLAGS += -ansi -pedantic
-endif
 
 # prefix for installing the binaries
 PREFIX=/usr/local