From b7f214e2984fec7842f7eaffb11ca64860a0bece Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sat, 2 Apr 2022 23:02:59 +0200 Subject: [PATCH] yet another unscoped variable --- test/uvw/file_req_sendfile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/uvw/file_req_sendfile.cpp b/test/uvw/file_req_sendfile.cpp index 7ef4174d..301325fc 100644 --- a/test/uvw/file_req_sendfile.cpp +++ b/test/uvw/file_req_sendfile.cpp @@ -40,8 +40,7 @@ TEST(FileReq, SendFile) { req.close(); break; case uvw::fs_req::fs_type::OPEN: - auto flags = uvw::file_req::file_open_flags::CREAT | uvw::file_req::file_open_flags::WRONLY | uvw::file_req::file_open_flags::TRUNC; - dstReq->open(dstFilename, flags, 0644); + dstReq->open(dstFilename, uvw::file_req::file_open_flags::CREAT | uvw::file_req::file_open_flags::WRONLY | uvw::file_req::file_open_flags::TRUNC, 0644); break; default: // nothing to do here