mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-07 08:36:02 -10:00
Silence more warnings
This commit is contained in:
1 parent
c380ff5743
commit
2aeaa5fd25
8 files changed
+16
-16
No files matched your search
@@ -134,7 +134,7 @@ static void *al_init(const char *device, unsigned rate, unsigned latency,
|
||||
if (string_is_equal(device, list->elems[i].data))
|
||||
{
|
||||
RARCH_DBG("[OpenAL] Found device #%d: \"%s\".\n", i, list->elems[i].data);
|
||||
idx_found = i;
|
||||
idx_found = (int32_t)i;
|
||||
dev_id = strdup(list->elems[i].data);
|
||||
break;
|
||||
}
|
||||
@@ -144,7 +144,7 @@ static void *al_init(const char *device, unsigned rate, unsigned latency,
|
||||
|
||||
if (idx_found == -1 && isdigit(device[0]))
|
||||
{
|
||||
idx_found = strtoul(device, NULL, 0);
|
||||
idx_found = (int32_t)strtoul(device, NULL, 0);
|
||||
RARCH_LOG("[OpenAL] Fallback, device index is a single number index instead: %d.\n", idx_found);
|
||||
|
||||
if (idx_found != -1)
|
||||
@@ -190,7 +190,7 @@ static void *al_init(const char *device, unsigned rate, unsigned latency,
|
||||
_latency = latency * rate * 2 * sizeof(int16_t);
|
||||
}
|
||||
|
||||
al->num_buffers = _latency / (1000 * OPENAL_BUFSIZE);
|
||||
al->num_buffers = (ALsizei)(_latency / (1000 * OPENAL_BUFSIZE));
|
||||
if (al->num_buffers < 2)
|
||||
al->num_buffers = 2;
|
||||
|
||||
@@ -263,7 +263,7 @@ static ssize_t al_write(void *data, const void *s, size_t len)
|
||||
if (!al_get_buffer(al, &buffer))
|
||||
break;
|
||||
|
||||
alBufferData(buffer, al->format, buf, rc, al->rate);
|
||||
alBufferData(buffer, al->format, buf, (ALsizei)rc, al->rate);
|
||||
alSourceQueueBuffers(al->source, 1, &buffer);
|
||||
|
||||
_len += rc;
|
||||
|
||||
@@ -855,7 +855,7 @@ static uint32_t rvz_get_group_decompression_size(rcheevos_rvz_file_t* rvz,
|
||||
/* This is a partition data group */
|
||||
/* Calculate blocks per group based on chunk_size
|
||||
* chunk_size is in ISO space (with headers), convert to decrypted space */
|
||||
uint32_t adjusted_chunk_size = ((uint64_t)chunk_size * RVZ_WII_SECTOR_DATA_SIZE) / RVZ_WII_SECTOR_SIZE;
|
||||
uint32_t adjusted_chunk_size = (uint32_t)(((uint64_t)chunk_size * RVZ_WII_SECTOR_DATA_SIZE) / RVZ_WII_SECTOR_SIZE);
|
||||
uint32_t blocks_per_group = adjusted_chunk_size / RVZ_WII_SECTOR_DATA_SIZE;
|
||||
uint32_t group_offset_in_partition = group_index - pdata->group_index;
|
||||
uint32_t total_blocks = pdata->number_of_sectors;
|
||||
@@ -2262,7 +2262,7 @@ static int rvz_calculate_partition_offsets_stateless(
|
||||
offsets->file_offset = (offsets->block_index * RVZ_WII_SECTOR_DATA_SIZE) + offsets->offset_in_block;
|
||||
|
||||
/* Calculate effective chunk size (decrypted group size) */
|
||||
effective_chunk_size = ((uint64_t)chunk_size * RVZ_WII_SECTOR_DATA_SIZE) / RVZ_WII_SECTOR_SIZE;
|
||||
effective_chunk_size = (uint32_t)(((uint64_t)chunk_size * RVZ_WII_SECTOR_DATA_SIZE) / RVZ_WII_SECTOR_SIZE);
|
||||
|
||||
/* Calculate group index */
|
||||
file_block = offsets->file_offset / effective_chunk_size;
|
||||
@@ -2307,7 +2307,7 @@ static size_t rvz_read_partition_data_stateless(
|
||||
uint64_t bytes_left_in_block;
|
||||
|
||||
/* Calculate effective chunk size (decrypted group size) */
|
||||
effective_chunk_size = ((uint64_t)chunk_size * RVZ_WII_SECTOR_DATA_SIZE) / RVZ_WII_SECTOR_SIZE;
|
||||
effective_chunk_size = (uint32_t)(((uint64_t)chunk_size * RVZ_WII_SECTOR_DATA_SIZE) / RVZ_WII_SECTOR_SIZE);
|
||||
|
||||
/* Get the decompressed chunk data */
|
||||
chunk_data = rvz_get_chunk(handle, offsets->group_index, &chunk_data_size);
|
||||
|
||||
@@ -1918,7 +1918,7 @@ static void check_variables(bool firststart)
|
||||
fft_ms_var.key = "ffmpeg_fft_multisample";
|
||||
|
||||
if (CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_GET_VARIABLE, &fft_ms_var) && fft_ms_var.value)
|
||||
FFT_MULTISAMPLE_STR = strtoul(fft_ms_var.value, NULL, 0);
|
||||
FFT_MULTISAMPLE_STR = (unsigned)strtoul(fft_ms_var.value, NULL, 0);
|
||||
#endif
|
||||
|
||||
color_var.key = "ffmpeg_color_space";
|
||||
@@ -2502,7 +2502,7 @@ void CORE_PREFIX(retro_run)(void)
|
||||
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES3)
|
||||
else if (FFT_STR)
|
||||
{
|
||||
unsigned fft_frames = to_read_frames;
|
||||
unsigned fft_frames = (unsigned)to_read_frames;
|
||||
const int16_t *buffer = audio_buffer;
|
||||
|
||||
while (fft_frames)
|
||||
@@ -2518,7 +2518,7 @@ void CORE_PREFIX(retro_run)(void)
|
||||
buffer += to_read * 2;
|
||||
fft_frames -= to_read;
|
||||
}
|
||||
hwfft_render(FFT_STR, HW_RENDER_STR.get_current_framebuffer(), FFT_WIDTH_STR, FFT_HEIGHT_STR);
|
||||
hwfft_render(FFT_STR, (GLuint)HW_RENDER_STR.get_current_framebuffer(), FFT_WIDTH_STR, FFT_HEIGHT_STR);
|
||||
CORE_PREFIX(video_cb)(RETRO_HW_FRAME_BUFFER_VALID,
|
||||
FFT_WIDTH_STR, FFT_HEIGHT_STR, FFT_WIDTH_STR * sizeof(uint32_t));
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -383,7 +383,7 @@ int rc_api_process_fetch_games_list_server_response(rc_api_fetch_games_list_resp
|
||||
|
||||
entry = response->entries;
|
||||
while (rc_json_get_next_object_field(&iterator, &field)) {
|
||||
entry->id = strtol(field.name, &end, 10);
|
||||
entry->id = (uint32_t)strtol(field.name, &end, 10);
|
||||
|
||||
field.name = "";
|
||||
if (!rc_json_get_string(&entry->name, &response->response.buffer, &field, ""))
|
||||
|
||||
Vendored
+1
-1
@@ -457,7 +457,7 @@ int rc_api_process_fetch_all_user_progress_server_response(rc_api_fetch_all_user
|
||||
entry = response->entries;
|
||||
while (rc_json_get_next_object_field(&iterator, &field))
|
||||
{
|
||||
entry->game_id = strtol(field.name, &end, 10);
|
||||
entry->game_id = (uint32_t)strtol(field.name, &end, 10);
|
||||
|
||||
field.name = "";
|
||||
if (!rc_json_get_required_object(entry_fields, sizeof(entry_fields) / sizeof(entry_fields[0]),
|
||||
|
||||
+2
-2
@@ -1363,7 +1363,7 @@ static matrix_float4x4 matrix_proj_ortho(float left, float right, float top, flo
|
||||
ca.sourceAlphaBlendFactor = MTLBlendFactorSourceAlpha;
|
||||
ca.destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceAlpha;
|
||||
}
|
||||
id<MTLRenderPipelineState> s = [_device newRenderPipelineStateWithDescriptor:psd error:&e];
|
||||
id<MTLRenderPipelineState> s = [self->_device newRenderPipelineStateWithDescriptor:psd error:&e];
|
||||
if (e)
|
||||
{
|
||||
RARCH_ERR("[Metal] HDR %s pipeline: %s.\n",
|
||||
@@ -4952,7 +4952,7 @@ typedef struct MTLALIGN(16)
|
||||
|
||||
@try
|
||||
{
|
||||
size_t i;
|
||||
unsigned i;
|
||||
texture_t *source = NULL;
|
||||
if (!video_shader_load_preset_into_shader(path.UTF8String, shader))
|
||||
return NO;
|
||||
|
||||
@@ -6234,7 +6234,7 @@ static bool vulkan_frame(void *data, const void *frame,
|
||||
uint64_t frame_count,
|
||||
unsigned pitch, const char *msg, video_frame_info_t *video_info)
|
||||
{
|
||||
int i, j, k;
|
||||
int j, k;
|
||||
VkSubmitInfo submit_info;
|
||||
VkClearValue clear_color;
|
||||
VkRenderPassBeginInfo rp_info;
|
||||
|
||||
@@ -274,7 +274,7 @@ static void sdl_joypad_destroy(void)
|
||||
|
||||
static void *sdl_joypad_init(void *data)
|
||||
{
|
||||
size_t i;
|
||||
unsigned i;
|
||||
unsigned num_sticks;
|
||||
#ifdef HAVE_SDL2
|
||||
uint32_t subsystem = SDL_INIT_GAMECONTROLLER;
|
||||
|
||||
Reference in new issue
Block a user