Merge pull request #7760 from orbea/clang

Fix warnings with clang.
This commit is contained in:
Twinaphex 2018-12-17 01:54:13 +01:00 committed by GitHub
commit 26cb223852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -184,7 +184,8 @@ static bool environ_cb_get_system_info(unsigned cmd, void *data)
break;
case RETRO_ENVIRONMENT_SET_SUBSYSTEM_INFO:
{
unsigned i, j;
unsigned i = 0;
unsigned j = 0;
unsigned size = i;
const struct retro_subsystem_info *info =
(const struct retro_subsystem_info*)data;

View File

@ -1106,12 +1106,12 @@ StaticTexture::StaticTexture(string id,
bool linear,
bool mipmap,
vulkan_filter_chain_address address)
: id(move(id)),
device(device),
: device(device),
image(image),
view(view),
memory(memory),
buffer(move(buffer))
buffer(move(buffer)),
id(move(id))
{
texture.filter = linear ? VULKAN_FILTER_CHAIN_LINEAR : VULKAN_FILTER_CHAIN_NEAREST;
texture.mip_filter =
@ -2104,8 +2104,8 @@ Framebuffer::Framebuffer(
const VkPhysicalDeviceMemoryProperties &mem_props,
const Size2D &max_size, VkFormat format,
unsigned max_levels) :
device(device),
memory_properties(mem_props),
device(device),
size(max_size),
format(format),
max_levels(max(max_levels, 1u))