Separate var declaration from use to remove compiler warnings in non-debug builds
This commit was SVN r19675.
Этот коммит содержится в:
родитель
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);
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user