-
Notifications
You must be signed in to change notification settings - Fork 12
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
Few simple changes to allow code to cleanly compile on Linux/MacOS/Windows (VS2019/22) - add github action to do builds / add unit tests #11
base: cmake-support
Are you sure you want to change the base?
Conversation
I don't believe this should have been closed, so I'm reopening it for a later time. |
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.
I have 1 comment for you to respond to. Also, I will probably merge this but remove the github actions file for the time being. You can resubmit that as a new pull request, but not ready for that at the moment. Want to update the Linux support and the couple other code quality items you suggest.
@@ -18,7 +17,7 @@ | |||
| Outputs: tropo - Struct containing resulting parameters | |||
| | |||
*===========================================================================*/ | |||
void Troposcatter(Path *path, Terminal *terminal_1, Terminal *terminal_2, double d__km, double f__mhz, TroposcatterParams *tropo) | |||
void Troposcatter(Path * /*path*/, Terminal *terminal_1, Terminal *terminal_2, double d__km, double f__mhz, TroposcatterParams *tropo) |
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.
I'm not sure I understand what you are doing here?
Even though I approved this request, @alastairUK if you could respond to the above question that would be appreciated. I'm holding off merging for a bit to give you a chance to respond |
7539d14
to
06fed75
Compare
…and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Werror=sign-compare]
I was compiling with these options So warning are errors. Without that change you get... I have rebased this PR onto cmake-support branch and fixed a couple more things Note the github action compiles cleanly |
Some simple changes to automatically build on Window/Linux/Mac OS using GitHub actions. Have upped the warning level to W4 and fixed a few issues. Also added a very simple set of unit tests.
One thing my linter is picking up is the use of reserved identifiers (basically __)
https://clang.llvm.org/extra/clang-tidy/checks/bugprone-reserved-identifier.html
This is obviously all over the code as it's part of your coding standard. But something to be aware of I guess.