VERY experimental Nintendo Switch 2 emulator
C++
common: fs: file: Remove [[nodiscard]] attribute from Flush
Morphe12844c5a3ed
diff --git a/src/common/fs/file.h b/src/common/fs/file.hindex 0f10b60030..087b2993a0 100644--- a/src/common/fs/file.h+++ b/src/common/fs/file.h@@ -394,11 +394,11 @@ public:[[nodiscard]] size_t WriteString(std::span<const char> string) const;/**- * Flushes any unwritten buffered data into the file.+ * Attempts to flush any unwritten buffered data into the file and flush the file into the disk.** @returns True if the flush was successful, false otherwise.*/- [[nodiscard]] bool Flush() const;+ bool Flush() const;/*** Resizes the file to a given size.diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cppindex 47dba48ca0..47ce064784 100644--- a/src/common/logging/backend.cpp+++ b/src/common/logging/backend.cpp@@ -186,7 +186,7 @@ void FileBackend::Write(const Entry& entry) {bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n'));if (entry.log_level >= Level::Error) {- void(file->Flush());+ file->Flush();}}