Просмотр исходного кода

Merge pull request #4872 from jbeich/clang

video_core: unbreak -Werror in NVDEC with Clang
LC 5 лет назад
Родитель
Сommit
6db0c0d8d9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp

+ 1 - 1
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
 
 namespace NvErrCodes {
 constexpr u32 Success{};
-constexpr u32 OutOfMemory{static_cast<u32>(-12)};
+[[maybe_unused]] constexpr u32 OutOfMemory{static_cast<u32>(-12)};
 constexpr u32 InvalidInput{static_cast<u32>(-22)};
 } // namespace NvErrCodes