Module: Mesa Branch: staging/23.0 Commit: 46264454adb3b0f58af1fd364291af2b42dbfcdb URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=46264454adb3b0f58af1fd364291af2b42dbfcdb
Author: Michel Zou <[email protected]> Date: Thu Apr 20 19:10:56 2023 +0200 mesa/draw: fix -Wformat warning fixes: 5791826b cc @pepp @mareko Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22605> (cherry picked from commit a1098a1e45f4ad74d90261beb6e2594953f25540) --- .pick_status.json | 2 +- src/mesa/main/draw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 378318c54ec..d30d80880a5 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2394,7 +2394,7 @@ "description": "mesa/draw: fix -Wformat warning", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "5791826b1ac7085c8acf056abc279e66ca64eb55", "notes": null diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c index 2177f2bdd9a..84951ff17e5 100644 --- a/src/mesa/main/draw.c +++ b/src/mesa/main/draw.c @@ -1641,7 +1641,7 @@ _mesa_validated_drawrangeelements(struct gl_context *ctx, GLenum mode, _mesa_warning(ctx, "Invalid indices offset 0x%" PRIxPTR " (indices buffer size is %ld bytes)" " or unallocated buffer (%u). Draw skipped.", - start, index_bo->Size, !!index_bo->buffer); + start, (long)index_bo->Size, !!index_bo->buffer); return; }
