diff options
| author | 2020-10-30 16:42:57 +0000 | |
|---|---|---|
| committer | 2020-10-30 16:43:10 +0000 | |
| commit | 50e52ade85bfaff494e0e3367e7991d3bc3da23b (patch) | |
| tree | 4fd8715076c639bb077ce0f1ffdf13e5ea286d01 /src | |
| parent | Merge pull request #4868 from lioncash/discard-error (diff) | |
| download | yuzu-50e52ade85bfaff494e0e3367e7991d3bc3da23b.tar.gz yuzu-50e52ade85bfaff494e0e3367e7991d3bc3da23b.tar.xz yuzu-50e52ade85bfaff494e0e3367e7991d3bc3da23b.zip | |
video_core: unbreak -Werror in NVDEC with Clang
src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp:41:15: error: unused variable 'OutOfMemory' [-Werror,-Wunused-const-variable]
constexpr u32 OutOfMemory{static_cast<u32>(-12)};
^
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp index 85792495f..30f03f845 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp | |||
| @@ -38,7 +38,7 @@ std::size_t WriteVectors(std::vector<u8>& dst, const std::vector<T>& src, std::s | |||
| 38 | 38 | ||
| 39 | namespace NvErrCodes { | 39 | namespace NvErrCodes { |
| 40 | constexpr u32 Success{}; | 40 | constexpr u32 Success{}; |
| 41 | constexpr u32 OutOfMemory{static_cast<u32>(-12)}; | 41 | [[maybe_unused]] constexpr u32 OutOfMemory{static_cast<u32>(-12)}; |
| 42 | constexpr u32 InvalidInput{static_cast<u32>(-22)}; | 42 | constexpr u32 InvalidInput{static_cast<u32>(-22)}; |
| 43 | } // namespace NvErrCodes | 43 | } // namespace NvErrCodes |
| 44 | 44 | ||