From de29964f7c4a677e5cbc36a441441ccb0bec390b Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Fri, 15 May 2020 19:29:22 -0700 Subject: [PATCH] [platform][zynq] tweak to build at lower optimization levels For some reason this particular sequence isn't picked up as a warning unless you're compiling with -O1 or below. --- platform/zynq/clocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/zynq/clocks.c b/platform/zynq/clocks.c index 4225d75e..be38f0a3 100644 --- a/platform/zynq/clocks.c +++ b/platform/zynq/clocks.c @@ -304,7 +304,7 @@ uint32_t zynq_get_clock(enum zynq_periph periph) { } // get the source clock - uint32_t srcclk; + uint32_t srcclk = 0; switch (BITS_SHIFT(*REG32(clk_reg), 5, 4)) { case 0: case 1: