From: Zac Medico Date: Tue, 8 Sep 2009 01:44:24 +0000 (-0000) Subject: In debug mode, avoid showing gcc QA search strings in the trace, so they won't X-Git-Tag: v2.2_rc41~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d21b3782acbbf37de35c357698afd70b8e7212e6;p=portage.git 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 --- 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