Skip to content
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

trainer_interface.cc: Integer value -1 is outside the valid range of values [0, 255] for the enumeration type 'ScriptType' #1028

Open
kcoul opened this issue Jun 19, 2024 · 1 comment

Comments

@kcoul
Copy link

kcoul commented Jun 19, 2024

When building with C++ '20.
Error due to default of "-1" on L221-222

  constexpr unicode_script::ScriptType kAnyType =
      static_cast<unicode_script::ScriptType>(-1);

@kcoul
Copy link
Author

kcoul commented Jun 19, 2024

Temporary workaround for anyone facing the same issue:

Add to CMakeLists.txt
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion" )

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

No branches or pull requests

2 participants