From a9ba9a5f9286c5961b704d20b745be39afb8251b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Oct 2023 11:01:46 +0200 Subject: [PATCH] io/Reader: add [[nodiscard]] --- src/io/Reader.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/Reader.hxx b/src/io/Reader.hxx index 01ea7c375..2602ce25f 100644 --- a/src/io/Reader.hxx +++ b/src/io/Reader.hxx @@ -26,6 +26,7 @@ public: * @return the number of bytes read into the given buffer or 0 * on end-of-stream */ + [[nodiscard]] virtual std::size_t Read(std::span dest) = 0; /**