mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix compiler warnings in test_vulkan (#2474)
Use the correct print format specifiers for `uint64_t` and fix loop index type to address sign warning. Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "harness/testHarness.h"
|
||||
#include "harness/typeWrappers.h"
|
||||
#include "harness/deviceInfo.h"
|
||||
@@ -236,7 +237,7 @@ struct ConsistencyExternalImageTest : public VulkanTestBase
|
||||
log_info("Memory type index: %u\n", (uint32_t)memoryTypeList[0]);
|
||||
log_info("Memory type property: %d\n",
|
||||
memoryTypeList[0].getMemoryTypeProperty());
|
||||
log_info("Image size : %ld\n", vkImage2D.getSize());
|
||||
log_info("Image size : %" PRIu64 "\n", vkImage2D.getSize());
|
||||
|
||||
VulkanDeviceMemory* vkDeviceMem =
|
||||
new VulkanDeviceMemory(*vkDevice, vkImage2D, memoryTypeList[0],
|
||||
|
||||
Reference in New Issue
Block a user