SunStudio C++ compiler pragma to disable warnings?

前端 未结 4 561
心在旅途
心在旅途 2021-01-21 04:01

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<

4条回答
  •  耶瑟儿~
    2021-01-21 04:17

    Can't help with turning the warnings off, but when I last looked at SunStudio, it shipped with two STLs - an older one for backward compatibility with earlier compiler versions and STLport. Might be worth checking if you're using STLport before trying to trying to turn off the warnings.

提交回复
热议问题