diff --git a/src/mbgl/vulkan/buffer_resource.cpp b/src/mbgl/vulkan/buffer_resource.cpp index c3006289890..0d5f7169282 100644 --- a/src/mbgl/vulkan/buffer_resource.cpp +++ b/src/mbgl/vulkan/buffer_resource.cpp @@ -107,10 +107,10 @@ BufferResource::BufferResource(BufferResource&& other) noexcept : context(other.context), size(other.size), usage(other.usage), + version(other.version), persistent(other.persistent), bufferAllocation(std::move(other.bufferAllocation)), bufferWindowSize(other.bufferWindowSize), - version(other.version), bufferWindowVersions(std::move(other.bufferWindowVersions)) { other.bufferAllocation = nullptr; } diff --git a/src/mbgl/vulkan/renderer_backend.cpp b/src/mbgl/vulkan/renderer_backend.cpp index 5e185ebe286..bfb18548987 100644 --- a/src/mbgl/vulkan/renderer_backend.cpp +++ b/src/mbgl/vulkan/renderer_backend.cpp @@ -232,13 +232,13 @@ void RendererBackend::endFrameCapture() { #endif } -void RendererBackend::setFrameCaptureLoop(bool value) { +void RendererBackend::setFrameCaptureLoop([[maybe_unused]] bool value) { #ifdef ENABLE_RENDERDOC_FRAME_CAPTURE g_rdoc.loop = value; #endif } -void RendererBackend::triggerFrameCapture(uint32_t frameCount, uint32_t frameDelay) { +void RendererBackend::triggerFrameCapture([[maybe_unused]] uint32_t frameCount, [[maybe_unused]] uint32_t frameDelay) { #ifdef ENABLE_RENDERDOC_FRAME_CAPTURE if (!g_rdoc.api) { return; diff --git a/src/mbgl/vulkan/upload_pass.cpp b/src/mbgl/vulkan/upload_pass.cpp index 13517d494a6..8bbaa692899 100644 --- a/src/mbgl/vulkan/upload_pass.cpp +++ b/src/mbgl/vulkan/upload_pass.cpp @@ -85,7 +85,7 @@ static const std::unique_ptr noBuffer; const gfx::UniqueVertexBufferResource& UploadPass::getBuffer(const gfx::VertexVectorBasePtr& vec, const gfx::BufferUsageType usage, - bool forceUpdate) { + [[maybe_unused]] bool forceUpdate) { if (vec) { const auto* rawBufPtr = vec->getRawData(); const auto rawBufSize = vec->getRawCount() * vec->getRawSize();