Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix configure with -Werror=unused-variable

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information...
commit afb48300573cf465af31715460c78987ace9b9cf 1 parent 9b2898f
@psychon psychon authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 configure.ac
  2. +1 −1  m4/ax_pthread.m4
View
4 configure.ac
@@ -224,6 +224,7 @@ if test "x$TDNS" != "xno"; then
#include <netdb.h>
]], [[
int x = AI_ADDRCONFIG;
+ (void) x;
]])
], [
AC_MSG_RESULT([yes])
@@ -280,6 +281,9 @@ if test "x$SSL" != "xno"; then
SSL_CTX* ctx = SSL_CTX_new(TLSv1_method());
SSL* ssl = SSL_new(ctx);
DH* dh = DH_new();
+ DH_free(dh);
+ SSL_free(ssl);
+ SSL_CTX_free(ctx);
]])
], [
AC_MSG_RESULT([yes])
View
2  m4/ax_pthread.m4
@@ -274,7 +274,7 @@ if test "x$ax_pthread_ok" = xyes; then
AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
ax_cv_PTHREAD_PRIO_INHERIT, [
AC_LINK_IFELSE([
- AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]])],
+ AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT; (void) i;]])],
[ax_cv_PTHREAD_PRIO_INHERIT=yes],
[ax_cv_PTHREAD_PRIO_INHERIT=no])
])
Please sign in to comment.
Something went wrong with that request. Please try again.