diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-06-26 10:20:52 -0600 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-07-04 05:53:56 +0000 |
commit | 97d966d25c28732841c6afa94960158fb2589e4b (patch) | |
tree | 7a5dbdbafc5052f353085736eed2a1b74d9ace7b | |
parent | 84d9e537cdb7f00361071c36e4203ea5f0164f7a (diff) | |
download | serenity-97d966d25c28732841c6afa94960158fb2589e4b.zip |
AK: Add `nodiscard` attribute to BitCast functions
-rw-r--r-- | AK/BitCast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/BitCast.h b/AK/BitCast.h index bb3c28f414..57b7d226ad 100644 --- a/AK/BitCast.h +++ b/AK/BitCast.h @@ -9,7 +9,7 @@ namespace AK { template<typename T, typename U> -inline T bit_cast(const U& a) +[[nodiscard]] inline T bit_cast(const U& a) { #if (__has_builtin(__builtin_bit_cast)) return __builtin_bit_cast(T, a); |