[Mesa-dev] [PATCH 5/6] i965: Silence unused parameter warning

Jan Vesely jan.vesely at rutgers.edu
Sat Feb 28 10:51:08 PST 2015


On Sat, 2015-02-28 at 10:39 -0800, Carl Worth wrote:
> On Sat, Feb 28 2015, Ilia Mirkin wrote:
> > Another clean alternative is to leave the name of the variable out, i.e.
> >
> > function(struct gl_context *)
> 
> Wow. Less is more! I hadn't realized that's a solution for this, but
> it's really elegant.

and it's also illegal in C (only allowed in C++)
see 6.9.1 of c specs

jan

> 
> -Carl
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150228/508084e1/attachment.sig>


More information about the mesa-dev mailing list