-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
platform.h
error when building with GCC 13 using C++14
#906
Comments
using |
Try defining |
Won't that create issues elsewhere? Since it's simply a forward-compatibility warning. |
It tells the ETL that the compiler has a native |
Ah! But it doesn't have I'm using GCC 13, but compiling in C++14 mode. This is basically a warning saying that the line would be an error if it was compiled in C++20 mode. Which won't happen because of the |
We may have to disable this warning, as I can't see any way to solve this other than not defining |
What is the GCC warning number for this? |
As far as I'm aware, GCC does not number their warnings, instead using names. I've opened #909 with a proposed solution. |
Working or some minor improvements, and wanted to test them using C++14. Forced it in CMakeLists.txt. This started erroring out in
platform.h
becausechar8_t
is a reserved identifier in C++20. The only way to get rid of the error (which seems a false positive given the codebase) was to addadd_compile_options(-Wno-c++20-compat)
CMake patch to force C++14:
Error:
The text was updated successfully, but these errors were encountered: