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

code warnings for copygb2 #132

Open
edwardhartnett opened this issue Jan 7, 2022 · 0 comments
Open

code warnings for copygb2 #132

edwardhartnett opened this issue Jan 7, 2022 · 0 comments
Assignees
Labels
warning Warning-free code is required

Comments

@edwardhartnett
Copy link
Contributor

[ 44%] Building Fortran object src/copygb2/CMakeFiles/copygb2.dir/copygb2.F90.o
cd /home/ed/NCEPLIBS-grib_util/b/src/copygb2 && /usr/bin/gfortran  -I/usr/local/NCEPLIBS-g2-3.4.5_bacio-2.5.0/include_d -I/usr/local/NCEPLIBS-bacio-2.5.0/include -I/usr/include -I/usr/local/NCEPLIBS-w3emc-2.9.2/include_d -I/usr/local/NCEPLIBS-ip-3.3.3/include_d -I/usr/local/NCEPLIBS-sp-2.3.3/include_d -g -fdefault-real-8 -fconvert=big-endian -cpp -g -O0 -Wall -O3 -g -fdefault-real-8 -fconvert=big-endian -cpp -g -O0 -Wall -c /home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90 -o CMakeFiles/copygb2.dir/copygb2.F90.o
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:836:14:

  836 |        IDS,IBS,NBS, &
      |              1
Warning: Unused dummy argument ‘ibs’ at (1) [-Wunused-dummy-argument]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:836:10:

  836 |        IDS,IBS,NBS, &
      |          1
Warning: Unused dummy argument ‘ids’ at (1) [-Wunused-dummy-argument]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:850:21:

  850 |     INTEGER JPDS(200),JGDS(200),JENS(5)
      |                     1
Warning: Unused variable ‘jpds’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:851:42:

  851 |     INTEGER KPDS1(200),KGDS1(200),KENS1(5)
      |                                          1
Warning: Unused variable ‘kens1’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:853:42:

  853 |     INTEGER KPDSM(200),KGDSM(200),KENSM(5)
      |                                          1
Warning: Unused variable ‘kensm’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:851:33:

  851 |     INTEGER KPDS1(200),KGDS1(200),KENS1(5)
      |                                 1
Warning: Unused variable ‘kgds1’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:853:33:

  853 |     INTEGER KPDSM(200),KGDSM(200),KENSM(5)
      |                                 1
Warning: Unused variable ‘kgdsm’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:851:22:

  851 |     INTEGER KPDS1(200),KGDS1(200),KENS1(5)
      |                      1
Warning: Unused variable ‘kpds1’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:853:22:

  853 |     INTEGER KPDSM(200),KGDSM(200),KENSM(5)
      |                      1
Warning: Unused variable ‘kpdsm’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:832:29:

  832 |   SUBROUTINE CPGB1(LG1,LX1,M1, &
      |                             1
Warning: Unused dummy argument ‘m1’ at (1) [-Wunused-dummy-argument]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:838:17:

  838 |        LGM,LXM,MM, &
      |                 1
Warning: Unused dummy argument ‘mm’ at (1) [-Wunused-dummy-argument]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:836:18:

  836 |        IDS,IBS,NBS, &
      |                  1
Warning: Unused dummy argument ‘nbs’ at (1) [-Wunused-dummy-argument]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:601:25:

  601 |     CHARACTER CBUFB(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-grib_util/src/copygb2/copygb2.F90:611:20:

  611 |     CHARACTER*80 CIN
      |                    1
Warning: Unused variable ‘cin’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:608:21:

  608 |     INTEGER JPDS(200),JGDS(200),JENS(5)
      |                     1
Warning: Unused variable ‘jpds’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:610:42:

  610 |     INTEGER KPDSM(200),KGDSM(200),KENSM(5)
      |                                          1
Warning: Unused variable ‘kensm’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:610:33:

  610 |     INTEGER KPDSM(200),KGDSM(200),KENSM(5)
      |                                 1
Warning: Unused variable ‘kgdsm’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:610:22:

  610 |     INTEGER KPDSM(200),KGDSM(200),KENSM(5)
      |                      1
Warning: Unused variable ‘kpdsm’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:596:41:

  596 |        JPDSB,JB,JBK,LAB,AB,LAM,AM,LXX,LWG, &
      |                                         1
Warning: Unused dummy argument ‘lwg’ at (1) [-Wunused-dummy-argument]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:174:19:

  174 |   CHARACTER*400 GDS
      |                   1
Warning: Unused variable ‘gds’ declared at (1) [-Wunused-variable]
/home/ed/NCEPLIBS-grib_util/src/copygb2/copygb2.F90:173:16:

  173 |   REAL RARG(100)
      |                1
Warning: Unused variable ‘rarg’ declared at (1) [-Wunused-variable]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
warning Warning-free code is required
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants