diff options
| author | 2021-07-27 04:14:32 -0400 | |
|---|---|---|
| committer | 2021-07-27 04:14:32 -0400 | |
| commit | e490ddf327d88011e4895cdca182260cbed84bcd (patch) | |
| tree | ab723b5adea67bcafed729450a9d974febb62e00 /src/shader_recompiler/exception.h | |
| parent | exception: Narrow down specific header (diff) | |
| download | yuzu-e490ddf327d88011e4895cdca182260cbed84bcd.tar.gz yuzu-e490ddf327d88011e4895cdca182260cbed84bcd.tar.xz yuzu-e490ddf327d88011e4895cdca182260cbed84bcd.zip | |
exception: Make what() member function nodiscard
Diffstat (limited to 'src/shader_recompiler/exception.h')
| -rw-r--r-- | src/shader_recompiler/exception.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/exception.h b/src/shader_recompiler/exception.h index c47aecc1e..997169756 100644 --- a/src/shader_recompiler/exception.h +++ b/src/shader_recompiler/exception.h | |||
| @@ -17,7 +17,7 @@ class Exception : public std::exception { | |||
| 17 | public: | 17 | public: |
| 18 | explicit Exception(std::string message) noexcept : err_message{std::move(message)} {} | 18 | explicit Exception(std::string message) noexcept : err_message{std::move(message)} {} |
| 19 | 19 | ||
| 20 | const char* what() const noexcept override { | 20 | [[nodiscard]] const char* what() const noexcept override { |
| 21 | return err_message.c_str(); | 21 | return err_message.c_str(); |
| 22 | } | 22 | } |
| 23 | 23 | ||