diff --git a/src/jrd/os/posix/unix.cpp b/src/jrd/os/posix/unix.cpp index c500cad108..e36d218f8b 100644 --- a/src/jrd/os/posix/unix.cpp +++ b/src/jrd/os/posix/unix.cpp @@ -1181,7 +1181,9 @@ static int raw_devices_unlink_database(const PathName& file_name) memset(header, 0xa5, sizeof(header)); - for (int i = 0; i < IO_RETRY; i++) + int i; + + for (i = 0; i < IO_RETRY; i++) { const ssize_t bytes = write (desc, header, sizeof(header)); if (bytes == sizeof(header))