[Mesa-dev] [PATCH 2/3] st/mesa: fix st_NewPerfMonitor() declaration
Ian Romanick
idr at freedesktop.org
Tue May 5 15:00:22 PDT 2015
On 05/05/2015 02:50 PM, Brian Paul wrote:
> Was missing the context parameter. Fixes MSVC warning.
Does this then result in a GCC warning about unused parameters?
> ---
> src/mesa/state_tracker/st_cb_perfmon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_cb_perfmon.c b/src/mesa/state_tracker/st_cb_perfmon.c
> index 4bde679..c8d4490 100644
> --- a/src/mesa/state_tracker/st_cb_perfmon.c
> +++ b/src/mesa/state_tracker/st_cb_perfmon.c
> @@ -149,7 +149,7 @@ reset_perf_monitor(struct st_perf_monitor_object *stm,
> }
>
> static struct gl_perf_monitor_object *
> -st_NewPerfMonitor()
> +st_NewPerfMonitor(struct gl_context *ctx)
> {
> struct st_perf_monitor_object *stq = ST_CALLOC_STRUCT(st_perf_monitor_object);
> if (stq) {
>
More information about the mesa-dev
mailing list