SunStudio C++ compiler pragma to disable warnings?
The STLport bundled with the SunStudio11 generates alot of warnings. I beleive most compilers have a way to disable warnings from certain source files, like this: Sun C #pragma error_messages off #include <header.h> // ... #pragma error_messages on gcc #pragma warning(push, 0) #include <header.h> // ... #pragma warning(pop) How do you do this in the SunStudio C++ compiler? (btw, the sunstudio C pragmas don't work in sunstudio C++) In SunStudio 12, the #pragma error_messages work as documented in the C users manual. You can see the tags with the -errtags=yes option, and use it like this: //