aboutsummaryrefslogtreecommitdiffstats
path: root/fastlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-01-26 16:27:02 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-01-26 16:27:02 +0000
commitd0021d07f986c820a901c32794e52bac9243e9a5 (patch)
treef645377684f668967843ea312ddb559a18f9eaa7 /fastlib
parenta7093177040bd5e9296572d39a15d1c06edd7fb2 (diff)
Add [[nodiscard]] to Close() and Sync()
Diffstat (limited to 'fastlib')
-rw-r--r--fastlib/src/vespa/fastlib/io/bufferedfile.h4
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