Skip to content
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

unused variables #43

Open
Beliavsky opened this issue Jul 20, 2023 · 2 comments
Open

unused variables #43

Beliavsky opened this issue Jul 20, 2023 · 2 comments

Comments

@Beliavsky
Copy link

Thanks for the project.

>gfortran -c -Wextra -Wall ogpf.f90
ogpf.f90:1348:20:

 1348 |          integer:: j
      |                    1
Warning: Unused variable 'j' declared at (1) [-Wunused-variable]
ogpf.f90:1345:22:

 1345 |          integer:: ncx
      |                      1
Warning: Unused variable 'ncx' declared at (1) [-Wunused-variable]
@Beliavsky
Copy link
Author

>gfortran -Werror=unused-parameter ogpf.f90 demo.f90
demo.f90:1350:33:

 1350 |         real(wp), parameter :: pi=4.0_wp*atan(1.0_wp)
      |                                 1
Error: Unused parameter 'pi' declared at (1) [-Werror=unused-parameter]
f951.exe: some warnings being treated as errors

@kookma
Copy link
Owner

kookma commented Jul 22, 2023

much appreciated.
for now it is better to comment out them.
Do you have time to submit a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants