From 2196025dd1afd2cafc7d823c6063a597d427de6b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 20 May 2018 17:09:12 -0700 Subject: [PATCH] Fix a warning --- src/posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix.cc b/src/posix.cc index d672b0fc..88f52edf 100644 --- a/src/posix.cc +++ b/src/posix.cc @@ -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() {