From 013b2e55385119533dac324358157b6cd80f1838 Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Thu, 4 Aug 2011 22:37:16 +0000 Subject: [PATCH] THRIFT-916 do not mix declarations and code issue detected with -Werror git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1154040 13f79535-47bb-0310-9956-ffa450edef68 --- aclocal/ax_lib_event.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aclocal/ax_lib_event.m4 b/aclocal/ax_lib_event.m4 index 56aefcc8..91de8289 100644 --- a/aclocal/ax_lib_event.m4 +++ b/aclocal/ax_lib_event.m4 @@ -81,6 +81,8 @@ AC_DEFUN([AX_LIB_EVENT_DO_CHECK], ]], [[ const char* lib_version = event_get_version(); const char* wnt_version = "$WANT_LIBEVENT_VERSION"; + int lib_digits; + int wnt_digits; for (;;) { /* If we reached the end of the want version. We have it. */ if (*wnt_version == '\0' || *wnt_version == '-') { @@ -93,13 +95,11 @@ AC_DEFUN([AX_LIB_EVENT_DO_CHECK], } /* In the 1.4 version numbering style, if there are more digits */ /* in one version than the other, that one is higher. */ - int lib_digits; for (lib_digits = 0; lib_version[lib_digits] >= '0' && lib_version[lib_digits] <= '9'; lib_digits++) ; - int wnt_digits; for (wnt_digits = 0; wnt_version[wnt_digits] >= '0' && wnt_version[wnt_digits] <= '9'; -- 2.17.1