-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
style: treat warnings as errors #26
Conversation
e302350
to
adf9901
Compare
Sure, but I would be careful here: some of the warnings are already included into the used flags, some of the warnings are Fortran version specific etc. |
Right, I'll change my local gfortran version.
I previously used these:
|
@Ramy-Badr-Ahmed: I added Regarding other flags, which you listed: they are not warnings and the discussion about them is out of scope of this PR. Few remarks for the future:
|
Thanks for the feedback! I agree with your points, especially regarding introducing release and debug builds.
Ok 👍
Yes, that's good practice. However, in the context of CI, these flags can help identify potential errors for contributors. For example: real :: x
x = x + 1.0 ! x is uninitialized If compiled with
For the builds, we could structure it like this:
|
I do not have enough knowledge about FORTRAN to judge relevance of the other warning flags. @Ramy-Badr-Ahmed: all of this sounds like a good idea for the future work. |
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.
This is a good way to eliminate potential conflicts and improve code quality for learners to understand. I am merging it 👍
Continuation of #18.