Skip to content

Commit

Permalink
Remove 'register' keyword
Browse files Browse the repository at this point in the history
In an attempt to eliminate build-time warnings.  See:
timbunce#191.
  • Loading branch information
jkeenan committed Oct 8, 2023
1 parent 9b9d36a commit ce719f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions NYTProf.xs
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ static int
dopopcx_at(pTHX_ PERL_CONTEXT *cxstk, I32 startingblock, UV cx_type_mask)
{
I32 i;
register PERL_CONTEXT *cx;
PERL_CONTEXT *cx;
for (i = startingblock; i >= 0; i--) {
UV type_bit;
cx = &cxstk[i];
Expand Down Expand Up @@ -1404,9 +1404,9 @@ visit_contexts(pTHX_ UV cx_type_mask, int (*callback)(pTHX_ PERL_CONTEXT *cx,
UV *cx_type_mask_ptr))
{
/* modelled on pp_caller() in pp_ctl.c */
register I32 cxix = cxstack_ix;
register PERL_CONTEXT *cx = NULL;
register PERL_CONTEXT *ccstack = cxstack;
I32 cxix = cxstack_ix;
PERL_CONTEXT *cx = NULL;
PERL_CONTEXT *ccstack = cxstack;
PERL_SI *top_si = PL_curstackinfo;

if (trace_level >= 6)
Expand Down
8 changes: 4 additions & 4 deletions ppport.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce719f8

Please sign in to comment.