Mesa (main): lavapipe: fix string-plus-int warning
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Dec 23 17:15:47 UTC 2021
Module: Mesa
Branch: main
Commit: 107c63aee883c4f23474d886d28719c10be65e1e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=107c63aee883c4f23474d886d28719c10be65e1e
Author: Thomas H.P. Andersen <phomes at gmail.com>
Date: Wed Dec 22 11:29:40 2021 +0100
lavapipe: fix string-plus-int warning
Fixes a warning with clang
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289>
---
src/gallium/frontends/lavapipe/lvp_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c
index 502e8dda53e..2d3ece2650a 100644
--- a/src/gallium/frontends/lavapipe/lvp_device.c
+++ b/src/gallium/frontends/lavapipe/lvp_device.c
@@ -682,7 +682,7 @@ void
lvp_device_get_cache_uuid(void *uuid)
{
memset(uuid, 0, VK_UUID_SIZE);
- snprintf(uuid, VK_UUID_SIZE, "val-%s", MESA_GIT_SHA1 + 4);
+ snprintf(uuid, VK_UUID_SIZE, "val-%s", &MESA_GIT_SHA1[4]);
}
VKAPI_ATTR void VKAPI_CALL lvp_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
More information about the mesa-commit
mailing list