diff options
| author | 2020-08-16 06:17:30 -0400 | |
|---|---|---|
| committer | 2020-08-16 06:17:33 -0400 | |
| commit | d09456fc41acf626ebc9687e50124d18c75ef804 (patch) | |
| tree | 13978123fbe34c7433399e2027bda5e7f1edd823 /src | |
| parent | Merge pull request #4528 from lioncash/discard (diff) | |
| download | yuzu-d09456fc41acf626ebc9687e50124d18c75ef804.tar.gz yuzu-d09456fc41acf626ebc9687e50124d18c75ef804.tar.xz yuzu-d09456fc41acf626ebc9687e50124d18c75ef804.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/dynamic_library.cpp | 2 | ||||
| -rw-r--r-- | src/common/file_util.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/dynamic_library.cpp b/src/common/dynamic_library.cpp index 7ab54e9e4..7f0a10521 100644 --- a/src/common/dynamic_library.cpp +++ b/src/common/dynamic_library.cpp | |||
| @@ -21,7 +21,7 @@ namespace Common { | |||
| 21 | DynamicLibrary::DynamicLibrary() = default; | 21 | DynamicLibrary::DynamicLibrary() = default; |
| 22 | 22 | ||
| 23 | DynamicLibrary::DynamicLibrary(const char* filename) { | 23 | DynamicLibrary::DynamicLibrary(const char* filename) { |
| 24 | Open(filename); | 24 | void(Open(filename)); |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | DynamicLibrary::DynamicLibrary(DynamicLibrary&& rhs) noexcept | 27 | DynamicLibrary::DynamicLibrary(DynamicLibrary&& rhs) noexcept |
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 | |||
| 902 | return std::string(RemoveTrailingSlash(path)); | 902 | return std::string(RemoveTrailingSlash(path)); |
| 903 | } | 903 | } |
| 904 | 904 | ||
| 905 | IOFile::IOFile() {} | 905 | IOFile::IOFile() = default; |
| 906 | 906 | ||
| 907 | IOFile::IOFile(const std::string& filename, const char openmode[], int flags) { | 907 | IOFile::IOFile(const std::string& filename, const char openmode[], int flags) { |
| 908 | Open(filename, openmode, flags); | 908 | void(Open(filename, openmode, flags)); |
| 909 | } | 909 | } |
| 910 | 910 | ||
| 911 | IOFile::~IOFile() { | 911 | IOFile::~IOFile() { |