Skip to content

Commit

Permalink
Merge pull request #7 from tonycoz/warnsprintf
Browse files Browse the repository at this point in the history
ensure perl 5.22 won't warn about format vs argument list mis-matches
  • Loading branch information
abw committed Apr 7, 2015
2 parents 2a48006 + 0cfaee5 commit 52af400
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Badger/Utils.pm
Expand Up @@ -182,6 +182,7 @@ sub xprintf {
? _xprintf_ifdef(\@args, $1, $2, $3)
: '%' . $1 . '$' . ($2 || 's')
}egx;
no if $] > 5.021, warnings => "redundant";
sprintf($format, @_);
}

Expand Down

0 comments on commit 52af400

Please sign in to comment.