You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2011/08/05 00:37:17 UTC

svn commit: r1154040 - /thrift/trunk/aclocal/ax_lib_event.m4

Author: roger
Date: Thu Aug  4 22:37:16 2011
New Revision: 1154040

URL: http://svn.apache.org/viewvc?rev=1154040&view=rev
Log:
THRIFT-916 do not mix declarations and code
issue detected with -Werror

Modified:
    thrift/trunk/aclocal/ax_lib_event.m4

Modified: thrift/trunk/aclocal/ax_lib_event.m4
URL: http://svn.apache.org/viewvc/thrift/trunk/aclocal/ax_lib_event.m4?rev=1154040&r1=1154039&r2=1154040&view=diff
==============================================================================
--- thrift/trunk/aclocal/ax_lib_event.m4 (original)
+++ thrift/trunk/aclocal/ax_lib_event.m4 Thu Aug  4 22:37:16 2011
@@ -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';