From 658d994473dcfbff140e43178253bbcf438af797 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 18 Oct 2011 18:59:13 -0600 Subject: [PATCH] mesa: use format string in _mesa_error() call to silence warning (cherry picked from commit 5485192fc81ab40ffdbfb1c74346d887c3c03231) --- src/mesa/main/dlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index eb314bee677..6301da38c9e 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -4529,7 +4529,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);