For some background, I am trying to implement a software breakpoint that I can use as a debug assert.
Here is my code:
#define SOFTWARE_BREAKPOINT() { \
_Pragma("diag_suppress 1119"); \
asm( " .long 0x1001E000" ); \
_Pragma("diag_default 1119");}
....
if(somethingbad)
SOFTWARE_BREAKPOINT();
I am getting the following warning from the C6000 CGT 7.30 tools:
Description Resource Path Location Type
#1119-D this assembly directive potentially unsafe inside a function startupshutdown.c /DSPLINKTest line 72 C/C++ Problem
As you can see, it does not appear that the suppress pragma is trickling down into the assembler?
I can't find any documentation that suggests a way to suppress warnings in the assembler. I was expecting to find something I could do such as "asm(" code to turn off warnings");"
Anyone have any ideas?