naemon / naemon-livestatus

Naemon - Livestatus Eventbroker Module
GNU General Public License v2.0
27 stars 30 forks source link

Keyword register has been deprecated in C++ 11 and removed in C++17 #119

Closed dereckson closed 10 months ago

dereckson commented 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.

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:

sni commented 10 months ago

thanks, much appreciated.