[U-Boot-Users] QE UEC driver compiler warnings...

Dear Dave,
the QE UEC driver (in the top-of-tree version as of now) produces a few compiler warnings:
qe.c: In function 'qe_upload_firmware': qe.c:390: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness uec.c: In function 'uec_initialize': uec.c:1236: warning: 'uec_info' may be used uninitialized in this function
Please fix. Thanks.
Best regards,
Wolfgang Denk

qe.c: In function 'qe_upload_firmware': qe.c:390: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness uec.c: In function 'uec_initialize': uec.c:1236: warning: 'uec_info' may be used uninitialized in this function
Please fix. Thanks.
It's done, the patch is sent. please apply it directly.
Thanks, Dave

Wolfgang Denk wrote:
Dear Dave,
the QE UEC driver (in the top-of-tree version as of now) produces a few compiler warnings:
qe.c: In function 'qe_upload_firmware': qe.c:390: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness
That's odd, I've never seen that. I'll post a patch to fix it. FYI, this is not in the QE UEC driver, but in the QE library.

In message 478CDF1A.3010207@freescale.com you wrote:
Wolfgang Denk wrote:
Dear Dave,
the QE UEC driver (in the top-of-tree version as of now) produces a few compiler warnings:
qe.c: In function 'qe_upload_firmware': qe.c:390: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness
That's odd, I've never seen that. I'll post a patch to fix it. FYI, this is not in the QE UEC driver, but in the QE library.
Guess you're using older compilers, then. Try using GCC-4.2 if you want to start some bigger cleanup now... ;-)
Best regards,
Wolfgang Denk
participants (3)
-
Dave Liu
-
Timur Tabi
-
Wolfgang Denk