[vlc-devel] [PATCH] fix "initialization from incompatible pointer type" warnings at libvlc-common.c:1406 and libvlc-common.c:1812
Michael Ploujnikov
ploujj at gmail.com
Thu Apr 17 05:19:02 CEST 2008
Apparently, C can't automatically make such a pointer conversion.
---
src/libvlc-common.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libvlc-common.c b/src/libvlc-common.c
index a3bb83b..55f2caa 100644
--- a/src/libvlc-common.c
+++ b/src/libvlc-common.c
@@ -1403,7 +1403,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
if( psz_module_name && strcmp( psz_module_name,
p_parser->psz_object_name ) )
{
- const char *const *pp_shortcut = p_parser->pp_shortcuts;
+ const char *const *pp_shortcut = (const char *const *)p_parser->pp_shortcuts;
while( *pp_shortcut )
{
if( !strcmp( psz_module_name, *pp_shortcut ) )
@@ -1809,7 +1809,7 @@ static void ListModules( libvlc_int_t *p_this, bool b_verbose )
if( b_verbose )
{
- const char *const *pp_shortcut = p_parser->pp_shortcuts;
+ const char *const *pp_shortcut = (const char *const *)p_parser->pp_shortcuts;
while( *pp_shortcut )
{
if( strcmp( *pp_shortcut, p_parser->psz_object_name ) )
--
1.5.4.1
More information about the vlc-devel
mailing list