Changes between Version 20 and Version 21 of Guidelines/WarningsGuidelines


Ignore:
Timestamp:
Mar 31, 2011, 11:05:02 AM (12 years ago)
Author:
Paul A. Bristow
Comment:

Info on warnings from Boost.math for Fedora LInux Boost 1.46.1

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/WarningsGuidelines

    v20 v21  
    113113}}}
    114114
    115 '''For GCC''' this means -Wall -pendantic 
     115'''For GCC''' this means -Wall -pedantic
    116116
    117117but you might consider adding specific warnings that are to be suppressed, for example:
     
    815815
    816816These macro names won't collide with GCC macros since their's start with one or two underscores.
     817
     818'''Boost 1.46.1 libraries on a Fedora 7 Linux'''
     819
     820[http://lists.boost.org/Archives/boost/2011/03/179178.php]
     821
     822Boost 1.46.1 libraries on a Fedora 7 Linux system with the default g++ 4.1.2.
     823
     824The warnings from the math library produce zillions of lines of output.  Each warning has a long description of the instantiation and then concludes with a couple of
     825lines like this:
     826
     827{{{
     828./boost/math/special_functions/binomial.hpp:65:   instantiated from here
     829./boost/mpl/assert.hpp:79: warning: lowering visibility of 'int
     830mpl_::assertion_failed(typename mpl_::assert<C>::type) [with bool C =
     831false]' to match its type
     832}}}
     833
     834The workaround for this is to add
     835
     836 cxxflags=-Wno-attributes
     837
     838to the <compileflags> and <linkflags> in user-config file
     839
     840Fixed by Redhat for g++ 4.5.1 on Fedora 14
     841
    817842----
    818843'''Intel'''