Loading...
 
Skip to main content

System Workbench for STM32


Compiler Documentation

Hi,

what does it mean "rejecting the pragma directive"

For example, with this source code...

int main(void)
{
 #pragma message "Fix it!!!"
	for(;;);
}


... the compiler output is

make all
'Building file: ../src/main.c'
'Invoking: MCU GCC Compiler' ...
../src/main.c:19:9: note: #pragma message: Fix it!!!
 #pragma message "Fix it!!!"
         ^
'Finished building: ../src/main.c'


Is it not what you expect?

Regards,
Stefano