Commit: 9fe54489bb5781134a112819097b9d086f0439c5 Author: Nuno Lopes <[email protected]> Mon, 19 Nov 2012 08:25:22 -0500 Parents: 09876f7244f8e2ebc1884cf1084c29d64e807510 Branches: master
Link: http://git.php.net/?p=web/gcov.git;a=commitdiff;h=9fe54489bb5781134a112819097b9d086f0439c5 Log: skip gcc notes Changed paths: M cron/compile_results.php M www/compile_results.php Diff: diff --git a/cron/compile_results.php b/cron/compile_results.php index 7eba608..d1e85f0 100644 --- a/cron/compile_results.php +++ b/cron/compile_results.php @@ -61,6 +61,9 @@ foreach ($data as $error) { // the real data starts at 6th element for ($i = 6; isset($error[$i]); $i += 3) { + // skip notes for now. they should be associated with a warning/error. + if ($type === 'note') + continue; $line = $error[$i]; $type = $error[$i+1] ? $error[$i+1] : 'error'; // warning or error (default) $msg = $error[$i+2]; diff --git a/www/compile_results.php b/www/compile_results.php index e0c2811..5221032 100644 --- a/www/compile_results.php +++ b/www/compile_results.php @@ -24,7 +24,7 @@ if (!defined('IN_GCOV_CODE')) exit; $inputfile = "./$version/compile_results.inc"; $raw_data = @file_get_contents($inputfile); $data = unserialize($raw_data); -$stats = array('warning' => 0, 'error' => 0, 'note' => 0); +$stats = array('warning' => 0, 'error' => 0); if (!$raw_data) { @@ -74,12 +74,11 @@ HTML; } } - $total = $stats['warning'] + $stats['error'] + $stats['note']; + $total = $stats['warning'] + $stats['error']; $content = <<< HTML <p>Number of Errors: $stats[error]<br /> Number of Warnings: $stats[warning]<br /> -Number of Notes: $stats[note]<br /> Total: $total</p> $content -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
