Closed dereckson closed 10 months ago
The keyword register was used as a hint for the compiler the variables can be inlined, but apparently, most implementations simply ignored it.
register
This fixes the following compilation issue with LLVM/clang 16:
strutil.cc:110:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register int x, y; ^~~~~
References:
thanks, much appreciated.
The keyword
register
was used as a hint for the compiler the variables can be inlined, but apparently, most implementations simply ignored it.This fixes the following compilation issue with LLVM/clang 16:
strutil.cc:110:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register int x, y; ^
~~~~References: