summaryrefslogtreecommitdiff
path: root/aclocal
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2011-08-04 22:37:16 +0000
committerRoger Meier <roger@apache.org>2011-08-04 22:37:16 +0000
commit013b2e55385119533dac324358157b6cd80f1838 (patch)
tree7fbc2c74c1376a5765a22c618549607a32361b03 /aclocal
parent3075ffc5631dd173f5f258312bf9943d06e82d0f (diff)
downloadthrift-013b2e55385119533dac324358157b6cd80f1838.tar.gz
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
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/ax_lib_event.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/aclocal/ax_lib_event.m4 b/aclocal/ax_lib_event.m4
index 56aefcc85..91de82895 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';