diff options
| author | Tom Rini <[email protected]> | 2012-08-07 09:58:34 -0700 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2012-08-07 20:52:42 +0200 |
| commit | 94c1a20fe78c0d3ba44ee8674b91163dddad0d80 (patch) | |
| tree | d110db075f8ab89403f7c7b06ec74e91a91b764c /include/stdio_dev.h | |
| parent | 56249fea3d5e32cddcd9160e51ec93a9c4327c6b (diff) | |
ext2fs: fix warning: 'blocknxt' may be used uninitialized with gcc 4.2
The above warning was introduced originally in 436da3c "ext2load:
increase read speed" and fixed for newer toolchains in b803273 "ext2fs:
fix warning: 'blocknxt' may be used uninitialized". This change did not
fix the warning with gcc 4.2, as found in ELDK 4.2.
If we rework the while loop to initalize blocknxt before entering the
warning really goes away. Tested on am335x with an approx 7mb file and
crc32 in U-Boot befor and after this change.
Cc: Wolfgang Denk <[email protected]>
Cc: Eric Nelson <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Andreas Bießmann <[email protected]>
Cc: Reinhard Arlt <[email protected]>
Cc: Kim Phillips <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/stdio_dev.h')
0 files changed, 0 insertions, 0 deletions
