From 7e27dcea4ad3aa1f49ef56202fdd2c3577049160 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 31 Oct 2018 10:50:56 +0100 Subject: [PATCH] fix error messages --- src/types/decl_arg.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/types/decl_arg.c b/src/types/decl_arg.c index 4049038..774d302 100644 --- a/src/types/decl_arg.c +++ b/src/types/decl_arg.c @@ -139,7 +139,8 @@ bool psi_decl_arg_validate_typedef(struct psi_data *data, def->type->type = PSI_T_POINTER; } else { data->error(data, def->token, PSI_WARNING, - "Type '%s' cannot be aliased to 'void'", def->type->name->val); + "Type '%s' cannot be aliased to 'void'", + def->type->name->val); return false; } } else if (!psi_decl_type_validate(data, def->type, def, scope)) { @@ -160,8 +161,10 @@ bool psi_decl_arg_validate_typedef(struct psi_data *data, break; } data->error(data, def->token, PSI_WARNING, - "Type '%s' cannot be aliased to '%s%s'%s%s", def->var->name, pre, - def->type->name->val, *data->last_error ? ": " : "", data->last_error); + "Type '%s' cannot be aliased to '%s%s'%s%s", + def->var->name->val, pre, + def->type->name->val, + *data->last_error ? ": " : "", data->last_error); return false; } -- 2.30.2