#pragma message needs to be surrounded by () in IAR compiler

305 views
Skip to first unread message

Thiru

unread,
Apr 23, 2021, 3:17:07 AM4/23/21
to open62541
Hi,

Please consider the following strings to be surrounded by ()...

#pragma message "Integer endianness could not be detected to be little endian. Use slow generic encoding."
#pragma message "No native IEEE 754 format detected. Use slow generic encoding."

..as follows. IAR compiler has the format of #pragma message (). I hope it won't affect the other compilers too.

#pragma message ("Integer endianness could not be detected to be little endian. Use slow generic encoding.")
#pragma message ("No native IEEE 754 format detected. Use slow generic encoding.")

Regards,
Thiru
Reply all
Reply to author
Forward
0 new messages