summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun-cc.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/run-cc.pl b/run-cc.pl
index 29af15393..380b01ef7 100755
--- a/run-cc.pl
+++ b/run-cc.pl
@@ -25,6 +25,16 @@ my @msgfilters = (
}
die $errstr;
} ],
+
+ [ qr/^.* warning: / => sub {
+ my ($msg) = @_;
+ print STDERR "\e[33;1m$msg\e[0m\n";
+ } ],
+
+ [ qr/^.* error: / => sub {
+ my ($msg) = @_;
+ print STDERR "\e[31;1m$msg\e[0m\n";
+ } ],
);
my $pid;