From 5485192fc81ab40ffdbfb1c74346d887c3c03231 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 18 Oct 2011 18:59:13 -0600 Subject: mesa: use format string in _mesa_error() call to silence warning --- src/mesa/main/dlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 567629df35c..ceb75c4b3de 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -4519,7 +4519,7 @@ static GLvoid *copy_data(const GLvoid *data, GLsizei size, const char *func) image = malloc(size); if (!image) { - _mesa_error(ctx, GL_OUT_OF_MEMORY, func); + _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func); return NULL; } memcpy(image, data, size); -- cgit v1.2.3