Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Megamouse committed May 16, 2024
1 parent 975af0d commit 081c204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/RSX/NV47/HW/nv4097.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 0 additions & 4 deletions rpcs3/util/serialization_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 081c204

Please sign in to comment.