Silence more warnings

This commit is contained in:
twinaphex 2017-10-03 00:56:18 +02:00
parent 702f1276d6
commit 71dd8f9084
3 changed files with 9 additions and 8 deletions

View File

@ -914,7 +914,7 @@ static void *gl_glsl_init(void *data, const char *path)
if (*glsl->shader->script_class)
info.script_class= glsl->shader->script_class;
#endif
info.script_is_file = NULL;
info.script_is_file = false;
glsl->state_tracker = state_tracker_init(&info);

View File

@ -236,11 +236,12 @@ static bool menu_display_d3d_font_init_first(
bool is_threaded)
{
font_data_t **handle = (font_data_t**)font_handle;
*handle = font_driver_init_first(video_data,
if (!(*handle = font_driver_init_first(video_data,
font_path, font_size, true,
is_threaded,
FONT_DRIVER_RENDER_DIRECT3D_API);
return *handle;
FONT_DRIVER_RENDER_DIRECT3D_API)))
return false;
return true;
}
menu_display_ctx_driver_t menu_display_ctx_d3d = {

View File

@ -249,12 +249,12 @@ static bool menu_display_gl_font_init_first(
bool is_threaded)
{
font_data_t **handle = (font_data_t**)font_handle;
*handle = font_driver_init_first(video_data,
if (!(*handle = font_driver_init_first(video_data,
font_path, font_size, true,
is_threaded,
FONT_DRIVER_RENDER_OPENGL_API);
return *handle;
FONT_DRIVER_RENDER_OPENGL_API)))
return false;
return true;
}
menu_display_ctx_driver_t menu_display_ctx_gl = {