This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

enum type mixed with another type

I'm getting a warning "enumeration type mixed with another type" with the following line of code.

typedef enum { FALSE = 0, TRUE  = !FALSE } bool;

bool bResult;
bool bAAA;
bool bBBB;

bResult = bAAA && bBBB;  // <-- warning

bResult = (bAAA == TRUE) && (bBBB == TRUE); // <-- same results

Any suggestions?

0