[U-Boot] pci_rom.c: Fix may be used uninitialized warning
Tom Rini
trini at konsulko.com
Tue Jan 19 19:08:32 CET 2016
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 <trini at konsulko.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20160119/a1e7c8e6/attachment.sig>
More information about the U-Boot
mailing list