aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/data_src.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/data_src.h')
-rw-r--r--src/lib/utils/data_src.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/data_src.h b/src/lib/utils/data_src.h
index 09c1bffdf..5451092a4 100644
--- a/src/lib/utils/data_src.h
+++ b/src/lib/utils/data_src.h
@@ -30,7 +30,7 @@ class BOTAN_PUBLIC_API(2,0) DataSource
* @return length in bytes that was actually read and put
* into out
*/
- virtual size_t read(uint8_t out[], size_t length) BOTAN_WARN_UNUSED_RESULT = 0;
+ [[nodiscard]] virtual size_t read(uint8_t out[], size_t length) = 0;
virtual bool check_available(size_t n) = 0;
@@ -45,7 +45,7 @@ class BOTAN_PUBLIC_API(2,0) DataSource
* @return length in bytes that was actually read and put
* into out
*/
- virtual size_t peek(uint8_t out[], size_t length, size_t peek_offset) const BOTAN_WARN_UNUSED_RESULT = 0;
+ [[nodiscard]] virtual size_t peek(uint8_t out[], size_t length, size_t peek_offset) const = 0;
/**
* Test whether the source still has data that can be read.