1
1

Separate var declaration from use to remove compiler warnings in non-debug builds

This commit was SVN r19675.
Этот коммит содержится в:
Ralph Castain 2008-10-03 13:40:31 +00:00
родитель 15c47a2473
Коммит 0cc2e724f8

Просмотреть файл

@ -862,8 +862,9 @@ mca_oob_tcp_accept_thread_handler(int sd, short flags, void* user)
happen, so no need for yet another #if */
if (OPAL_EV_READ == flags) {
char buf[1];
ssize_t ret = read(sd, buf, 1);
ssize_t ret;
ret = read(sd, buf, 1); /* do this as separate step so non-debug compiles don't bark */
assert (ret == 1);
}