git » libjio » commit 34dccd1

Sometimes compiling with -ansi -pedantic can catch nice errors and use of gcc extensions (GNU people like to disguise their extensions and one might end up using them without knowing); so we add a small ifdef to Make.conf to be able to compile with them.

author Alberto Bertogli
2004-05-05 01:38:25 UTC
committer Alberto Bertogli
2007-07-15 12:44:26 UTC
parent 234f105ed3154739ba6648be2e67df02535f3427

Sometimes compiling with -ansi -pedantic can catch nice errors and use of gcc extensions (GNU people like to disguise their extensions and one might end up using them without knowing); so we add a small ifdef to Make.conf to be able to compile with them.

Sometimes compiling with -ansi -pedantic can catch nice errors and use of gcc
extensions (GNU people like to disguise their extensions and one might end up
using them without knowing); so we add a small ifdef to Make.conf to be able
to compile with them.

Make.conf +4 -0

diff --git a/Make.conf b/Make.conf
index 4c389ad..1fc1c99 100644
--- a/Make.conf
+++ b/Make.conf
@@ -11,6 +11,10 @@ ifdef DEBUG
 CFLAGS += -g -pg -fprofile-arcs -ftest-coverage
 endif
 
+ifdef STRICT
+CFLAGS += -ansi -pedantic
+endif
+
 # prefix for installing the binaries
 PREFIX=/usr/local