From 12e5135d95dc34fd7f7a7c50d6dbac453f252683 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 24 Feb 2019 16:00:03 +0100 Subject: Add result check for msvc --- src/parser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index f68bbf0..a8fa207 100644 --- a/src/parser.c +++ b/src/parser.c @@ -4,7 +4,7 @@ #include "../include/alloc.h" #include -static WARN_UNUSED_RESULT int parser_parse_body(Parser *self, Ast *ast); +static CHECK_RESULT int parser_parse_body(Parser *self, Ast *ast); int parser_init(Parser *self) { buffer_init(&self->ast_objects); @@ -22,7 +22,7 @@ void parser_deinit(Parser *self) { /* LHS = 'const'|'var' IDENTIFIER */ -static WARN_UNUSED_RESULT int parser_parse_lhs(Parser *self, LhsExpr **result) { +static CHECK_RESULT int parser_parse_lhs(Parser *self, LhsExpr **result) { bool isConst; BufferView var_name; *result = NULL; @@ -46,7 +46,7 @@ static WARN_UNUSED_RESULT int parser_parse_lhs(Parser *self, LhsExpr **result) { /* FUNC_DECL = '(' PARAM* ')' '{' BODY* '}' */ -static WARN_UNUSED_RESULT int parser_parse_function_decl(Parser *self, FunctionDecl **func_decl) { +static CHECK_RESULT int parser_parse_function_decl(Parser *self, FunctionDecl **func_decl) { bool result; *func_decl = NULL; @@ -85,7 +85,7 @@ static WARN_UNUSED_RESULT int parser_parse_function_decl(Parser *self, FunctionD /* FUNC_CALL = IDENTIFIER '(' ARGS* ')' */ -static WARN_UNUSED_RESULT int parser_parse_function_call(Parser *self, FunctionCall **func_call) { +static CHECK_RESULT int parser_parse_function_call(Parser *self, FunctionCall **func_call) { bool result; BufferView func_name; *func_call = NULL; @@ -107,7 +107,7 @@ static WARN_UNUSED_RESULT int parser_parse_function_call(Parser *self, FunctionC /* RHS = FUNC_DECL | FUNC_CALL */ -static WARN_UNUSED_RESULT int parser_parse_rhs(Parser *self, Ast *rhs_expr) { +static CHECK_RESULT int parser_parse_rhs(Parser *self, Ast *rhs_expr) { FunctionDecl *func_decl; FunctionCall *func_call; Token token; -- cgit v1.2.3