[Mesa-dev] [PATCH 2/9] genxml: Silence about a billion unused parameter warnings
Jason Ekstrand
jason at jlekstrand.net
Fri Jun 16 22:56:16 UTC 2017
On Fri, Jun 16, 2017 at 2:01 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> src/intel/genxml/gen_pack_header.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/genxml/gen_pack_header.py
> b/src/intel/genxml/gen_pack_header.py
> index fefbc9a..fb30119 100644
> --- a/src/intel/genxml/gen_pack_header.py
> +++ b/src/intel/genxml/gen_pack_header.py
> @@ -578,7 +578,7 @@ class Parser(object):
>
> def emit_pack_function(self, name, group):
> name = self.gen_prefix(name)
> - print("static inline void\n%s_pack(__gen_user_data *data, void *
> restrict dst,\n%sconst struct %s * restrict values)\n{" %
> + print("static inline void\n%s_pack(__attribute__((unused))
> __gen_user_data *data, __attribute__((unused)) void * restrict
> dst,\n%s__attribute__((unused)) const struct %s * restrict values)\n{" %
>
That line is getting long... Dylan, what's the best way to break it?
> (name, ' ' * (len(name) + 6), name))
>
> (dwords, length) = group.collect_dwords_and_length()
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170616/3cc1ccf2/attachment.html>
More information about the mesa-dev
mailing list