mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
Fix warning in script
This commit is contained in:
@@ -49,8 +49,8 @@ sub extractGccWarning
|
|||||||
$line =~ m(^\s*(?<loc>.*?): warning: (?<msg>.*)$) or return ();
|
$line =~ m(^\s*(?<loc>.*?): warning: (?<msg>.*)$) or return ();
|
||||||
my ($loc, $msg) = @+{ qw(loc msg) };
|
my ($loc, $msg) = @+{ qw(loc msg) };
|
||||||
$loc =~ m(^(?<file>.*?):(?<loc>[0-9:]+)$) or return (file => $loc, msg => $msg);
|
$loc =~ m(^(?<file>.*?):(?<loc>[0-9:]+)$) or return (file => $loc, msg => $msg);
|
||||||
my ($file, $loc) = ($+{file}, split ':', $+{loc});
|
my ($file, $line) = ($+{file}, split ':', $+{loc});
|
||||||
return (file => $file, line => $loc, msg => $msg);
|
return (file => $file, line => $line, msg => $msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub extractMsvcWarning
|
sub extractMsvcWarning
|
||||||
@@ -59,8 +59,8 @@ sub extractMsvcWarning
|
|||||||
$line =~ m(^\s*(?<loc>.*?): warning (?<msg>[A-Z]+[0-9]+: .*)$) or return ();
|
$line =~ m(^\s*(?<loc>.*?): warning (?<msg>[A-Z]+[0-9]+: .*)$) or return ();
|
||||||
my ($loc, $msg) = @+{ qw(loc msg) };
|
my ($loc, $msg) = @+{ qw(loc msg) };
|
||||||
$loc =~ m(^(?<file>.*)\((?<loc>[0-9,]+)\)$) or return (file => $loc, msg => $msg);
|
$loc =~ m(^(?<file>.*)\((?<loc>[0-9,]+)\)$) or return (file => $loc, msg => $msg);
|
||||||
my ($file, $loc) = ($+{file}, split ',', $+{loc});
|
my ($file, $line) = ($+{file}, split ',', $+{loc});
|
||||||
return (file => $file, line => $loc, msg => $msg);
|
return (file => $file, line => $line, msg => $msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub toRelativePath
|
sub toRelativePath
|
||||||
|
|||||||
Reference in New Issue
Block a user