Dave Miller

CW 56F8323 - Illegal Implicit converstaion Error

Discussion created by Dave Miller on Jul 27, 2007
Latest reply on Jul 31, 2007 by Dave Miller

I have some basic code I re-use for FIFO's. My project uses both the 8-bit MC9S08AW16 and the 56F8323 processors.

When I comple the same exact files on the 8-bit version of Codewarrior (6.0) I do not get any errors. But when I compile on the 56F800 compiler I get the following error:

Error : illegal implicit conversion from 'struct QUE **' to 'struct QUE *'
que.c line 92 return MAX_QUE_SIZE - 1 - Q_InUseCnt(&local);
This is the actual function call:
unsigned char Q_FreeCnt(que *local)
    return MAX_QUE_SIZE - 1 - Q_InUseCnt(&local);

What I would like to know is why it compiles in one version but causes an error in another version? Is there a way to fix this?

Alban Edit: FSL Part Number must figure in Message Subject line.

Message Edited by Alban on 2007-07-28 12:30 AM