diff options
| author | 2021-07-26 04:11:13 -0400 | |
|---|---|---|
| committer | 2021-07-26 04:23:59 -0400 | |
| commit | 06ca911621eaea236daf8d5eed3a4289489fd5cf (patch) | |
| tree | b4d776578e94e6a7971d852dd308caa88a75c031 /src/shader_recompiler/frontend/ir/value.h | |
| parent | Merge pull request #6575 from FernandoS27/new_settings (diff) | |
| download | yuzu-06ca911621eaea236daf8d5eed3a4289489fd5cf.tar.gz yuzu-06ca911621eaea236daf8d5eed3a4289489fd5cf.tar.xz yuzu-06ca911621eaea236daf8d5eed3a4289489fd5cf.zip | |
shader_recompiler: Remove unnecessary [[nodiscard]] instances
[[nodiscard]] doesn't do anything on functions with a void return type
and causes superfluous warnings.
Diffstat (limited to 'src/shader_recompiler/frontend/ir/value.h')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/value.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h index 0c6bf684d..795194d41 100644 --- a/src/shader_recompiler/frontend/ir/value.h +++ b/src/shader_recompiler/frontend/ir/value.h | |||
| @@ -197,8 +197,8 @@ public: | |||
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | template <typename FlagsType> | 199 | template <typename FlagsType> |
| 200 | requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) | 200 | requires(sizeof(FlagsType) <= sizeof(u32) && |
| 201 | [[nodiscard]] void SetFlags(FlagsType value) noexcept { | 201 | std::is_trivially_copyable_v<FlagsType>) void SetFlags(FlagsType value) noexcept { |
| 202 | std::memcpy(&flags, &value, sizeof(value)); | 202 | std::memcpy(&flags, &value, sizeof(value)); |
| 203 | } | 203 | } |
| 204 | 204 | ||