summaryrefslogtreecommitdiff
path: root/AK/Optional.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-05 03:17:44 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-05 12:27:15 +0200
commita7a7e6245f74087641fa3f31436a14ab250bcea3 (patch)
treeecef20179014334310fb9f249fa808bf99e870bc /AK/Optional.h
parent9572c951524ac900d3082f762a4e197ea222703b (diff)
downloadserenity-a7a7e6245f74087641fa3f31436a14ab250bcea3.zip
AK: Decorate Optional<T> with [[nodisard]]
Diffstat (limited to 'AK/Optional.h')
-rw-r--r--AK/Optional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Optional.h b/AK/Optional.h
index db9ee7b014..ccc0986d20 100644
--- a/AK/Optional.h
+++ b/AK/Optional.h
@@ -34,7 +34,7 @@
namespace AK {
template<typename T>
-class alignas(T) Optional {
+class alignas(T) [[nodiscard]] Optional {
public:
Optional() {}