From d21b3782acbbf37de35c357698afd70b8e7212e6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 8 Sep 2009 01:44:24 +0000 Subject: In debug mode, avoid showing gcc QA search strings in the trace, so they won't trigger false positives. Thanks to Amit Dor-Shifer for reporting. svn path=/main/trunk/; revision=14214 --- bin/misc-functions.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/misc-functions.sh') 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 -- cgit v1.2.3-1-g7c22