Fix unused variable warning in Release builds.
authorJarkko Pöyry <jpoyry@google.com>
Tue, 28 Apr 2015 21:03:29 +0000 (14:03 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Tue, 28 Apr 2015 21:03:29 +0000 (14:03 -0700)
Change-Id: I7aabc6fdad54f22e072c716a7098678d845e98fe

framework/common/tcuTextureUtil.cpp

index 7df2c316af9d6d7b028955571d4dfbb3fb6c356c..df7c20c94a23711613d94d4f02285c8445f7242f 100644 (file)
@@ -1361,6 +1361,7 @@ static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const S
        IVec4                                                   result;
 
        DE_ASSERT(channelClass == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER);
+       DE_UNREF(channelClass);
 
        for (int c = 0; c < 4; c++)
        {
@@ -1388,6 +1389,7 @@ static tcu::UVec4 getTextureBorderColorUint (const TextureFormat& format, const
        UVec4                                                   result;
 
        DE_ASSERT(channelClass == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER);
+       DE_UNREF(channelClass);
 
        for (int c = 0; c < 4; c++)
        {