From d09456fc41acf626ebc9687e50124d18c75ef804 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 16 Aug 2020 06:17:30 -0400 Subject: common: Silence two discarded result warnings These are intentionally discarded internally, since the rest of the public API allows querying success. We want all non-internal uses of these functions to be explicitly checked, so we can signify that we intentionally want to discard the return values here. --- src/common/file_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/file_util.cpp') diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 4ede9f72c..cf92e2e76 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -902,10 +902,10 @@ std::string SanitizePath(std::string_view path_, DirectorySeparator directory_se return std::string(RemoveTrailingSlash(path)); } -IOFile::IOFile() {} +IOFile::IOFile() = default; IOFile::IOFile(const std::string& filename, const char openmode[], int flags) { - Open(filename, openmode, flags); + void(Open(filename, openmode, flags)); } IOFile::~IOFile() { -- cgit v1.2.3