From: Tom Rini Date: Tue, 19 Jan 2016 13:08:32 -0500 Subject: [U-Boot] pci_rom.c: Fix may be used uninitialized warning In-Reply-To: <1452955826-18834-1-git-send-email-trini@konsulko.com> References: <1452955826-18834-1-git-send-email-trini@konsulko.com> Message-ID: <20160119180832.GT3359@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jan 16, 2016 at 02:50:26PM +0000, Tom Rini wrote: > With gcc-5.x we get: > drivers/pci/pci_rom.c: In function 'dm_pci_run_vga_bios': > drivers/pci/pci_rom.c:352:3: warning: 'ram' may be used uninitialized in > this function [-Wmaybe-uninitialized] > > While unconvinced that this can happen in practice (if we malloc we set > alloced to true, it will be false otherwise), silence the compiler. > > Signed-off-by: Tom Rini > Reviewed-by: Bin Meng > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: