[qfcc] Handle storage blocks for parameters

Klik is the only code base that uses them, so the param storage class
check got confused by them.
This commit is contained in:
Bill Currie 2025-01-18 20:48:40 +09:00
parent df04a37a8c
commit d05fcecae4

View file

@ -534,7 +534,8 @@ static param_t *
make_param (specifier_t spec, rua_ctx_t *ctx)
{
//FIXME should not be sc_global
if (spec.storage == sc_global) {
//FIXME if (spec.storage == sc_global || spec.storage == sc_extern) {
if (spec.storage < sc_inout) {
spec.storage = sc_param;
}