Mesa (master): swrast: Silence many "warning: =?UTF-8?Q?=20unused=20parameter=20=E2=80=98?==?UTF-8?Q?ctx=E2=80=99?="

Ian Romanick idr at kemper.freedesktop.org
Fri Sep 9 19:20:30 UTC 2011


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu Aug 25 16:59:02 2011 -0700

swrast: Silence many "warning: unused parameter ‘ctx’"

Not all drivers use ctx in LOCAL_VARS, so '(void) ctx;' is added to
all the function templates to make GCC happy.

---

 src/mesa/swrast/s_spantemp.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/mesa/swrast/s_spantemp.h b/src/mesa/swrast/s_spantemp.h
index 8a94850..517c2eb 100644
--- a/src/mesa/swrast/s_spantemp.h
+++ b/src/mesa/swrast/s_spantemp.h
@@ -65,6 +65,7 @@ NAME(get_row)( struct gl_context *ctx, struct gl_renderbuffer *rb,
       INC_PIXEL_PTR(pixel);
    }
    (void) rb;
+   (void) ctx;
 }
 
 
@@ -82,6 +83,7 @@ NAME(get_values)( struct gl_context *ctx, struct gl_renderbuffer *rb,
       FETCH_PIXEL(dest[i], pixel);
    }
    (void) rb;
+   (void) ctx;
 }
 
 
@@ -111,6 +113,7 @@ NAME(put_row)( struct gl_context *ctx, struct gl_renderbuffer *rb,
       }
    }
    (void) rb;
+   (void) ctx;
 }
 
 
@@ -136,6 +139,7 @@ NAME(put_row_rgb)( struct gl_context *ctx, struct gl_renderbuffer *rb,
       INC_PIXEL_PTR(pixel);
    }
    (void) rb;
+   (void) ctx;
 }
 
 
@@ -165,6 +169,7 @@ NAME(put_mono_row)( struct gl_context *ctx, struct gl_renderbuffer *rb,
       }
    }
    (void) rb;
+   (void) ctx;
 }
 
 
@@ -186,6 +191,7 @@ NAME(put_values)( struct gl_context *ctx, struct gl_renderbuffer *rb,
       }
    }
    (void) rb;
+   (void) ctx;
 }
 
 
@@ -207,6 +213,7 @@ NAME(put_mono_values)( struct gl_context *ctx, struct gl_renderbuffer *rb,
       }
    }
    (void) rb;
+   (void) ctx;
 }
 
 




More information about the mesa-commit mailing list