mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +00:00
- fixed format specifier compilation warnings
src/common/engine/serializer_internal.h:241: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat] src/common/engine/serializer_internal.h:250: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat] src/common/rendering/vulkan/system/vk_device.cpp:364:29: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] src/common/rendering/vulkan/system/vk_framebuffer.cpp:701:57: warning: format specifies type 'unsigned long long' but the argument has type 'VkDeviceSize' (aka 'unsigned long') [-Wformat]
This commit is contained in:
parent
c8557b8ab4
commit
e63f3e394c
3 changed files with 7 additions and 4 deletions
|
@ -238,7 +238,7 @@ FSerializer &SerializePointer(FSerializer &arc, const char *key, T *&value, T **
|
||||||
vv = value - base;
|
vv = value - base;
|
||||||
if (vv < 0 || vv >= count)
|
if (vv < 0 || vv >= count)
|
||||||
{
|
{
|
||||||
Printf("Trying to serialize out-of-bounds array value with key '%s', index = %lli, size = %lli\n", key, vv, count);
|
Printf("Trying to serialize out-of-bounds array value with key '%s', index = %" PRId64 ", size = %" PRId64 "\n", key, vv, count);
|
||||||
vv = -1;
|
vv = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -247,7 +247,7 @@ FSerializer &SerializePointer(FSerializer &arc, const char *key, T *&value, T **
|
||||||
value = nullptr;
|
value = nullptr;
|
||||||
else if (vv < 0 || vv >= count)
|
else if (vv < 0 || vv >= count)
|
||||||
{
|
{
|
||||||
Printf("Trying to serialize out-of-bounds array value with key '%s', index = %lli, size = %lli\n", key, vv, count);
|
Printf("Trying to serialize out-of-bounds array value with key '%s', index = %" PRId64 ", size = %" PRId64 "\n", key, vv, count);
|
||||||
value = nullptr;
|
value = nullptr;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#undef min
|
#undef min
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
@ -361,7 +362,7 @@ VkBool32 VulkanDevice::DebugCallback(VkDebugUtilsMessageSeverityFlagBitsEXT mess
|
||||||
if (callbackData->pObjects[i].pObjectName)
|
if (callbackData->pObjects[i].pObjectName)
|
||||||
{
|
{
|
||||||
FString hexname;
|
FString hexname;
|
||||||
hexname.Format("0x%llx", callbackData->pObjects[i].objectHandle);
|
hexname.Format("0x%" PRIx64, callbackData->pObjects[i].objectHandle);
|
||||||
msg.Substitute(hexname.GetChars(), callbackData->pObjects[i].pObjectName);
|
msg.Substitute(hexname.GetChars(), callbackData->pObjects[i].pObjectName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "volk/volk.h"
|
#include "volk/volk.h"
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include "v_video.h"
|
#include "v_video.h"
|
||||||
#include "m_png.h"
|
#include "m_png.h"
|
||||||
#include "templates.h"
|
#include "templates.h"
|
||||||
|
@ -698,7 +700,7 @@ void VulkanFrameBuffer::PrintStartupLog()
|
||||||
const auto &limits = props.limits;
|
const auto &limits = props.limits;
|
||||||
Printf("Max. texture size: %d\n", limits.maxImageDimension2D);
|
Printf("Max. texture size: %d\n", limits.maxImageDimension2D);
|
||||||
Printf("Max. uniform buffer range: %d\n", limits.maxUniformBufferRange);
|
Printf("Max. uniform buffer range: %d\n", limits.maxUniformBufferRange);
|
||||||
Printf("Min. uniform buffer offset alignment: %llu\n", limits.minUniformBufferOffsetAlignment);
|
Printf("Min. uniform buffer offset alignment: %" PRIu64 "\n", limits.minUniformBufferOffsetAlignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VulkanFrameBuffer::CreateFanToTrisIndexBuffer()
|
void VulkanFrameBuffer::CreateFanToTrisIndexBuffer()
|
||||||
|
|
Loading…
Reference in a new issue