Hello,
I am using CW 6.3 for HCS08 devices. I am intentionally using implicit concatenation by breaking some constant string initialisation data into a number of sections, for documentation reasons. I have therefore attempted to use a pragma to disable these warning message generated by the compiler. But so far, I have not been able to suppress the messages.
I have the following code:
#pragma MESSAGE DISABLE C3303 /* WARNING C3303: Implicit concatenation of strings */// Initial default system configuration:const byte dflt_config[] = "\0\x40" // Baud index, config byte "B0123464" // Pager default "B0123480" // Display default "\xFF"; // Initialised flag
This gives me the string data that I require, but persists in generating a warning corresponding to each of three lines. Can anyone offer any suggestions - perhaps I am incorrectly applying the pragma?.
Regards,
Mac
Solved! Go to Solution.
You have to disable that message via command line option, not with a #pragma MESSAGE.
Here's a snipped copied from the compiler manual entry about that pragma:
> NOTE This pragma does not affect messages produced during preprocessing,
> because pragma parsing is done during normal source parsing but not during preprocessing.
Daniel
You have to disable that message via command line option, not with a #pragma MESSAGE.
Here's a snipped copied from the compiler manual entry about that pragma:
> NOTE This pragma does not affect messages produced during preprocessing,
> because pragma parsing is done during normal source parsing but not during preprocessing.
Daniel