Skip to content

Commit

Permalink
build: fix pendantic with recent tools
Browse files Browse the repository at this point in the history
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
  • Loading branch information
alonbl committed Dec 2, 2016
1 parent d8fe164 commit 28b24bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion command.c
Expand Up @@ -550,7 +550,6 @@ gpg_error_t cmd_serialno (assuan_context_t ctx, char *line)
*/
{
char *serial_and_stamp = NULL;
char *p;

if (serial_and_stamp == NULL && strcmp (line, "openpgp") == 0) {
serial_and_stamp = strdup (OPENPGP_SERIAL);
Expand Down
14 changes: 7 additions & 7 deletions configure.ac
Expand Up @@ -39,7 +39,7 @@ AC_INIT([gnupg-pkcs11-scd], [PACKAGE_VERSION_MAJOR.PACKAGE_VERSION_MINOR.PACKAGE
AC_CONFIG_AUX_DIR([.])
AM_CONFIG_HEADER([config.h])
AC_CONFIG_SRCDIR([common.h])
AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}])
AM_INIT_AUTOMAKE

GNUPG_PKCS11_SCD_VERSION_MAJOR="PACKAGE_VERSION_MAJOR"
GNUPG_PKCS11_SCD_VERSION_MINOR="PACKAGE_VERSION_MINOR"
Expand Down Expand Up @@ -151,20 +151,20 @@ AC_ARG_WITH(
[with_libgcrypt_prefix="/usr" ]
)

if test "${HAVE_W32_SYSTEM}" = "yes"; then
AC_CHECK_PROGS([MAN2HTML], [man2html])
test -z "${MAN2HTML}" && AC_MSG_ERROR([man2html is required for win32])
fi

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"
CFLAGS="${CFLAGS} -ansi -pedantic -D__STRICT_ANSI__ -D_ISOC99_SOURCE -D_DEFAULT_SOURCE"
fi

if test "${enable_strict}" = "yes"; then
CFLAGS="${CFLAGS} -Wall -Wextra -Wpointer-arith -Wsign-compare -Wno-unused-parameter -Wno-unused-function"
fi

if test "${HAVE_W32_SYSTEM}" = "yes"; then
AC_CHECK_PROGS([MAN2HTML], [man2html])
test -z "${MAN2HTML}" && AC_MSG_ERROR([man2html is required for win32])
fi

AC_FUNC_MKTIME
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
Expand Down

0 comments on commit 28b24bb

Please sign in to comment.