From a26e98f170d2eb536c8e59278cc290da012e4a43 Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Thu, 10 Nov 2022 12:52:56 -0700 Subject: [PATCH] Fix compiler warning from applied patch --- src/File.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/File.cc b/src/File.cc index e9767deb29..44c78ccd91 100644 --- a/src/File.cc +++ b/src/File.cc @@ -204,14 +204,16 @@ void File::SetBuf(bool arg_buffered) #ifndef _MSC_VER if ( setvbuf(f, NULL, arg_buffered ? _IOFBF : _IOLBF, 0) != 0 ) + reporter->Error("setvbuf failed"); #else // TODO: this turns off buffering altogether because Windows wants us to pass a valid // buffer and length if we're going to pass one of the other modes. We need to // investigate the performance ramifications of this. if ( setvbuf(f, NULL, _IONBF, 0) != 0 ) -#endif reporter->Error("setvbuf failed"); + reporter->Error("setvbuf failed"); +#endif - buffered = arg_buffered; + buffered = arg_buffered; } bool File::Close()