"ISO C++17 does not allow `register` storage class specifier" warning
Generator of lexical analyzers in C and C++. Unicode Supported.
Brought to you by:
fschaef
Hello,
while compiling quex sources generated from version 0.70.0-0
(deb package) using g++
9.2.0 with -std=c++17
I get the following warning:
/./lib/quex/MemoryManager.i:199:20: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 199 | register char *d = dst;
I think that it is self-explanatory. Note that this prevents compilation with -Werror
, which does not have great reputation, but our build server uses it to weed out all warnings.
Solved.
UT: TEST/bug-304.sh
Revision: e297cb81e419f6b705e2f0cc5f4edc531bfda571