From cfb2a4923629024d982a1bda5c1a45dc43ddcb65 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Fri, 27 Oct 2023 09:51:48 +0300 Subject: [PATCH] asn1c skeleton: Make RETURN macro not overshadowing rval variable Signed-off-by: Alexander Bokovoy --- asn1/asn1c/constr_SET_OF_oer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/asn1/asn1c/constr_SET_OF_oer.c b/asn1/asn1c/constr_SET_OF_oer.c index 88d7a2a1b4a..dc371aec50d 100644 --- a/asn1/asn1c/constr_SET_OF_oer.c +++ b/asn1/asn1c/constr_SET_OF_oer.c @@ -45,10 +45,10 @@ #undef RETURN #define RETURN(_code) \ do { \ - asn_dec_rval_t rval; \ - rval.code = _code; \ - rval.consumed = consumed_myself; \ - return rval; \ + asn_dec_rval_t _rval; \ + _rval.code = _code; \ + _rval.consumed = consumed_myself;\ + return _rval; \ } while(0) /*