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

Use of int8() #9

Open
dkokron opened this issue Jun 17, 2024 · 1 comment
Open

Use of int8() #9

dkokron opened this issue Jun 17, 2024 · 1 comment

Comments

@dkokron
Copy link

dkokron commented Jun 17, 2024

GDIT is testing a static analysis tool called Codee (https://www.codee.com/). Codee flagged an issue in the ncdiag code. The code uses the int8(arg) routine to convert its argument into a 64-bit integer. Codee didn't recognise this routine and refused to process the files that contain it. I replaced int8(arg) with int(arg,8) which appears to be the standard compliant way to accomplish this conversion. My sandbox contains the following modified files.

modified:   ncdiag/ncdw_chaninfo.F90
modified:   ncdiag/ncdw_ciresize.F90
modified:   ncdiag/ncdw_dresize.F90
modified:   ncdiag/ncdw_metadata.F90
modified:   ncdiag/ncdw_mresize.F90
@dkokron
Copy link
Author

dkokron commented Jun 20, 2024

The int8() function name also conflicts with the int8 type from iso_fortran_env.
https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html

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

1 participant