[Mesa-dev] [PATCH] isl: annotate isl_get_interleaved_msaa_px_size_sa return value as const

Emil Velikov emil.l.velikov at gmail.com
Tue Feb 7 18:42:51 UTC 2017

On 7 February 2017 at 16:11, Jason Ekstrand <jason at jlekstrand.net> wrote:
> How does it make any sense to declare const on the return type of a function
> that doesn't return a pointer???  It's not returning by reference, it's
> returning a copy so const on the return type of the function means nothing.
Seems like you missed a similar nitpick in commit
Dropping the const from get_px_size_sa() or adding one here will both
make the compiler happy.

Let me know what you prefer - I'm fine either way.

P.S. Can I interest you in using plain text emails ;-)

More information about the mesa-dev mailing list