mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 02:29:08 +00:00
Fix a warning
This commit is contained in:
parent
589f5f37b6
commit
2196025dd1
@ -223,9 +223,9 @@ buffered_file file::fdopen(const char *mode) {
|
||||
if (!f)
|
||||
FMT_THROW(system_error(errno,
|
||||
"cannot associate stream with file descriptor"));
|
||||
buffered_file file(f);
|
||||
buffered_file bf(f);
|
||||
fd_ = -1;
|
||||
return file;
|
||||
return bf;
|
||||
}
|
||||
|
||||
long getpagesize() {
|
||||
|
Loading…
Reference in New Issue
Block a user