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

warning in copygb #815

Open
edwardhartnett opened this issue Jan 22, 2025 · 0 comments
Open

warning in copygb #815

edwardhartnett opened this issue Jan 22, 2025 · 0 comments
Labels
warning Heed your warnings!

Comments

@edwardhartnett
Copy link
Contributor

/home/ed/NCEPLIBS-g2/utils/copygb.F90:567:23:

  567 |   CHARACTER CBUF1(MBUF),CBUFB(MBUF),CBUFM(MBUF)
      |                       1
Warning: Array ‘cbuf1’ at (1) is larger than limit set by ‘-fmax-stack-var-size=’, moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider increasing the ‘-fmax-stack-var-size=’ limit (or use ‘-frecursive’, which implies unlimited ‘-fmax-stack-var-size’) - or change the code to use an ALLOCATABLE array. If the variable is never accessed concurrently, this warning can be ignored, and the variable could also be declared with the SAVE attribute. [-Wsurprising]
/home/ed/NCEPLIBS-g2/utils/copygb.F90:567:35:

  567 |   CHARACTER CBUF1(MBUF),CBUFB(MBUF),CBUFM(MBUF)
      |                                   1
Warning: Array ‘cbufb’ at (1) is larger than limit set by ‘-fmax-stack-var-size=’, moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider increasing the ‘-fmax-stack-var-size=’ limit (or use ‘-frecursive’, which implies unlimited ‘-fmax-stack-var-size’) - or change the code to use an ALLOCATABLE array. If the variable is never accessed concurrently, this warning can be ignored, and the variable could also be declared with the SAVE attribute. [-Wsurprising]
/home/ed/NCEPLIBS-g2/utils/copygb.F90:567:47:

  567 |   CHARACTER CBUF1(MBUF),CBUFB(MBUF),CBUFM(MBUF)
      |                                               1
Warning: Array ‘cbufm’ at (1) is larger than limit set by ‘-fmax-stack-var-size=’, moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider increasing the ‘-fmax-stack-var-size=’ limit (or use ‘-frecursive’, which implies unlimited ‘-fmax-stack-var-size’) - or change the code to use an ALLOCATABLE array. If the variable is never accessed concurrently, this warning can be ignored, and the variable could also be declared with the SAVE attribute. [-Wsurprising]
[ 24%] Linking Fortran executable copygb
@edwardhartnett edwardhartnett added the warning Heed your warnings! label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
warning Heed your warnings!
Projects
Status: No status
Development

No branches or pull requests

1 participant