projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
076d609
)
swrast: Silence many "warning: unused parameter ‘ctx’"
author
Ian Romanick
<ian.d.romanick@intel.com>
Thu, 25 Aug 2011 23:59:02 +0000
(16:59 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 9 Sep 2011 19:01:52 +0000
(12:01 -0700)
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
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_spantemp.h
b/src/mesa/swrast/s_spantemp.h
index 8a9485085efa1b955e52d83ff477941f903071d6..517c2eb3fbeb37eb328a2b9aa7dce7f94de9e37c 100644
(file)
--- 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;
}