Skip to content

Commit

Permalink
Fix configure with -Werror=unused-variable
Browse files Browse the repository at this point in the history
Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information
psychon committed Sep 23, 2012
1 parent 9b2898f commit afb4830
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ if test "x$TDNS" != "xno"; then
#include <netdb.h>
]], [[
int x = AI_ADDRCONFIG;
(void) x;
]])
], [
AC_MSG_RESULT([yes])
Expand Down Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion m4/ax_pthread.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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])
])
Expand Down

0 comments on commit afb4830

Please sign in to comment.