This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

redboot/.../flash.c compiler warnings


Hi,

The attached patch fixes the following compiler warnings seen when
CYGOPT_REDBOOT_REDUNDANT_FIS is enabled:

.../packages/redboot/current/src/flash.c: In function
`fis_start_update_directory':
.../packages/redboot/current/src/flash.c:289: warning: initialization
makes integer from pointer without a cast
.../packages/redboot/current/src/flash.c:290: warning: initialization
makes integer from pointer without a cast
.../packages/redboot/current/src/flash.c:295: warning: assignment makes
integer from pointer without a cast
.../packages/redboot/current/src/flash.c:296: warning: assignment makes
pointer from integer without a cast
.../packages/redboot/current/src/flash.c:313: warning: format argument
is not a pointer (arg 2)
.../packages/redboot/current/src/flash.c:320: warning: format argument
is not a pointer (arg 2)
.../packages/redboot/current/src/flash.c: In function
`fis_update_directory':
.../packages/redboot/current/src/flash.c:363: warning: initialization
makes pointer from integer without a cast
.../packages/redboot/current/src/flash.c:364: warning: assignment makes
integer from pointer without a cast
.../packages/redboot/current/src/flash.c:375: warning: passing arg 1 of
`cyg_flash_program' makes integer from pointer without a cast
.../packages/redboot/current/src/flash.c:377: warning: format argument
is not a pointer (arg 2)
.../packages/redboot/current/src/flash.c: In function
`fis_erase_redundant_directory':
.../packages/redboot/current/src/flash.c:475: warning: passing arg 1 of
`cyg_flash_erase' makes integer from pointer without a cast
.../packages/redboot/current/src/flash.c:475: warning: passing arg 3 of
`cyg_flash_erase' from incompatible pointer type
.../packages/redboot/current/src/flash.c: In function `fis_init':
.../packages/redboot/current/src/flash.c:673: warning: format argument
is not a pointer (arg 2)
.../packages/redboot/current/src/flash.c:683: warning: format argument
is not a pointer (arg 2)
.../packages/redboot/current/src/flash.c: In function `do_flash_init':
.../packages/redboot/current/src/flash.c:1938: warning: passing arg 1 of
`cyg_flash_read' makes integer from pointer without a cast
.../packages/redboot/current/src/flash.c:1959: warning: assignment makes
pointer from integer without a cast
.../packages/redboot/current/src/flash.c:1960: warning: assignment makes
integer from pointer without a cast

Regards,
Rene Schipp von Branitz Nielsen 
Vitesse Semiconductors

Attachment: redboot_flash_2009_02_17.patch
Description: redboot_flash_2009_02_17.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]