Skip to contentSkip to conversation

LZMA warnings in cmd_bootm

U-Boot Mike Frysinger 2 participants 3 messages May 19, 2009 – May 20, 2009

lore
Share & tools
lore
#0 lore raw

the LZMA code that was added to cmd_bootm causes a warning:
cmd_bootm.c: In function 'bootm_load_os':
cmd_bootm.c:394: warning: passing argument 2 of 'lzmaBuffToBuffDecompress' from incompatible pointer type

this is because the code passes in a pointer to unc_len which is an unsigned int, but the decompress routine expects a pointer to a size_t. could you take a look ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090519/16759729/attachment.pgp

#1 lore raw

Dear Mike Frysinger,

Quoted 9 lines · In message <[email protected]> you wrote:

the LZMA code that was added to cmd_bootm causes a warning:
cmd_bootm.c: In function 'bootm_load_os':
cmd_bootm.c:394: warning: passing argument 2 of 'lzmaBuffToBuffDecompress'> from incompatible pointer type

this is because the code passes in a pointer to unc_len which is an unsigne> d int, but the decompress routine expects a pointer to a size_t. could you t> ake a look ?

For which board configuration / tool chain do you see such a warning?

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Our business is run on trust.  We trust you will pay in advance.
#2 lore raw
Quoted 11 lines · On Wednesday 20 May 2009 16:45:13 Wolfgang Denk wrote:
Quoted 8 lines · In message Mike Frysinger

the LZMA code that was added to cmd_bootm causes a warning:
cmd_bootm.c: In function 'bootm_load_os':
cmd_bootm.c:394: warning: passing argument 2 of 'lzmaBuffToBuffDecompress' from incompatible pointer type

this is because the code passes in a pointer to unc_len which is an unsigned int, but the decompress routine expects a pointer to a size_t.
could you take a look ?

For which board configuration / tool chain do you see such a warning?

every Blackfin board
-mike