aboutsummaryrefslogtreecommitdiffstats
path: root/fastlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-01-26 19:20:01 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-01-26 19:20:01 +0000
commit3a0ab5a2d6ac2b7d94a2726862e4cd722c7c34a1 (patch)
tree49005016f300ec4fd294c296c92d1095a5cb6659 /fastlib
parent70583db573e8e0033694e8c3d403d256f9e8cfed (diff)
Add [[nodiscard]] to Read() too
Diffstat (limited to 'fastlib')
-rw-r--r--fastlib/src/vespa/fastlib/io/bufferedfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastlib/src/vespa/fastlib/io/bufferedfile.h b/fastlib/src/vespa/fastlib/io/bufferedfile.h
index ab01919d91a..78c19ef8169 100644
--- a/fastlib/src/vespa/fastlib/io/bufferedfile.h
+++ b/fastlib/src/vespa/fastlib/io/bufferedfile.h
@@ -123,7 +123,7 @@ public:
* @param dstlen The length of the destination buffer.
* @return The number of bytes read.
*/
- ssize_t Read(void *dst, size_t dstlen) override;
+ [[nodiscard]] ssize_t Read(void *dst, size_t dstlen) override;
/**
* Write one byte to the buffered file, flushing to
* file if necessary.