[Development] Removing the use of 'register'

Knoll Lars Lars.Knoll at digia.com
Tue Jun 18 10:15:57 CEST 2013


On 15.06.13 10:49, "Olivier Goffart" <olivier at woboq.com> wrote:

>On Saturday 15 June 2013 00:59:18 Giuseppe D'Angelo wrote:
>> On 15 June 2013 00:37, Thiago Macieira <thiago.macieira at intel.com>
>>wrote:
>> > 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 ||.
>> No, "register" is officially deprecated (N3337 ┬žD.2 [depr.register]),
>> so the warning "makes sense". My concern was about getting such
>> warnings from code we don't have control upon, that is, 3rdparty code
>> (qtbase/3rdparty, webkit, v8...)
>
>We need to remove 'register' in our code.  Especially in public headers.
>
>For third party code such as v8 or webkit, it does not make sens to patch
>those project for that (But we could submit patches upstream, if we
>really 
>want to.)

I'm in favour os simply removing all usages. I don't think register makes
sense anymore with today's compilers, and I can't see a valid reason for
us to use it in our code.

Cheers,
Lars




More information about the Development mailing list