Mesa (master): draw: Add inline keyword to inline function.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Jun 29 06:31:47 PDT 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Jun 29 14:30:44 2010 +0100

draw: Add inline keyword to inline function.

Otherwise gcc will warn about unusued functions.

---

 src/gallium/auxiliary/draw/draw_llvm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_llvm.h b/src/gallium/auxiliary/draw/draw_llvm.h
index c98d7fb..1ef009b 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.h
+++ b/src/gallium/auxiliary/draw/draw_llvm.h
@@ -193,7 +193,7 @@ struct draw_llvm {
    LLVMTypeRef vb_ptr_type;
 };
 
-static struct llvm_vertex_shader *
+static INLINE struct llvm_vertex_shader *
 llvm_vertex_shader(struct draw_vertex_shader *vs)
 {
    return (struct llvm_vertex_shader *)vs;



More information about the mesa-commit mailing list