Fix some release build warnings
authorPyry Haulos <phaulos@google.com>
Thu, 12 May 2016 22:17:02 +0000 (15:17 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 12 May 2016 22:17:02 +0000 (15:17 -0700)
external/vulkancts/framework/vulkan/vkNullDriver.cpp
external/vulkancts/modules/vulkan/tessellation/vktTessellationInvarianceTests.cpp
external/vulkancts/modules/vulkan/tessellation/vktTessellationUtil.cpp

index 9822b53..1beae03 100644 (file)
@@ -366,6 +366,7 @@ void DescriptorPool::free (VkDescriptorSet set)
        DescriptorSet* const    impl    = reinterpret_cast<DescriptorSet*>((deUintptr)set.getInternal());
 
        DE_ASSERT(m_flags & VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT);
+       DE_UNREF(m_flags);
 
        delete impl;
 
index 3bf0506..4479d0a 100644 (file)
@@ -1471,6 +1471,7 @@ tcu::TestStatus InvarianceTestInstance::iterate (void)
 
                                        // If this fails then we didn't read all vertices from shader and test must be changed to allow more.
                                        DE_ASSERT(numPrimitiveVertices * numPrimitives <= resultBufferMaxVertices);
+                                       DE_UNREF(numPrimitiveVertices);
 
                                        tcu::TestLog& log = m_context.getTestContext().getLog();
 
index 087d852..58f6c96 100644 (file)
@@ -760,7 +760,7 @@ float getClampedTessLevel (const SpacingMode mode, const float tessLevel)
 
 int getRoundedTessLevel (const SpacingMode mode, const float clampedTessLevel)
 {
-       static const int MINIMUM_MAX_TESS_GEN_LEVEL = 64;       //!< Minimum maxTessellationGenerationLevel defined by the spec.
+       static const int minimumMaxTessGenLevel = 64;   //!< Minimum maxTessellationGenerationLevel defined by the spec.
 
        int result = (int)deFloatCeil(clampedTessLevel);
 
@@ -772,7 +772,8 @@ int getRoundedTessLevel (const SpacingMode mode, const float clampedTessLevel)
                default:
                        DE_ASSERT(false);
        }
-       DE_ASSERT(de::inRange<int>(result, 1, MINIMUM_MAX_TESS_GEN_LEVEL));
+       DE_ASSERT(de::inRange<int>(result, 1, minimumMaxTessGenLevel));
+       DE_UNREF(minimumMaxTessGenLevel);
 
        return result;
 }