AnsweredAssumed Answered

#pragma MESSAGE WARNING DISABLE C5909 for a few lines.

Question asked by ssinfod on Mar 4, 2015
Latest reply on Mar 5, 2015 by ZhangJennie

Hello,

 

I am using CodeWarrior 5.1 for HCS12.

 

I want to disable a warning message (C5909) for a few lines and then re-enable it.

 

I know that I must use this line to disable it.

#pragma MESSAGE WARNING DISABLE C5909

 

However, I don't know how to re-enable it.

 

        #pragma MESSAGE WARNING DISABLE C5909

        while(*pbuf++ = *s++);

        #pragma MESSAGE WARNING ENABLE C5909       

 

I tried with ENABLE instead of DISABLE but that is not working.

 

Any idea how to perform this ?

Thanks

ssinfod

Outcomes