summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-11-12 17:16:23 +0100
committerSimon Josefsson <simon@josefsson.org>2008-11-12 17:16:23 +0100
commit967a52616f95815dfc6022acb23d79b27e693848 (patch)
tree8474282aa2f003ae63cf4e28892d2589c064a457 /tests
parentbdde415430089cca0204e07650673a5f0ea2ee9c (diff)
downloadgnutls-967a52616f95815dfc6022acb23d79b27e693848.tar.gz
Use more warnings. Fix warnings.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am10
-rw-r--r--tests/cve-2008-4989.c6
2 files changed, 10 insertions, 6 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8889940df7..c7675cb164 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -29,10 +29,14 @@ endif
EXTRA_DIST = libgcrypt.supp hostname-check.README
AM_CPPFLAGS = \
- -I$(top_srcdir)/gl -I$(top_builddir)/gl \
- -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes \
- -I$(top_srcdir)/lib \
+ $(WARN_CFLAGS) \
+ -I$(top_srcdir)/gl \
+ -I$(top_builddir)/gl \
+ -I$(top_srcdir)/lib/includes \
+ -I$(top_builddir)/lib/includes \
+ -I$(top_srcdir)/lib \
-I$(top_srcdir)/doc/examples
+
AM_LDFLAGS = -no-install
LDADD = ../lib/libgnutls.la ../gl/libgnu.la libutils.la
diff --git a/tests/cve-2008-4989.c b/tests/cve-2008-4989.c
index 3bbe59e493..aebf835d73 100644
--- a/tests/cve-2008-4989.c
+++ b/tests/cve-2008-4989.c
@@ -167,7 +167,7 @@ main (int argc, char *argv[])
error (EXIT_FAILURE, 0, "gnutls_x509_crt_init[%d]: %s", i,
gnutls_strerror (ret));
- tmp.data = pem_certs[i];
+ tmp.data = (char*) pem_certs[i];
tmp.size = strlen (pem_certs[i]);
ret = gnutls_x509_crt_import (certs[i], &tmp, GNUTLS_X509_FMT_PEM);
@@ -180,7 +180,7 @@ main (int argc, char *argv[])
if (ret < 0)
error (EXIT_FAILURE, 0, "gnutls_x509_crt_init: %s", gnutls_strerror (ret));
- tmp.data = pem_ca;
+ tmp.data = (char*) pem_ca;
tmp.size = strlen (pem_ca);
ret = gnutls_x509_crt_import (ca, &tmp, GNUTLS_X509_FMT_PEM);
@@ -210,7 +210,7 @@ main (int argc, char *argv[])
if (ret < 0)
error (EXIT_FAILURE, 0, "gnutls_x509_crt_init: %s", gnutls_strerror (ret));
- tmp.data = pem_self_cert;
+ tmp.data = (char*) pem_self_cert;
tmp.size = strlen (pem_self_cert);
ret = gnutls_x509_crt_import (self_cert, &tmp, GNUTLS_X509_FMT_PEM);