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:
Ahmed Hesham
2025-08-07 15:12:27 +01:00
committed by GitHub
parent e2580bded2
commit ac63117231
4 changed files with 7 additions and 4 deletions

View File

@@ -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],