AnsweredAssumed Answered

Disabling warning C3303: Implicit concatenation of strings

Question asked by Steve Green on Jan 4, 2010
Latest reply on Jan 4, 2010 by Steve Green

Hi there. I have a need define a lot of strings in my C source that have several hundred characters each, so don't want to have the strings defined all on one line in the source, I want to use string concatenation, eg:


#define FORM_TEXT \
  "High Street\n"  \
  "Manchester\n" \


The compiler always warns of there being impiled string concatenation with warning C3303, and the help explains why it does so. The problem I have is that I can't disable this warning at all, the help says that it is generated within the preprocessor so the normal #pragma MESSAGE directive can't be used to disable it. The warning occurs every time a concatenation occurs so I get dozens of them. Is there a way to disable this warning message? Thanks.