-
Notifications
You must be signed in to change notification settings - Fork 34
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
cppcheck uses c++17 #404
cppcheck uses c++17 #404
Conversation
Signed-off-by: sdhar04 <sammit.dhar.2004@gmail.com>
9a91ad1
to
0f2bdb6
Compare
Hello @azeey ! Could you give me some pointers as to how I can check if a library passes cppcheck? |
If you are able to build Garden or Harmonic from source in a colcon workspace (using these instructions), using this branch of |
I am on Ubuntu 20.04 and tried to build Garden from the tutorial. My plan was to completely install from source and then replicate the changes I had made in this PR. But |
it sounds like you're having trouble building from source. Here are the garden build from source instructions. Can you post a question on Robotics Stack Exchange with details on your build error and then link it here so we can follow up? |
Here is the question I've asked. |
Shall I raise an issue regarding this? |
Did you have a chance to try my suggestion? |
I did, and it's giving me the same errors |
I have built Gazebo from source on a cleaner Ubuntu system, and run |
Awesome, thanks! |
Closes #378
Summary
Changed Line 20 of /cmake/GzCodeCheck.cmake to update a cppcheck parameter from c++14 to c++17
Test it
I don't know exactly how to make tests for this, but I'm guessing you could:
Run
cmake -DCMAKE_CXX_CPPCHECK:FILEPATH=cppcheck .
inside a packageOr build and make workspaces and packages where Gazebo is used