qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Use identical prototype for tcg_out_vec_op and tcg_out_op fu


From: Richard Henderson
Subject: Re: [PATCH] Use identical prototype for tcg_out_vec_op and tcg_out_op function
Date: Wed, 17 Mar 2021 07:29:58 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/12/21 6:14 AM, mrezanin@redhat.com wrote:
From: Miroslav Rezanina<mrezanin@redhat.com>

There are two different versions of prototype for tcg_out_op and
tcg_out_vec_op functions:

1) using const TCGArg *args and const int *const_args arguments
2) using const TCGArg args[TCG_MAX_OP_ARGS] and const int 
const_args[TCG_MAX_OP_ARGS]
    aguments.

This duality cause warning on GCC 11 and prevent build using --enable-werror.

As second version provides more information, unify functions prototypes to
this variant.

Signed-off-by: Miroslav Rezanina<mrezanin@redhat.com>

--
Note: These changes were send to mailing list before:

- First sending by me using first variant
- Several iterations sended by Philippe Mathieu-Daudé with additional fixes
   that were not accepted.
---

Queued.

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]