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
diff --git a/aclocal/ax_lib_event.m4 b/aclocal/ax_lib_event.m4
index 56aefcc..91de828 100644
--- a/aclocal/ax_lib_event.m4
+++ b/aclocal/ax_lib_event.m4
@@ -81,6 +81,8 @@
           ]], [[
           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 @@
             }
             /* 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';