]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix harmless unused variable warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Sep 2009 08:44:25 +0000 (08:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Sep 2009 08:44:25 +0000 (08:44 +0000)
The value of wxColour::Alpha() was assigned to a temporary variable which
wasn't used afterwards and Mac OS g++ warned about it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/graphics/colour.cpp

index 6f661b12b43ed7a0c023f35db04fc332bf843565..0269e6bc1b37b9a41ff7a788a5747606b4278a92 100644 (file)
@@ -55,7 +55,7 @@ std::ostream& operator<<(std::ostream& os, const wxColour& c)
 
     if ( const unsigned char a = c.Alpha() )
     {
-        os << ", " << ColourChannel(c.Alpha());
+        os << ", " << ColourChannel(a);
     }
 
     os << ")";