From 99eb84c104f1a0dad85208e811b71fffc4574785 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 16 May 2024 02:59:34 +0200 Subject: [PATCH] Fix some warnings --- rpcs3/Emu/RSX/NV47/HW/nv4097.cpp | 4 ++-- rpcs3/util/serialization_ext.cpp | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/RSX/NV47/HW/nv4097.cpp b/rpcs3/Emu/RSX/NV47/HW/nv4097.cpp index be929c6c33..448ab31afe 100644 --- a/rpcs3/Emu/RSX/NV47/HW/nv4097.cpp +++ b/rpcs3/Emu/RSX/NV47/HW/nv4097.cpp @@ -20,7 +20,7 @@ namespace rsx RSX(ctx)->m_graphics_state |= rsx::pipeline_state::fragment_program_ucode_dirty; } - void set_transform_constant::decode_one(context* ctx, u32 reg, u32 arg) + void set_transform_constant::decode_one([[maybe_unused]] context* ctx, u32 reg, u32 arg) { const u32 index = reg - NV4097_SET_TRANSFORM_CONSTANT; const u32 constant_id = index / 4; @@ -44,7 +44,7 @@ namespace rsx RSX(ctx)->patch_transform_constants(ctx, load + constant_id, last_constant_id - constant_id); } - void set_transform_constant::impl(context* ctx, u32 reg, u32 arg) + void set_transform_constant::impl(context* ctx, u32 reg, [[maybe_unused]] u32 arg) { const u32 index = reg - NV4097_SET_TRANSFORM_CONSTANT; const u32 constant_id = index / 4; diff --git a/rpcs3/util/serialization_ext.cpp b/rpcs3/util/serialization_ext.cpp index 2f65f2fed7..62874d9b76 100644 --- a/rpcs3/util/serialization_ext.cpp +++ b/rpcs3/util/serialization_ext.cpp @@ -855,8 +855,6 @@ bool compressed_zstd_serialization_file_handler::handle_file_op(utils::serial& a return false; } - auto& manager = *m_stream; - if (data) { ensure(false); @@ -1253,7 +1251,6 @@ void compressed_zstd_serialization_file_handler::stream_data_prepare_thread_op() break; } - usz buffer_offset = 0; stream_data.resize(::ZSTD_compressBound(data->size())); const usz out_size = ZSTD_compressCCtx(m_zc, stream_data.data(), stream_data.size(), data->data(), data->size(), ZSTD_btultra); @@ -1301,7 +1298,6 @@ void compressed_zstd_serialization_file_handler::file_writer_thread_op() break; } - const usz last_size = data->size(); m_file->write(*data); } }