Hi Stewart, > -----Original Message----- > Subject: [PATCH 3/3] xen/arm: fix unitialized use warning > > When building the hypervisor with -Og, we encounter the following error: > > arch/arm/domain_build.c: In function ‘make_cpus_node’: > arch/arm/domain_build.c:2040:12: error: ‘clock_valid’ may be used > uninitialized [-Werror=maybe-uninitialized] > 2040 | if ( clock_valid ) > | ^ > arch/arm/domain_build.c:1947:10: note: ‘clock_valid’ was declared here > 1947 | bool clock_valid; > | ^~~~~~~~~~~ > cc1: all warnings being treated as errors > > Fix it by initializing the variable. > > Signed-off-by: Stewart Hildebrand <[email protected]>
Reviewed-by: Henry Wang <[email protected]> Kind regards, Henry
