Commit 69343b74 authored by Rémi Duraffort's avatar Rémi Duraffort

variables: print an error message when a variable is created without a type...

variables: print an error message when a variable is created without a type (often a typo like the previous commit).
parent 8e46fdb4
......@@ -276,7 +276,11 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
break;
default:
p_var->ops = &void_ops;
break;
#ifndef NDEBUG
if( i_type & VLC_VAR_CLASS != VLC_VAR_VOID )
msg_Err( p_this, "Creating the variable '%s' without a type",
psz_name );
#endif
}
if( i_type & VLC_VAR_DOINHERIT )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment