From 11ded6e6c72538aa90bd7d6edc53b42e9c5acb79 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 14 Mar 2004 01:43:27 +0000 Subject: [PATCH] Fix compiler warning on Win32. --- tests/write_read_test.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/write_read_test.tpl b/tests/write_read_test.tpl index bbbf0543..b26319aa 100644 --- a/tests/write_read_test.tpl +++ b/tests/write_read_test.tpl @@ -720,6 +720,8 @@ static int truncate (const char *filename, int ignored) { int fd ; + ignored = 0 ; + if ((fd = open (filename, O_RDWR | O_TRUNC | O_BINARY)) < 0) return 0 ;