[vlc-commits] [Git][videolan/vlc][master] text_renderer: freetype: fix function signature
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Dec 15 13:22:59 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
a2ada8aa by Johannes Kauffmann at 2022-12-15T12:52:10+00:00
text_renderer: freetype: fix function signature
All other _GetFamily functions have the last argument as const. It fixes
the following warning:
../modules/text_renderer/freetype/platform_fonts.c:925:26: warning: incompatible function pointer types ... [-Wincompatible-function-pointer-types]
fs->pf_select_family = StaticMap_GetFamily;
^ ~~~~~~~~~~~~~~~~~~~
- - - - -
1 changed file:
- modules/text_renderer/freetype/platform_fonts.c
Changes:
=====================================
modules/text_renderer/freetype/platform_fonts.c
=====================================
@@ -794,7 +794,7 @@ SelectAndLoadFace( filter_t *p_filter, const text_style_t *p_style, uni_char_t c
#ifndef HAVE_GET_FONT_BY_FAMILY_NAME
static int StaticMap_GetFamily( vlc_font_select_t *fs, const char *psz_lcname,
- vlc_family_t **pp_result )
+ const vlc_family_t **pp_result )
{
filter_t *p_filter = fs->p_filter;
filter_sys_t *p_sys = p_filter->p_sys;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a2ada8aa1b2441925f8c5401f1abaaaa551b190a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a2ada8aa1b2441925f8c5401f1abaaaa551b190a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list