Skip to content

initialize in a separate line to avoid LFortran warning #54

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

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

gxyd
Copy link
Collaborator

@gxyd gxyd commented Mar 31, 2025

Description

This removes a minor warning when running tests with LFortran, the warning is:

warning: Assuming implicit save attribute for variable declaration
   --> ../src/mpi.f90:144:27
    |
144 |         integer(c_int) :: argc = 0
    |                           ^^^^^^^^ help: add explicit save attribute or parameter attribute or initialize in a separate statement


Note: Please report unclear, confusing or incorrect messages as bugs at
https://github.com/lfortran/lfortran/issues.

which doesn't occur anymore.

@gxyd gxyd merged commit f49a192 into main Mar 31, 2025
16 checks passed
@gxyd gxyd deleted the avoid_lfortran_warning branch March 31, 2025 04:43
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

Successfully merging this pull request may close these issues.

1 participant