-
Notifications
You must be signed in to change notification settings - Fork 316
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
Enable and fix warnings #100
Enable and fix warnings #100
Conversation
Wow thanks a lot! Some comments, and ready to merge! |
c69b5f4
to
30a9780
Compare
30a9780
to
c270668
Compare
@ahans the windows build is failing, probably cuz MSVC is too annoyting with warnings, don't worry. I will take over this one ;) |
Interesting, it was working for me. But I was using a newer version, maybe they changed something there. |
Which version? The problem seems to be that is not detecting the system headers as headers 🤔 |
It was the latest, which is probably some 2022 one. But it's very possible I missed something. |
Turns out that is the MSVC version of the gh actions runners/dockers, whatever is in there. I've checked and it's version 17.x and I found this resource online: https://discourse.cmake.org/t/marking-headers-as-system-does-not-suppress-warnings-on-windows/6415 that says at least version 19 |
That link says you need to upgrade CMake. And some GH documentation says |
On the last runs: 1s
Current runner version: '2.303.0'
Operating System
Microsoft Windows Server 2022
[1](https://github.com/PRBonn/kiss-icp/actions/runs/4536893530/jobs/7994133538#step:1:1)0.0.[2](https://github.com/PRBonn/kiss-icp/actions/runs/4536893530/jobs/7994133538#step:1:2)0[3](https://github.com/PRBonn/kiss-icp/actions/runs/4536893530/jobs/7994133538#step:1:3)[4](https://github.com/PRBonn/kiss-icp/actions/runs/4536893530/jobs/7994133538#step:1:4)8
Datacenter and
Nevertheless, it does fail anyway :S |
Yes, because you need to upgrade CMake to properly. That's at least what they say here:
Let me quickly try that. |
Or use ninja, it does not fail in the windows-python-package because it is using ninja anywyas |
The CMake upgrade did the trick. Anyways, keep whatever you want, we have some options now. |
I tried some minutes the ninja thing and didn't work out great in my case... so dropping this for now. I will just change the cmake version to 3.24 since this will match the requirements of the project, and I don't want to change that now. Thanks for the effort and the guidance ;) |
874a029
to
762b804
Compare
I squashed and cleaned up the commits. The one where you introduce the range-based loop I left intact, since it has nothing to do with warning-removal. It's good to merge from my point of view. The error for the macOS build is hopefully something transitory, so simply retriggering should do the trick. I didn't touch this at all. |
762b804
to
b5dd3c9
Compare
|
Not sure what you mean. It seems to be building fine for me. Maybe merge the other PR first and then we rebase this and I can see what CI has to say about it. |
was a note for myself, actually. You can test the build in a dockerize environment using Tool:https://github.com/firecow/gitlab-ci-local |
b5dd3c9
to
7913015
Compare
This enables warning flags for MSVC/gcc/clang and fixes the warnings reported. Co-authored-by: Ignacio Vizzo <ignaciovizzo@gmail.com>
7913015
to
de2739e
Compare
That's a really cool tool. And you were right, the melodic build was broken. I thought I had looked at that manually (basically running manually what is specified in the |
Yup, it sucks to provide compatibility to such old tools. But people already asked for ROS Melodic (#53, #78) gitlab-ci-local was a game changer for me, specially because my desktop is much faster than our gitlab servers, for github actions I use act |
This enables the commonly used warning flags for msvc/gcc/clang and fixes the warnings reported.