-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
S_newONCEOP/Perl_scalarvoid: skip over padops useless in void context
Prior to this commit, padops associated with OP_ONCE might serve no purpose in a void context. Since the context is not known at the point of the OP_ONCE creation, the padops have retained the STATE flag, but not the LVINTRO flag. This prevented Perl_scalarvoid from warning "Useless use of private variable in void context". In this commit, the STATE flag is removed and Perl_scalarvoid modified such that when a OP_ONCE padop is found in void context, the op_next pointer on the OP_ONCE is silently modified to skip over the padop.
- Loading branch information
1 parent
f19b406
commit 52a4c77
Showing
3 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters