Skip to content

Commit 4f54aad

Browse files
committed
fixed some compiler warnings
1 parent 698b453 commit 4f54aad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

expr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,7 @@ EvalExpr(AST *expr, unsigned flags, int *valid, int depth)
20412041
name = expr->d.string;
20422042
sym = LookupSymbol(name);
20432043
} else if (expr->kind == AST_CONSTREF || expr->kind == AST_METHODREF) {
2044+
name = "method";
20442045
sym = LookupMethodRef(expr, NULL, valid);
20452046
} else {
20462047
if (reportError)

frontends/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ GenericFunctionPtr(AST *result_type)
10351035

10361036
if (result_type && result_type->kind == AST_INTEGER) {
10371037
int numresults = result_type->d.ival;
1038-
AST *exprlist;
1038+
AST *exprlist = NULL;
10391039
if (numresults == 0) {
10401040
exprlist = ast_type_void;
10411041
} else if (numresults == 1) {

0 commit comments

Comments
 (0)