mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-16 04:09:07 +00:00
Fix some warnings
This commit is contained in:
parent
cbb4dd8f22
commit
bc01863654
@ -4007,7 +4007,7 @@ llvm::CallInst* llvm_asm(
|
||||
const std::string& constraints,
|
||||
llvm::LLVMContext& context)
|
||||
{
|
||||
llvm::ArrayRef<llvm::Type*> types_ref = std::nullopt;
|
||||
llvm::ArrayRef<llvm::Type*> types_ref {};
|
||||
std::vector<llvm::Type*> types;
|
||||
types.reserve(args.size());
|
||||
|
||||
|
||||
@ -199,7 +199,7 @@ namespace rsx
|
||||
if (!is_compiled())
|
||||
{
|
||||
auto renderer = get_font();
|
||||
const auto [caret_x, caret_y] = renderer->get_char_offset(text.c_str(), caret_position, clip_text ? w : -1, wrap_text);
|
||||
const auto& [caret_x, caret_y] = renderer->get_char_offset(text.c_str(), caret_position, clip_text ? w : -1, wrap_text);
|
||||
|
||||
overlay_element caret;
|
||||
caret.set_pos(static_cast<u16>(caret_x) + padding_left + x, static_cast<u16>(caret_y) + padding_top + y);
|
||||
|
||||
@ -111,12 +111,6 @@ namespace vk
|
||||
m_shader.create(::glsl::program_domain::glsl_compute_program, m_src);
|
||||
auto handle = m_shader.compile();
|
||||
|
||||
VkPipelineShaderStageCreateInfo shader_stage{};
|
||||
shader_stage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
|
||||
shader_stage.stage = VK_SHADER_STAGE_COMPUTE_BIT;
|
||||
shader_stage.module = handle;
|
||||
shader_stage.pName = "main";
|
||||
|
||||
VkComputePipelineCreateInfo create_info
|
||||
{
|
||||
.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO,
|
||||
|
||||
@ -71,9 +71,10 @@ namespace Darwin_ProcessInfo
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#if !defined(ARCH_X64)
|
||||
namespace utils
|
||||
{
|
||||
#ifdef _WIN32
|
||||
// Some helpers for sanity
|
||||
const auto read_reg_dword = [](HKEY hKey, std::string_view value_name) -> std::pair<bool, DWORD>
|
||||
{
|
||||
@ -110,7 +111,6 @@ namespace utils
|
||||
return { true, sz };
|
||||
};
|
||||
|
||||
#if !defined(ARCH_X64)
|
||||
// Alternative way to read OS version using the registry.
|
||||
static std::string get_fallback_windows_version()
|
||||
{
|
||||
@ -152,9 +152,9 @@ namespace utils
|
||||
|
||||
return fmt::format("Operating system: %s, Version %s", product_name, version_id);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool utils::has_ssse3()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user