Rename Interval::warning's parameters to avoid shadowing
authorChris Forbes <chrisforbes@google.com>
Tue, 27 Feb 2018 15:54:49 +0000 (07:54 -0800)
committerChris Forbes <chrisforbes@google.com>
Tue, 27 Feb 2018 15:54:49 +0000 (07:54 -0800)
GCC 4.9 warns about this, causing build failures with -Werror

Change-Id: Ic3579de84f4b3f1f231240910dbd15dafe90c6bc
Components: Framework

framework/common/tcuInterval.hpp

index bbbdf3e..57025ac 100644 (file)
@@ -99,10 +99,10 @@ public:
        bool            isFinite                (void) const { return m_lo > -TCU_INFINITY && m_hi < TCU_INFINITY; }
        bool            isOrdinary              (void) const { return !hasNaN() && !empty() && isFinite(); }
 
-       void            warning                 (double lo, double hi)
+       void            warning                 (double lo_, double hi_)
        {
-               m_warningLo = lo;
-               m_warningHi = hi;
+               m_warningLo = lo_;
+               m_warningHi = hi_;
        }
 
        Interval        operator|               (const Interval& other) const