From: Lukasz Majewski Date: Mon, 19 Dec 2011 16:00:21 +0100 Subject: [U-Boot] [PATCH] board/samsung/universal_c210/universal.c: Fix build warning In-Reply-To: <1324304404-24044-1-git-send-email-agust@denx.de> References: <1324304404-24044-1-git-send-email-agust@denx.de> Message-ID: <20111219160021.2a92ed9a@lmajewski.digital.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Fix: > universal.c: In function 's5pc210_phy_control': > universal.c:273:7: warning: 'ret' may be used uninitialized > in this function [-Wuninitialized] > > Signed-off-by: Anatolij Gustschin > Cc: Lukasz Majewski > Cc: Minkyu Kang > --- > board/samsung/universal_c210/universal.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/board/samsung/universal_c210/universal.c > b/board/samsung/universal_c210/universal.c index 8393e4f..d0ff834 > 100644 --- a/board/samsung/universal_c210/universal.c > +++ b/board/samsung/universal_c210/universal.c > @@ -260,7 +260,7 @@ int board_mmc_init(bd_t *bis) > #ifdef CONFIG_USB_GADGET > static int s5pc210_phy_control(int on) > { > - int ret; > + int ret = 0; > struct pmic *p = get_pmic(); > > if (pmic_probe(p)) Hi Anatolij, Thank you for pointing me out about the new compiler version. I've just realized, that I'm still using: gcc version 4.4.1 (Sourcery G++ Lite 2009q3-68) My question is about the GCC 4.6 version. Is it a Codesourcery (Mentor Graphisc), ptxdist Oselas Toolchain, buildroot (uClibc), linaro, ELDK or a vanilla GCC 4.6 build from source with custom paramters? -- Best regards, Lukasz Majewski Samsung Poland R&D Center Platform Group