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

warning: #191-D: type qualifier is meaningless on cast type

I have this line of code:
pcTraceBuffer = ( volatile signed portCHAR * volatile )pcBuffer;

it compiled with the previous version without warning.
with the new Keil/Realview tool, I got a warning message:
warning: #191-D: type qualifier is meaningless on cast typening:

I would like to know what it means.
I look for the information on this message but found none.
Please help

Parents
  • It means exactly what it says: the rightmost volatile type qualifier is meaningless i.e. it has no effect. Ignore the warning or remove the keyword. If you'd like to know more, a decent book on C will give you answers.

    Regards,
    - mike

Reply
  • It means exactly what it says: the rightmost volatile type qualifier is meaningless i.e. it has no effect. Ignore the warning or remove the keyword. If you'd like to know more, a decent book on C will give you answers.

    Regards,
    - mike

Children
No data