naemon / naemon-livestatus

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

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

Closed dereckson closed 7 months ago

dereckson commented 7 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 7 months ago

thanks, much appreciated.