From 50e52ade85bfaff494e0e3367e7991d3bc3da23b Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 30 Oct 2020 16:42:57 +0000 Subject: 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(-12)}; ^ --- src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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& dst, const std::vector& src, std::s namespace NvErrCodes { constexpr u32 Success{}; -constexpr u32 OutOfMemory{static_cast(-12)}; +[[maybe_unused]] constexpr u32 OutOfMemory{static_cast(-12)}; constexpr u32 InvalidInput{static_cast(-22)}; } // namespace NvErrCodes -- cgit v1.2.3