* [PATCH 1/2] solver: quiet complex regexp warning for old Perl
2024-05-11 23:29 5% [PATCH 0/2] minor solver updates Eric Wong
@ 2024-05-11 23:29 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2024-05-11 23:29 UTC (permalink / raw)
To: meta
I'm not sure when the actual recursion limit was removed,
but the warning was removed for Perl 5.37.1. In any case,
it's probably not worth doing anything about for older Perls
it since it's rarely triggered and it seems nobody cares too
much about solver, anyways :<
---
lib/PublicInbox/SolverGit.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm
index 296e7d17..7984af43 100644
--- a/lib/PublicInbox/SolverGit.pm
+++ b/lib/PublicInbox/SolverGit.pm
@@ -136,6 +136,12 @@ sub extract_diff ($$) {
if ($cte =~ /\bquoted-printable\b/i && $part->crlf eq "\n") {
$s =~ s/\r\n/\n/sg;
}
+
+ # Quiet "Complex regular subexpression recursion limit" warning.
+ # Not much we can do about it, but it's no longer relevant to
+ # Perl 5.3x (the warning was removed in 5.37.1, and actual
+ # recursino sometime before then).
+ no warnings 'regexp';
$s =~ m!( # $1 start header lines we save for debugging:
# everything before ^index is optional, but we don't
^ permalink raw reply related [relevance 7%]
* [PATCH 0/2] minor solver updates
@ 2024-05-11 23:29 5% Eric Wong
2024-05-11 23:29 7% ` [PATCH 1/2] solver: quiet complex regexp warning for old Perl Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2024-05-11 23:29 UTC (permalink / raw)
To: meta
Eric Wong (2):
solver: quiet complex regexp warning for old Perl
solver: eliminate a few more git path lookups
lib/PublicInbox/SolverGit.pm | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2024-05-11 23:29 5% [PATCH 0/2] minor solver updates Eric Wong
2024-05-11 23:29 7% ` [PATCH 1/2] solver: quiet complex regexp warning for old Perl Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).