[cfe-dev] Warnings: -w options and default

Luc Bourhis luc_j_bourhis at mac.com
Mon Sep 13 03:20:10 PDT 2010


Hi,

am I correct to think that clang ignores the "-w" command line options? I could not find it documented one way or the other (I am talking about the user documentation here). It is pretty annoying for developing code that has to be build by the both of clang and g++.

Moreover, the warning option -Wmismatched-tags is enabled by default, which in my builds triggers reports about conflicting "struct complex" and "class complex" because the standard header declares:

  template<typename _Tp>
    struct complex
    {
    ......

whereas the Boost header <boost/detail/container_fwd.hpp> features

namespace std
{
.......
    template <class T> class complex;
}

May I ask what danger is there in that construct that motivates a warning by default? If I were to push a bug report to the Boost people, I'd better be clad in certainties.


Luc Bourhis
Computer Scientist
Chemical Crystallography Laboratory
University of Durham, UK



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100913/0d045caa/attachment.bin>


More information about the cfe-dev mailing list