mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
AK: Add nodiscard
attribute to BitCast functions
This commit is contained in:
parent
84d9e537cd
commit
97d966d25c
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
||||||
namespace AK {
|
namespace AK {
|
||||||
|
|
||||||
template<typename T, typename U>
|
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))
|
#if (__has_builtin(__builtin_bit_cast))
|
||||||
return __builtin_bit_cast(T, a);
|
return __builtin_bit_cast(T, a);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue