mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Fix some clang scan-build warnings/errors
This commit is contained in:
parent
849792dc2c
commit
646e64c28c
@ -74,7 +74,6 @@ static void handle_discord_join_request(const DiscordUser* request)
|
|||||||
|
|
||||||
void discord_update(enum discord_presence presence)
|
void discord_update(enum discord_presence presence)
|
||||||
{
|
{
|
||||||
rarch_system_info_t *system = runloop_get_system_info();
|
|
||||||
core_info_t *core_info = NULL;
|
core_info_t *core_info = NULL;
|
||||||
|
|
||||||
if (!discord_ready)
|
if (!discord_ready)
|
||||||
|
@ -2228,10 +2228,16 @@ static void vulkan_set_osd_msg(void *data,
|
|||||||
static uintptr_t vulkan_load_texture(void *video_data, void *data,
|
static uintptr_t vulkan_load_texture(void *video_data, void *data,
|
||||||
bool threaded, enum texture_filter_type filter_type)
|
bool threaded, enum texture_filter_type filter_type)
|
||||||
{
|
{
|
||||||
|
struct vk_texture *texture = NULL;
|
||||||
vk_t *vk = (vk_t*)video_data;
|
vk_t *vk = (vk_t*)video_data;
|
||||||
struct texture_image *image = (struct texture_image*)data;
|
struct texture_image *image = (struct texture_image*)data;
|
||||||
struct vk_texture *texture = (struct vk_texture*)calloc(1, sizeof(*texture));
|
if (!image)
|
||||||
if (!image || !texture)
|
return 0;
|
||||||
|
|
||||||
|
texture = (struct vk_texture*)
|
||||||
|
calloc(1, sizeof(*texture));
|
||||||
|
|
||||||
|
if (!texture)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!image->pixels || !image->width || !image->height)
|
if (!image->pixels || !image->width || !image->height)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user