This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

warning #1557-D "white space between backslash and newline in line splice ignored" from TI ARM compiler v.5.1.1

Compiling StarterWare with TI ARM compiler v5.1.1 reports several warnings #1557-D "white space between backslash and newline in line splice ignored". E.g.:

**** Build of configuration Debug for project drivers ****

"C:\\ti_ccs5_4\\ccsv5\\utils\\bin\\gmake" -k -j 2 -s all
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c'
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cpsw.c'
'Invoking: ARM Compiler'
'Invoking: ARM Compiler'
'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cpsw.c'
' '
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/dcan.c'
'Invoking: ARM Compiler'
"C:/ti/AM335X_StarterWare_02_00_01_01/include/hw/hw_dcan.h", line 102: warning #1557-D:
          white space between backslash and newline in line splice ignored
  /**************************************************************************\
                                                                              ^

'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/cppi41dma.c'
' '
'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/dmtimer.c'
'Invoking: ARM Compiler'
"C:/ti/AM335X_StarterWare_02_00_01_01/include/hw/hw_dmtimer.h", line 90: warning #1557-D:
          white space between backslash and newline in line splice ignored
  /**************************************************************************\
                                                                              ^

'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/drivers/dmtimer.c'
' '

These warnings are being generated on the following comment blocks:
/**************************************************************************\
 * Field Definition Macros
\**************************************************************************/
Going back to TI ARM compiler v5.0.6 and the warnings aren't generated. Is the new #1557-D warning correct?

  • Examine the header file.  If there is indeed whitespace after the backslash, the warning is correct.

  • Archaeologist said:
    Examine the header file.  If there is indeed whitespace after the backslash, the warning is correct.

    The warning is being generated on lines which do indeed have whitespace after the backslash, so the warning is correct.

    [I was confused about the mention of "line splice" since thought  that only applied to #define directives, but now realize that "line splicing" applies to all lines]