Skip to content

New -Werror=undef issues along the lines of #196 #340

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

Open
axxel opened this issue Apr 10, 2025 · 0 comments
Open

New -Werror=undef issues along the lines of #196 #340

axxel opened this issue Apr 10, 2025 · 0 comments

Comments

@axxel
Copy link

axxel commented Apr 10, 2025

The current HEAD fails to compile with g++ using -Werror=undef -std=c++17 with a couple errors like:

ctre.hpp:388:21: error: "__cpp_char8_t" is not defined, evaluates to 0 [-Werror=undef]
  388 |                 #if __cpp_char8_t

The following one-liner fixes the problem:

sed -i -E "s/#if (__cpp_[^ ]*)/#if defined \1 \&\& \1/g" ctre.hpp

See also this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant