Skip to content

pp_pack: Suppress Cppcheck warning. #20315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,7 @@ Mr. Nobody <[email protected]>
Murray Nesbitt <[email protected]>
Nathan Glenn <[email protected]>
Nathan Kurz <[email protected]>
Nathan Mills <[email protected]>
Nathan Torkington <[email protected]>
Nathan Trapuzzano <[email protected]>
Neale Ferguson <[email protected]>
Expand Down
2 changes: 2 additions & 0 deletions pp_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ S_unpack_rec(pTHX_ tempsym_t* symptr, const char *s, const char *strbeg, const c
const U32 group_modifiers = TYPE_MODIFIERS(datumtype & ~symptr->flags);
symptr->flags |= group_modifiers;
symptr->patend = savsym.grpend;
/* cppcheck-suppress autoVariables */
symptr->previous = &savsym;
symptr->level++;
PUTBACK;
Expand Down Expand Up @@ -2249,6 +2250,7 @@ S_pack_rec(pTHX_ SV *cat, tempsym_t* symptr, SV **beglist, SV **endlist )
symptr->flags |= group_modifiers;
symptr->patend = savsym.grpend;
symptr->level++;
/* cppcheck-suppress autoVariables */
symptr->previous = &lookahead;
while (len--) {
U32 was_utf8;
Expand Down