mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 04:32:35 +01:00
Fix some warnings
This commit is contained in:
parent
25ce3880c4
commit
99eb84c104
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user