In SunStudio 12 #pragma error_messages work as described in the C user manual.
You can see the tags with the -errtags = yes parameter and use it as follows:
#pragma error_messages (off, badargtypel2w )
and then compile with CC (C ++ compiler).
JohannOskarsson
source
share