aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2024-04-21 18:48:07 -0700
committerVinson Lee <vlee@freedesktop.org>2024-04-26 23:43:21 -0700
commit7aa7bc1b01d57b4b091c4fc82a94a6ff47f38ebf (patch)
treee16cbab468ad728c5358139e1387e4c1d078b715
parent3d3a20a2bdcff4737825665e6a61784fd5c881e5 (diff)
downloadpiglit-main.tar.gz
arb_draw_buffers_blend: Fix deprecated-non-prototype warningsmain
tests/spec/arb_draw_buffers_blend/state_set_get.c:91:12: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | glEndList(list); | ^ tests/spec/arb_draw_buffers_blend/state_set_get.c:136:12: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | glEndList(list); | ^ Fixes: 0fb057c06ddc ("Add new arb_draw_buffers_blend-state_set_get test") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/906>
-rw-r--r--tests/spec/arb_draw_buffers_blend/state_set_get.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/arb_draw_buffers_blend/state_set_get.c b/tests/spec/arb_draw_buffers_blend/state_set_get.c
index a8e2f2630..280994e80 100644
--- a/tests/spec/arb_draw_buffers_blend/state_set_get.c
+++ b/tests/spec/arb_draw_buffers_blend/state_set_get.c
@@ -88,7 +88,7 @@ set_state(int buffer,
}
if (test_dlist) {
- glEndList(list);
+ glEndList();
glCallList(list);
glDeleteLists(list, 1);
}
@@ -133,7 +133,7 @@ set_state_all_buffers(GLenum srcRGB, GLenum srcA,
}
if (test_dlist) {
- glEndList(list);
+ glEndList();
glCallList(list);
glDeleteLists(list, 1);
}