qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] target/hexagon: suppress unused variable warning


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] target/hexagon: suppress unused variable warning
Date: Wed, 21 Dec 2022 11:13:26 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

On 21/12/22 11:02, Alessandro Di Federico wrote:
This patch manually suppresses a warning for an unused variable
(yynerrs) emitted by bison.

This warning has been triggered for the first time by clang 15.

This patch also disables `-Wextra`, which is not usually adopted in
QEMU. However, clang 15 triggers the warning fixed in this patch even in
absence of `-Wextra`.

Signed-off-by: Alessandro Di Federico <ale@rev.ng>
---
  target/hexagon/idef-parser/idef-parser.y | 2 ++
  target/hexagon/meson.build               | 1 -
  2 files changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Thanks!



reply via email to

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