diff --git a/tools/qfcc/source/qc-parse.y b/tools/qfcc/source/qc-parse.y index 375a03e42..42e5772ff 100644 --- a/tools/qfcc/source/qc-parse.y +++ b/tools/qfcc/source/qc-parse.y @@ -205,7 +205,7 @@ storage_class_t current_storage = st_global; %} -%expect 5 +%expect 11 %% @@ -305,6 +305,7 @@ storage_class local_storage_class : LOCAL { current_storage = st_local; } + | { current_storage = st_local; } | STATIC { current_storage = st_static; } ; diff --git a/tools/qfcc/test/membarray.r b/tools/qfcc/test/membarray.r index 13834b036..a1f73691a 100644 --- a/tools/qfcc/test/membarray.r +++ b/tools/qfcc/test/membarray.r @@ -43,7 +43,7 @@ typedef struct bot_data_t bot_data_t; -(void)fix { //local integer i = 2, tmp; - local unsigned u; + unsigned u; //tmp = (integer)links[i]; for (u = 0; u < count; u++) [list[u] fix];