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

clang19 compatibility #1465

Merged
merged 4 commits into from
Nov 13, 2024
Merged

Conversation

lazydroid
Copy link
Collaborator

clang19 treats -Wenum-constexpr-conversion as an error by default, and gives the following message:

/usr/include/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'sign_mixture_enum' [-Wenum-constexpr-conversion]

in case of a simple warning adding to the system includes should work with:

include_directories(SYSTEM ${OPENRAVE_BOOST_INCLUDE_DIRS})

but it does not in this case, hence the need of disabling this particular error directly.

@lazydroid lazydroid marked this pull request as ready for review November 12, 2024 06:00
@lazydroid
Copy link
Collaborator Author

looks good to me...

image

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})
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. thanks

@yoshikikanemoto yoshikikanemoto merged commit 583de4f into production Nov 13, 2024
1 check passed
@lazydroid lazydroid deleted the dev/lenik/clang19_compatibility branch November 13, 2024 09:15
@lazydroid
Copy link
Collaborator Author

thank you!

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

Successfully merging this pull request may close these issues.

2 participants