From 04f99b387021a8ce32a8795360cba9beaf986a81 Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Tue, 13 Sep 2011 12:00:31 +0200 Subject: Imported Upstream version 2011.09.07 --- src/cmd/gc/closure.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cmd/gc/closure.c') diff --git a/src/cmd/gc/closure.c b/src/cmd/gc/closure.c index 1261eefb7..d29e8cbc2 100644 --- a/src/cmd/gc/closure.c +++ b/src/cmd/gc/closure.c @@ -6,6 +6,8 @@ * function literals aka closures */ +#include +#include #include "go.h" void @@ -57,7 +59,6 @@ closurebody(NodeList *body) body = list1(nod(OEMPTY, N, N)); func = curfn; - l = func->dcl; func->nbody = body; funcbody(func); @@ -129,6 +130,8 @@ makeclosure(Node *func, NodeList **init, int nowrap) static int closgen; char *p; + USED(init); + /* * wrap body in external function * with extra closure parameters. -- cgit v1.2.3