Mesa (7.11): mesa: use format string in _mesa_error() call to silence warning

Henri Verbeet hverbeet at kemper.freedesktop.org
Mon Nov 21 19:06:32 UTC 2011


Module: Mesa
Branch: 7.11
Commit: 658d994473dcfbff140e43178253bbcf438af797
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=658d994473dcfbff140e43178253bbcf438af797

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Oct 18 18:59:13 2011 -0600

mesa: use format string in _mesa_error() call to silence warning
(cherry picked from commit 5485192fc81ab40ffdbfb1c74346d887c3c03231)

---

 src/mesa/main/dlist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index eb314be..6301da3 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);




More information about the mesa-commit mailing list