[cfe-dev] clang++ some_c++11_source.cpp -std=c++11 -Weverything -Werror
Matthieu Monrocq
matthieu.monrocq at gmail.com
Sun Jan 6 10:53:01 PST 2013
On Sun, Jan 6, 2013 at 7:27 PM, Sean Silva <silvas at purdue.edu> wrote:
> -Weverything literally means "everything". -Wc++98-compat is a warning
> and is hence part of "everything". Just disable it with
> -Wno-c++98-compat (along with any other warnings you run into).
>
> -- Sean Silva
>
>
The important point here is that one might want to compile as C++11 to
benefit from optimizations (such as move constructors) whilst still
retaining a codebase compatible with older compilers. Therefore it does
make sense for c++98-compat to be active even in C++11 mode; after all, in
C++98, you would not need it!
-- Matthieu
> On Sun, Jan 6, 2013 at 10:47 AM, Kosztka Imre Dávid <kosztkaid at gmail.com>
> wrote:
> > Hi,
> >
> > Why does Weverything include Wc++98-compat when -std=c++11 is applyed?
> >
> > What other warnings are completly useless when I want to write a c++11
> code?
> >
> > More info here:
> >
> http://stackoverflow.com/questions/14181789/how-to-use-clang-with-std-c11-weverything-werror
> >
> > Regards,
> > Kocka
> >
> > --
> > Name : Kosztka Imre Dávid
> > E-mail: kosztkaid at gmail.com
> > Phone number: +36309213462
> > Mailing address: H-3700, Hungary Kazincbarcika Szeder utca 2.
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130106/c9642cf4/attachment.html>
More information about the cfe-dev
mailing list