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

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 18 18:14:27 PDT 2011


Module: Mesa
Branch: master
Commit: 5485192fc81ab40ffdbfb1c74346d887c3c03231
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5485192fc81ab40ffdbfb1c74346d887c3c03231

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

---

 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 567629d..ceb75c4 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);



More information about the mesa-commit mailing list