widl: Issue an error if an out parameter is a conformant string.
This commit is contained in:
parent
cf45d59912
commit
a3f649f730
|
@ -2527,10 +2527,11 @@ static void check_remoting_args(const var_t *func)
|
||||||
error_loc_info(&arg->loc_info, "out interface pointer \'%s\' of function \'%s\' is not a double pointer\n", arg->name, funcname);
|
error_loc_info(&arg->loc_info, "out interface pointer \'%s\' of function \'%s\' is not a double pointer\n", arg->name, funcname);
|
||||||
break;
|
break;
|
||||||
case TGT_STRING:
|
case TGT_STRING:
|
||||||
if (!is_array(type))
|
if (is_ptr(type) ||
|
||||||
{
|
(is_array(type) &&
|
||||||
/* FIXME */
|
(!type_array_has_conformance(type) ||
|
||||||
}
|
type_array_get_conformance(type)->type == EXPR_VOID)))
|
||||||
|
error_loc_info(&arg->loc_info, "out parameter \'%s\' of function \'%s\' cannot be an unsized string\n", arg->name, funcname);
|
||||||
break;
|
break;
|
||||||
case TGT_INVALID:
|
case TGT_INVALID:
|
||||||
/* already error'd before we get here */
|
/* already error'd before we get here */
|
||||||
|
|
Loading…
Reference in New Issue