(LGTM) Silence some warnings

This commit is contained in:
twinaphex 2019-04-13 02:14:43 +02:00
parent 5dde91040f
commit 3619fae2d9
5 changed files with 6 additions and 6 deletions

View File

@ -1369,7 +1369,7 @@ bool Pass::init_pipeline_layout()
if (reflection.push_constant_stage_mask & SLANG_STAGE_FRAGMENT_MASK) if (reflection.push_constant_stage_mask & SLANG_STAGE_FRAGMENT_MASK)
push_range.stageFlags |= VK_SHADER_STAGE_FRAGMENT_BIT; push_range.stageFlags |= VK_SHADER_STAGE_FRAGMENT_BIT;
RARCH_LOG("[Vulkan]: Push Constant Block: %u bytes.\n", reflection.push_constant_size); RARCH_LOG("[Vulkan]: Push Constant Block: %u bytes.\n", (unsigned int)reflection.push_constant_size);
layout_info.pushConstantRangeCount = 1; layout_info.pushConstantRangeCount = 1;
layout_info.pPushConstantRanges = &push_range; layout_info.pPushConstantRanges = &push_range;

View File

@ -643,9 +643,9 @@ bool slang_reflect(const Compiler &vertex_compiler, const Compiler &fragment_com
for (auto &param : reflection->semantic_float_parameters) for (auto &param : reflection->semantic_float_parameters)
{ {
if (param.uniform) if (param.uniform)
RARCH_LOG("[slang]: #%u (Offset: %u)\n", i, param.ubo_offset); RARCH_LOG("[slang]: #%u (Offset: %u)\n", i, (unsigned int)param.ubo_offset);
if (param.push_constant) if (param.push_constant)
RARCH_LOG("[slang]: #%u (PushOffset: %u)\n", i, param.push_constant_offset); RARCH_LOG("[slang]: #%u (PushOffset: %u)\n", i, (unsigned int)param.push_constant_offset);
i++; i++;
} }

View File

@ -149,7 +149,7 @@ function selectFiles(files)
$('#icnAdd').addClass('fa-spinner spinning'); $('#icnAdd').addClass('fa-spinner spinning');
var count = files.length; var count = files.length;
for (var i = 0; i < files.length; i++) for (var i = 0; i < count; i++)
{ {
filereader = new FileReader(); filereader = new FileReader();
filereader.file_name = files[i].name; filereader.file_name = files[i].name;

View File

@ -368,7 +368,7 @@ static bool input_autoconfigure_joypad_from_conf_dir(
if (list) if (list)
{ {
RARCH_LOG("[Autoconf]: %d profiles found.\n", list->size); RARCH_LOG("[Autoconf]: %d profiles found.\n", (int)list->size);
} }
for (i = 0; i < list->size; i++) for (i = 0; i < list->size; i++)

View File

@ -270,7 +270,7 @@ void RARCH_LOG_BUFFER(uint8_t *data, size_t size)
int padding = size % 16; int padding = size % 16;
uint8_t buf[16] = {0}; uint8_t buf[16] = {0};
RARCH_LOG("== %d-byte buffer ==================\n", size); RARCH_LOG("== %d-byte buffer ==================\n", (int)size);
for(i = 0, offset = 0; i < size; i++) for(i = 0, offset = 0; i < size; i++)
{ {