-
Notifications
You must be signed in to change notification settings - Fork 344
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
clang19 compatibility #1465
clang19 compatibility #1465
Conversation
CMakeLists.txt
Outdated
@@ -269,6 +272,9 @@ find_package(Boost REQUIRED COMPONENTS filesystem system thread iostreams) | |||
set(OPENRAVE_BOOST_INCLUDE_DIRS ${Boost_INCLUDE_DIRS}) | |||
set(OPENRAVE_BOOST_LIB_DIRS ${Boost_LIBRARY_DIRS}) | |||
|
|||
# prevents CLANG from "error: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'sign_mixture_enum' [-Wenum-constexpr-conversion]" | |||
include_directories(SYSTEM ${OPENRAVE_BOOST_INCLUDE_DIRS}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lazydroid do you still need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yoshikikanemoto it's not strictly required for suppressing -Wenum-constexpr-conversion
errors, however, it should help to reduce warning noise coming from Boost and maybe other system includes.
If you think this should be removed, I shall remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yoshikikanemoto this part is gone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. thanks
thank you! |
clang19 treats
-Wenum-constexpr-conversion
as an error by default, and gives the following message:in case of a simple warning adding to the system includes should work with:
but it does not in this case, hence the need of disabling this particular error directly.