[PATCH 1/1] board: gateworks: gw_ventana: fix building with GCC 12.2

Tom Rini trini at konsulko.com
Mon Oct 24 14:22:42 CEST 2022


On Wed, Oct 12, 2022 at 06:59:27PM +0200, Heinrich Schuchardt wrote:

> Building with GCC 12.2 results in an error
> 
>     board/gateworks/gw_ventana/gw_ventana.c:636:68: error: the comparison
>     will always evaluate as 'true' for the address of 'pwm_padmux' will
>     never be NULL [-Werror=address]
>       636 |                 } else if (hwconfig_subarg_cmp(arg, "mode", "pwm") &&
>           |                                                                    ^~
> 
> Remove the superfluous check.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Reviewed-By: Tim Harvey <tharvey at gateworks.com>
> Reviewed-by: Fabio Estevam <festevam at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221024/95f1bfbe/attachment.sig>


More information about the U-Boot mailing list