summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorTatjana Azundris Nuernberg <tatjana.nuernberg@oracle.com>2011-05-27 11:02:10 +0100
committerTatjana Azundris Nuernberg <tatjana.nuernberg@oracle.com>2011-05-27 11:02:10 +0100
commit20791d83dec2736bdc6ff7dfc2f3365595c1fd00 (patch)
tree84df4de21ff655ddc2e6500aa6618a32334f286f /vio
parent8ae716e9a2a7942bbe55d1f3d351f1f6426e8e4b (diff)
downloadmariadb-git-20791d83dec2736bdc6ff7dfc2f3365595c1fd00.tar.gz
build fixes for -Werror (11745920)
Diffstat (limited to 'vio')
-rw-r--r--vio/viossl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index 290abf788c2..49d442f32aa 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -24,6 +24,8 @@
#ifdef HAVE_OPENSSL
+#ifndef DBUG_OFF
+
static void
report_errors(SSL* ssl)
{
@@ -31,9 +33,7 @@ report_errors(SSL* ssl)
const char *file;
const char *data;
int line, flags;
-#ifndef DBUG_OFF
char buf[512];
-#endif
DBUG_ENTER("report_errors");
@@ -51,6 +51,8 @@ report_errors(SSL* ssl)
DBUG_VOID_RETURN;
}
+#endif
+
size_t vio_ssl_read(Vio *vio, uchar* buf, size_t size)
{