diff options
| author | 2021-06-19 03:48:02 -0400 | |
|---|---|---|
| committer | 2021-06-22 13:36:24 -0400 | |
| commit | cf0b9d1de2dd895de3ebc08b6399d8239f7096f7 (patch) | |
| tree | c8597913a9c802da756afb23607df4fe91a78b8b /src/common/logging/backend.cpp | |
| parent | common: fs: Remove [[nodiscard]] attribute on Remove* functions (diff) | |
| download | yuzu-cf0b9d1de2dd895de3ebc08b6399d8239f7096f7.tar.gz yuzu-cf0b9d1de2dd895de3ebc08b6399d8239f7096f7.tar.xz yuzu-cf0b9d1de2dd895de3ebc08b6399d8239f7096f7.zip | |
common: fs: file: Remove [[nodiscard]] attribute from Flush
Similarly, Flush() is typically called to attempt to flush a file into the disk. In the one case where this is used, we do not care whether the flush has succeeded or not, making [[nodiscard]] unnecessary.
Diffstat (limited to 'src/common/logging/backend.cpp')
| -rw-r--r-- | src/common/logging/backend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 47dba48ca..47ce06478 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -186,7 +186,7 @@ void FileBackend::Write(const Entry& entry) { | |||
| 186 | 186 | ||
| 187 | bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n')); | 187 | bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n')); |
| 188 | if (entry.log_level >= Level::Error) { | 188 | if (entry.log_level >= Level::Error) { |
| 189 | void(file->Flush()); | 189 | file->Flush(); |
| 190 | } | 190 | } |
| 191 | } | 191 | } |
| 192 | 192 | ||