1 |
Author: zmedico |
2 |
Date: 2009-09-08 09:11:35 +0000 (Tue, 08 Sep 2009) |
3 |
New Revision: 14218 |
4 |
|
5 |
Modified: |
6 |
main/trunk/bin/misc-functions.sh |
7 |
Log: |
8 |
Fix false positives in gcc QA with debug mode some more. Thanks again to |
9 |
Amit Dor-Shifer <amitds@××××××.com> for reporting. |
10 |
|
11 |
|
12 |
Modified: main/trunk/bin/misc-functions.sh |
13 |
=================================================================== |
14 |
--- main/trunk/bin/misc-functions.sh 2009-09-08 08:10:10 UTC (rev 14217) |
15 |
+++ main/trunk/bin/misc-functions.sh 2009-09-08 09:11:35 UTC (rev 14218) |
16 |
@@ -408,8 +408,8 @@ |
17 |
|
18 |
# Evaluate misc gcc warnings |
19 |
if [[ -n ${PORTAGE_LOG_FILE} && -r ${PORTAGE_LOG_FILE} ]] ; then |
20 |
- # In debug mode, this variable definition will produce |
21 |
- # a false positive if it's shown in the trace. |
22 |
+ # In debug mode, this variable definition and corresponding grep calls |
23 |
+ # will produce false positives if they're shown in the trace. |
24 |
local reset_debug=0 |
25 |
if [[ ${-/x/} != $- ]] ; then |
26 |
set +x |
27 |
@@ -424,7 +424,6 @@ |
28 |
": warning: comparisons like X<=Y<=Z do not have their mathematical meaning$" |
29 |
": warning: null argument where non-null required " |
30 |
) |
31 |
- [[ $reset_debug = 1 ]] && set -x |
32 |
abort="no" |
33 |
i=0 |
34 |
while [[ -n ${msgs[${i}]} ]] ; do |
35 |
@@ -440,6 +439,7 @@ |
36 |
abort="yes" |
37 |
fi |
38 |
done |
39 |
+ [[ $reset_debug = 1 ]] && set -x |
40 |
f=$(cat "${PORTAGE_LOG_FILE}" | \ |
41 |
"$PORTAGE_BIN_PATH"/check-implicit-pointer-usage.py) |
42 |
if [[ -n ${f} ]] ; then |