diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-01-26 16:27:02 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-01-26 16:27:02 +0000 |
commit | d0021d07f986c820a901c32794e52bac9243e9a5 (patch) | |
tree | f645377684f668967843ea312ddb559a18f9eaa7 /fastlib | |
parent | a7093177040bd5e9296572d39a15d1c06edd7fb2 (diff) |
Add [[nodiscard]] to Close() and Sync()
Diffstat (limited to 'fastlib')
-rw-r--r-- | fastlib/src/vespa/fastlib/io/bufferedfile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fastlib/src/vespa/fastlib/io/bufferedfile.h b/fastlib/src/vespa/fastlib/io/bufferedfile.h index 014223c9b93..cdeb817b0de 100644 --- a/fastlib/src/vespa/fastlib/io/bufferedfile.h +++ b/fastlib/src/vespa/fastlib/io/bufferedfile.h @@ -186,7 +186,7 @@ public: /** * Force completion of pending disk writes (flush cache). */ - bool Sync() override; + [[nodiscard]] bool Sync() override; /** * Get the time the file was last modified. * @@ -208,7 +208,7 @@ public: * Flush the buffer, and close the file instance. * @return The result of the Close operation. */ - bool Close () override; + [[nodiscard]] bool Close () override; /** * Get the buffered file position, in bytes. * This takes into account the data in the buffer, that has |