From 2cce903cc990fabeb4574920c6778f67e3a2dc57 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 28 Jan 2011 21:56:17 +0900 Subject: [PATCH] Set the default storage class for local vars. --- tools/qfcc/source/qp-parse.y | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/qp-parse.y b/tools/qfcc/source/qp-parse.y index e9196a8ec..53c72cb68 100644 --- a/tools/qfcc/source/qp-parse.y +++ b/tools/qfcc/source/qp-parse.y @@ -237,6 +237,7 @@ subprogram_declaration : subprogram_head ';' { $$ = current_storage; + current_storage = st_local; current_func = begin_function ($1, 0, current_symtab); current_symtab = current_func->symtab; }