Skip to content
Snippets Groups Projects
Commit fb8eb5ed authored by Martin Storsjö's avatar Martin Storsjö Committed by Steve Lhomme
Browse files

contrib: asdcplib: Force building with a specific older C++ version

This project uses the 'register' storage class specifier for a lot
of variables, and C++17 disallows that storage class spcifier.

This fixes building with newer compilers that default to C++17
if nothing is specified (which is the default since GCC 11
and Clang 16).

When building with Clang 16 in C++17 mode, it fails with errors
like these:

KM_util.cpp:357:3: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  register byte_t c = 0, d = 0;
  ^~~~~~~~~
parent 3e29d7f6
No related branches found
No related tags found
1 merge request!2529Fix building contribs with a compiler that defaults to C++17
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment