[PATCH 1/1] board: gateworks: gw_ventana: fix building with GCC 12.2
Fabio Estevam
festevam at gmail.com
Mon Oct 17 21:29:15 CEST 2022
On Wed, Oct 12, 2022 at 1:59 PM Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> 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: Fabio Estevam <festevam at denx.de>
More information about the U-Boot
mailing list