summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-08 01:44:24 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-08 01:44:24 +0000
commitd21b3782acbbf37de35c357698afd70b8e7212e6 (patch)
treeb06140a08f70305cfe9d4be8a5ef193600523127 /bin/misc-functions.sh
parent3ef16d1582246d5da74cdae89aa5d46a8b7005c2 (diff)
downloadportage-d21b3782acbbf37de35c357698afd70b8e7212e6.tar.gz
portage-d21b3782acbbf37de35c357698afd70b8e7212e6.tar.bz2
portage-d21b3782acbbf37de35c357698afd70b8e7212e6.zip
In debug mode, avoid showing gcc QA search strings in the trace, so they won't
trigger false positives. Thanks to Amit Dor-Shifer <amitds@oversi.com> for reporting. svn path=/main/trunk/; revision=14214
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 8a38da858..eee66eaa1 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -408,6 +408,9 @@ install_qa_check() {
# Evaluate misc gcc warnings
if [[ -n ${PORTAGE_LOG_FILE} && -r ${PORTAGE_LOG_FILE} ]] ; then
+ # In debug mode, this variable definition will produce
+ # a false positive if it's shown in the trace.
+ [[ $PORTAGE_DEBUG = 1 ]] && set +x
local m msgs=(
": warning: dereferencing type-punned pointer will break strict-aliasing rules$"
": warning: dereferencing pointer .* does break strict-aliasing rules$"
@@ -417,6 +420,7 @@ install_qa_check() {
": warning: comparisons like X<=Y<=Z do not have their mathematical meaning$"
": warning: null argument where non-null required "
)
+ [[ $PORTAGE_DEBUG = 1 ]] && set -x
abort="no"
i=0
while [[ -n ${msgs[${i}]} ]] ; do