Skip to content

Commit d1284b4

Browse files
authored
cal: unused variable (#668)
* $remain was unused in fmt_month() * perlcritic didn't find this one for me, possibly because of the assignment in the declaration statement
1 parent 5574449 commit d1284b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ sub fmt_month {
147147

148148
sub make_month_array {
149149
my( $year, $month ) = @_;
150-
my( @month_array, $numdays, $remain, $x, $y ) = ();
150+
my( @month_array, $numdays, $x, $y ) = ();
151151
my( $firstweekday ) = &day_of_week_num( $year, $month, 1 );
152152
$numdays = &days_in_month( $year, $month );
153153
if ($opts{'j'}) {

0 commit comments

Comments
 (0)