Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[ARM] A question about warning #144 on the code ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
Guys,

How can I fix this warning :
Code:
..\Src\user_diskio.c(113): warning:  #144-D: a value of type "DSTATUS (*)(BYTE)" cannot be used to initialize an entity of type "DSTATUS (*)(void)"
?

Or can it be ignored ?

Code:
/* Private function prototypes -----------------------------------------------*/

DSTATUS USER_initialize (BYTE pdrv);
DSTATUS USER_status (void);
DRESULT USER_read (BYTE pdrv,BYTE*, DWORD, UINT);
#if _USE_WRITE == 1
  DRESULT USER_write (BYTE pdrv,BYTE*, DWORD, UINT);
#endif /* _USE_WRITE == 1 */
#if _USE_IOCTL == 1
  DRESULT USER_ioctl (BYTE, void*);
#endif /* _USE_IOCTL == 1 */

Diskio_drvTypeDef  USER_Driver =
{
  USER_initialize,
  USER_status,
  USER_read, 
#if  _USE_WRITE
  USER_write,
#endif  /* _USE_WRITE == 1 */  
#if  _USE_IOCTL == 1
  USER_ioctl,
#endif /* _USE_IOCTL == 1 */
};

Thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top