AnsweredAssumed Answered

Message disable pragma doesn't disable

Question asked by bigmac on Jun 17, 2011
Latest reply on Jun 18, 2011 by CompilerGuru



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?.