Skip to content

Commit bc6e83c

Browse files
committed
Suppress -Wunused_variable warning during 'make'
Implement Dave Mitchell's suggestion: we don't really need the unused variable. For: #21393
1 parent 54b961a commit bc6e83c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pp_ctl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4451,9 +4451,8 @@ S_require_file(pTHX_ SV *sv)
44514451
SAVETMPS;
44524452
PUSHMARK(PL_stack_sp);
44534453
rpp_xpush_1(name_sv); /* always use the object for method calls */
4454-
int count = call_sv(PL_hook__require__before, G_SCALAR);
4454+
call_sv(PL_hook__require__before, G_SCALAR);
44554455
SV *rsv = *PL_stack_sp;
4456-
assert(count == 1); /* scalar context */
44574456
if (SvOK(rsv) && SvROK(rsv) && SvTYPE(SvRV(rsv)) == SVt_PVCV) {
44584457
/* the RC++ preserves it across the popping and/or FREETMPS
44594458
* below */

0 commit comments

Comments
 (0)