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
radiotap/parse: fix warnings #2533
base: master
Are you sure you want to change the base?
Conversation
ed8768e
to
d18cc2c
Compare
This code comes from https://github.com/radiotap/radiotap-library so it should ideally be submitted there as well. And we likely want to submit some of our fixes/updates as well. |
Adding -Werror for all builds is highly discouraged. It caused warnings to become failures which hurt users as new warning pop up from new compiler versions after a release it made. It would be better to make a debug build type and only define it there. |
d18cc2c
to
ddd8db6
Compare
I will open a PR there also then.
Good point, I removed it for now. |
Which we forked in https://github.com/aircrack-ng/radiotap-library |
So we should add it as a submodule to avoid duplication? |
Ideally yes (of our repo). However, I've read that older version of git, this complicates the clone a bit (but I don't know what version 'old' refers to). So I'm not sure it's a good idea. |
I have submitted the changes in this PR + 44f13db and 998bc12. Now waiting for an answer from the maintainer.
I will investigate this as a next step. |
While looking around and experimenting with the
radiotap
andradiotap/parse
code I noticed someCMake
/gcc
warnings:So I fixed them:
-D_DEFAULT_SOURCE
according to this manpage:(unsigned long long)
castAnd also added
-Werror
.After fixing the warnings: