mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix compiler warning from applied patch
This commit is contained in:
parent
5d5f5de1d1
commit
a26e98f170
1 changed files with 4 additions and 2 deletions
|
@ -204,14 +204,16 @@ void File::SetBuf(bool arg_buffered)
|
||||||
|
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
if ( setvbuf(f, NULL, arg_buffered ? _IOFBF : _IOLBF, 0) != 0 )
|
if ( setvbuf(f, NULL, arg_buffered ? _IOFBF : _IOLBF, 0) != 0 )
|
||||||
|
reporter->Error("setvbuf failed");
|
||||||
#else
|
#else
|
||||||
// TODO: this turns off buffering altogether because Windows wants us to pass a valid
|
// 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
|
// buffer and length if we're going to pass one of the other modes. We need to
|
||||||
// investigate the performance ramifications of this.
|
// investigate the performance ramifications of this.
|
||||||
if ( setvbuf(f, NULL, _IONBF, 0) != 0 )
|
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()
|
bool File::Close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue