projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d5c820
)
intel: Silence several "warning: unused parameter"
author
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 26 Aug 2011 17:24:36 +0000
(10:24 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 9 Sep 2011 19:01:51 +0000
(12:01 -0700)
Trivially silence the compiler by adding '(void) foo;' for each unused
parameter. These parameters could not be removed. They are part of
interface used elsewhere in Mesa, and some of the other customers
actually use these parameters.
src/mesa/drivers/dri/intel/intel_tex.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_tex.c
b/src/mesa/drivers/dri/intel/intel_tex.c
index 4faa01a8627ff6c2280efa3ba05ae766f379484b..f97952348d4b89fed582440a8b3c6b2e353d4137 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_tex.c
+++ b/
src/mesa/drivers/dri/intel/intel_tex.c
@@
-24,6
+24,8
@@
intelNewTextureObject(struct gl_context * ctx, GLuint name, GLenum target)
{
struct intel_texture_object *obj = CALLOC_STRUCT(intel_texture_object);
+ (void) ctx;
+
DBG("%s\n", __FUNCTION__);
_mesa_initialize_texture_object(&obj->base, name, target);