Changes between Version 11 and Version 12 of Guidelines/WarningsGuidelines


Ignore:
Timestamp:
Jan 13, 2011, 9:35:35 AM (12 years ago)
Author:
Paul A. Bristow
Comment:

Added info on Sun, and Limit on push'h'pop limit on gcc and MSVC

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/WarningsGuidelines

    v11 v12  
    191191For MSVC, this involves pushing to save the current warning state, disabling the warning, and later popping to restore (abbreviated as ''push'n'pop''). See [@http://msdn.microsoft.com/en-us/library/2c8f766e%28v=VS.100%29.aspx warnings]
    192192
    193 '''BUT''' there is a limit to how many times (56) this can be used, so it is always much better to 'fix' than to suppress warnings.
     193There is a limit to how many times (56) this can be used, so it is always much better to 'fix' than to suppress warnings.
    194194
    195195"The compiler only supports up to 56 #pragma warning statements in a compiland"
    196196
    197 This limit may be reached in practice with Boost code.
     197This limit might be reached in practice with Boost code.
     198
     199But it is now believed that this limit value is incorrect and that there is no practical limit, see post by
     200[http://article.gmane.org/gmane.comp.lib.boost.devel/212485/match=gcc+warnings Stephan T. Lavavej]
     201
     202On GCC there does not appear to be a practical limit, see post by
     203[http://article.gmane.org/gmane.comp.lib.boost.devel/212484/match=gcc+warnings Patrick Horgan].
    198204
    199205{{{
     
    692698'''Borland'''
    693699
    694 
    695700Information needed here.
     701
     702'''Sun'''
     703
     704[http://docs.sun.com/app/docs/doc/802-5660/6i9debhqe?a=view some Sun workarounds] to some Sun compiler errors/warnings.
     705
     706