common/cmd_flash.c: Fix GCC 4.6 build warnings
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:04 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:47:40 +0000 (22:47 +0100)
commit4f5710f740adf8af827427ecd7d3df8619849a6b
treef819858ac735ee1813d495fddfa8b081468cf947
parentecc6aa8cf3ca7de0c67f21291fa3f5858934c816
common/cmd_flash.c: Fix GCC 4.6 build warnings

Fix:
cmd_flash.c:355:32: warning: 'info' may be used uninitialized in this
function [-Wuninitialized]
cmd_flash.c:354:10: warning: 'sect_first' may be used uninitialized in
this function [-Wuninitialized]
cmd_flash.c:354:10: warning: 'sect_last' may be used uninitialized in
this function [-Wuninitialized]
cmd_flash.c: In function 'do_protect':
cmd_flash.c:540:9: warning: 'info' may be used uninitialized in this
function [-Wuninitialized]
cmd_flash.c:538:9: warning: 'sect_first' may be used uninitialized in
this function [-Wuninitialized]
cmd_flash.c:538:9: warning: 'sect_last' may be used uninitialized in
this function [-Wuninitialized]

Signed-off-by: Wolfgang Denk <wd@denx.de>
common/cmd_flash.c