[pkg-opensc-commit] [pkcs11-helper] 04/44: Add --enable-strict

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:40:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to tag pkcs11-helper-1.06
in repository pkcs11-helper.

commit 7ecf23ab3f048f0d5285763dde04bae9a1f8fd66
Author: alonbl <alonbl at 485eb718-1723-0410-b8a9-88cf21a28c35>
Date:   Fri Nov 9 18:52:52 2007 +0000

    Add --enable-strict
---
 configure.ac | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index e5be603..126d222 100644
--- a/configure.ac
+++ b/configure.ac
@@ -165,8 +165,15 @@ AC_ARG_ENABLE(
 )
 
 AC_ARG_ENABLE(
+	[strict],
+	[AC_HELP_STRING([--enable-strict], [Enable strict compiler warnings])],
+	,
+	[enable_strict="no"]
+)
+
+AC_ARG_ENABLE(
 	[pedantic],
-	[AC_HELP_STRING([--enable-pedantic], [Enable pedantic compiler warnings, will not generate a working executable (debugging option)])],
+	[AC_HELP_STRING([--enable-pedantic], [Enable pedantic compiler warnings])],
 	,
 	[enable_pedantic="no"]
 )
@@ -358,16 +365,17 @@ if test "${WIN32}" != "yes"; then
 	])
 fi
 
-if echo "${CC}" | grep gcc 2>&1 > /dev/null; then
-	CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function"
+if test "${enable_pedantic}" = "yes"; then
+	enable_strict="yes"
+	CFLAGS="${CFLAGS} -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE"
+fi
 
-	if test "${WIN32}" = "yes"; then
-		LIBS="${LIBS} -lkernel32 -lgdi32"
-	fi
+if test "${enable_strict}" = "yes"; then
+	CFLAGS="${CFLAGS} -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function"
 fi
 
-if test "$enable_pedantic" = "yes"; then
-	CFLAGS="${CFLAGS} -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE"
+if test "${WIN32}" = "yes"; then
+	LIBS="${LIBS} -lkernel32 -lgdi32"
 fi
 
 if test "${enable_threading}" != "yes" -a "${enable_slotevent}" = "yes"; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git



More information about the pkg-opensc-commit mailing list