[Development] Removing the use of 'register'
thiago.macieira at intel.com
Sat Jun 15 00:37:29 CEST 2013
On sexta-feira, 14 de junho de 2013 23.24.50, Giuseppe D'Angelo wrote:
> On 14 June 2013 11:44, Stephen Kelly <stephen.kelly at kdab.com> wrote:
> > http://thread.gmane.org/gmane.comp.compilers.clang.scm/74932
> > This will be quite noisy for Qt and for users of Qt. Should we remove the
> > use of register from Qt? Or replace it with Q_REGISTER which is empty for
> > c++11?
> Am I right at assuming that this warning triggers only when compiling
> C++ files in C++11 mode? If not, would it be possible we disable it
> selectively, f.i. for code in 3rdparty?
C++11 did not change the meaning of the keyword. This is a completely made-up
warning by Clang, like the GCC warning that says const in prvalue return types
makes no sense or the one telling you to use () around && with ||.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Development