MarvellEmbeddedProcessors / mv-ddr-marvell

20 stars 23 forks source link

Fix build with newer toolchains #1

Closed berolinux closed 6 years ago

berolinux commented 7 years ago

Newer toolchains (gcc 7.2 and clang 5.0) issue a warning about ambiguous else statements, triggered by code built with -Werror -- resulting in

mv_ddr4_mpr_pda_if.c: In function ‘mv_ddr4_pda_pattern_odpg_load’: mv_ddr4_mpr_pda_if.c:708:5: error: suggest explicit braces to avoid ambiguous ‘else’ [-Werror=parentheses]

Signed-off-by: Bernhard Rosenkränzer bero@lindev.ch

berolinux commented 6 years ago

This was fixed in commit 65b9c4d8b9cea09fe4e05d7c6f32d1f90ea788b5