mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Minor fixes
- Fix a typo in OpenAL - Fix typo in cellHttp.h - Unused variables in catch - Use 64-bit shifts - Use use_count with shared pointers, unique is depracated and getting removed - Explicitly cast boolean to int - Signed/unsigned issues with loop variables - Fix missing return statement (the code path is unreachable, but compiler wants a return) - */ ouside of comment - Fix duplicate layout name
This commit is contained in:
parent
1e0289bcb2
commit
690cdff0d3
10 changed files with 14 additions and 13 deletions
|
@ -128,7 +128,7 @@ bool OpenALBackend::AddData(const void* src, u32 num_samples)
|
|||
// Fail if there are no free buffers remaining
|
||||
if (m_num_unqueued == 0)
|
||||
{
|
||||
LOG_WARNING(GENERAL, "XAudio2Backend : no unqueued buffers remaining");
|
||||
LOG_WARNING(GENERAL, "OpenALBackend : no unqueued buffers remaining");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ enum
|
|||
CELL_HTTPS_ERROR_CERT_KEY_MISMATCH = 0x80710a0a,
|
||||
CELL_HTTPS_ERROR_KEY_NEEDS_CERT = 0x80710a0b,
|
||||
CELL_HTTPS_ERROR_CERT_NEEDS_KEY = 0x80710a0c,
|
||||
CELL_HTTPS_ERROR_RETRY_CONNECTION = 0x80710a01d,
|
||||
CELL_HTTPS_ERROR_RETRY_CONNECTION = 0x80710a0d,
|
||||
CELL_HTTPS_ERROR_NET_SSL_CONNECT = 0x80710b00,
|
||||
CELL_HTTPS_ERROR_NET_SSL_SEND = 0x80710c00,
|
||||
CELL_HTTPS_ERROR_NET_SSL_RECV = 0x80710d00,
|
||||
|
|
|
@ -4543,7 +4543,7 @@ public:
|
|||
{
|
||||
(this->*g_decoder.decode(op))({op});
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
catch (const std::exception&)
|
||||
{
|
||||
std::string dump;
|
||||
raw_string_ostream out(dump);
|
||||
|
@ -4762,7 +4762,7 @@ public:
|
|||
// Create interpreter table
|
||||
const auto if_type = get_ftype<void, u8*, u8*, u32, u32, u8*, u32, u8*>();
|
||||
const auto if_pptr = if_type->getPointerTo()->getPointerTo();
|
||||
m_function_table = new GlobalVariable(*m_module, ArrayType::get(if_type->getPointerTo(), 1u << m_interp_magn), true, GlobalValue::InternalLinkage, nullptr);
|
||||
m_function_table = new GlobalVariable(*m_module, ArrayType::get(if_type->getPointerTo(), 1ull << m_interp_magn), true, GlobalValue::InternalLinkage, nullptr);
|
||||
|
||||
// Add return function
|
||||
const auto ret_func = cast<Function>(module->getOrInsertFunction("spu_ret", if_type).getCallee());
|
||||
|
@ -4823,7 +4823,7 @@ public:
|
|||
|
||||
// Fill interpreter table
|
||||
std::vector<llvm::Constant*> iptrs;
|
||||
iptrs.reserve(1u << m_interp_magn);
|
||||
iptrs.reserve(1ull << m_interp_magn);
|
||||
|
||||
m_block = nullptr;
|
||||
|
||||
|
@ -4987,7 +4987,7 @@ public:
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
catch (const std::exception&)
|
||||
{
|
||||
std::string dump;
|
||||
raw_string_ostream out(dump);
|
||||
|
@ -5011,7 +5011,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
m_function_table->setInitializer(ConstantArray::get(ArrayType::get(if_type->getPointerTo(), 1u << m_interp_magn), iptrs));
|
||||
m_function_table->setInitializer(ConstantArray::get(ArrayType::get(if_type->getPointerTo(), 1ull << m_interp_magn), iptrs));
|
||||
m_function_table = nullptr;
|
||||
|
||||
// Initialize pass manager
|
||||
|
|
|
@ -218,7 +218,7 @@ error_code sys_mmapper_free_address(u32 addr)
|
|||
return {CELL_EINVAL, addr};
|
||||
}
|
||||
|
||||
if (!area.unique())
|
||||
if (area.use_count() != 1)
|
||||
{
|
||||
return CELL_EBUSY;
|
||||
}
|
||||
|
|
|
@ -988,7 +988,7 @@ namespace vm
|
|||
continue;
|
||||
}
|
||||
|
||||
if (must_be_empty && (!it->unique() || (*it)->imp_used(lock)))
|
||||
if (must_be_empty && (it->use_count() != 1 || (*it)->imp_used(lock)))
|
||||
{
|
||||
return *it;
|
||||
}
|
||||
|
|
|
@ -481,7 +481,7 @@ VKGSRender::VKGSRender() : GSRender()
|
|||
m_occlusion_query_pool.create((*m_device), OCCLUSION_MAX_POOL_SIZE);
|
||||
m_occlusion_map.resize(occlusion_query_count);
|
||||
|
||||
for (int n = 0; n < occlusion_query_count; ++n)
|
||||
for (u32 n = 0; n < occlusion_query_count; ++n)
|
||||
m_occlusion_query_data[n].driver_handle = n;
|
||||
|
||||
//Generate frame contexts
|
||||
|
|
|
@ -780,6 +780,7 @@ namespace
|
|||
case rsx::vertex_base_type::cmp: return "CMP";
|
||||
case rsx::vertex_base_type::ub256: return "Unsigned byte unormalized";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
std::string unpack_vertex_format(u32 arg)
|
||||
|
|
|
@ -685,7 +685,7 @@ void pad_settings_dialog::mouseReleaseEvent(QMouseEvent* event)
|
|||
ReactivateButtons();
|
||||
}
|
||||
|
||||
void pad_settings_dialog::mouseMoveEvent(QMouseEvent*/* event*/)
|
||||
void pad_settings_dialog::mouseMoveEvent(QMouseEvent* /*event*/)
|
||||
{
|
||||
if (m_handler->m_type != pad_handler::keyboard)
|
||||
{
|
||||
|
|
|
@ -207,7 +207,7 @@ namespace gui
|
|||
table->clearContents();
|
||||
table->setRowCount(0);
|
||||
|
||||
for (u32 i = 0; i < item_count; ++i)
|
||||
for (int i = 0; i < item_count; ++i)
|
||||
table->insertRow(i);
|
||||
|
||||
if (table->horizontalScrollBar())
|
||||
|
|
|
@ -1239,7 +1239,7 @@
|
|||
<property name="title">
|
||||
<string>Disk cache</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_75">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_77">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="enableCacheClearing">
|
||||
<property name="text">
|
||||
|
|
Loading…
Add table
Reference in a new issue