Unused Statement Labels

| SimCon Home | fpt Reference Manual Home |

Do Unused Labels Indicate a Problem?

Not usually. They clutter the code and, very rarely, it may be possible to see how a programmer intended to use one and forgot.

Finding Unused Labels

The fpt command is:

SHOW UNUSED LABELS

The end of the listing from WRFV3.6.1 is shown below:

Line: 2172, File: ... UCAR_clean_build_WRFV3.6.1/WRFV3/phys/module_mp_lin.F 242 FORMAT (I2,1X,7(F9.6,1X)) Line: 2184, File: ... UCAR_clean_build_WRFV3.6.1/WRFV3/phys/module_mp_lin.F 272 FORMAT (I2,1X,3(F12.9,1X)) Line: 2875, File: ... uild_WRFV3.6.1/WRFV3/phys/module_mp_morr_two_moment.F 101 CONTINUE Line: 1889, File: ... lean_build_WRFV3.6.1/WRFV3/dyn_em/module_wps_io_arw.F 880 CONTINUE Line: 1709, File: ... lean_build_WRFV3.6.1/WRFV3/dyn_em/module_wps_io_arw.F 880 CONTINUE Line: 3610, File: ... clean_build_WRFV3.6.1/WRFV3/phys/module_mp_thompson.F 97 CONTINUE Line: 2014, File: ... ion/test/UCAR_clean_build_WRFV3.6.1/WRFV3/share/dfi.F 100 CONTINUE Line: 136, File: ... on/test/UCAR_clean_build_WRFV3.6.1/WRFV3/share/sint.F 8000 CONTINUE Line: 328, File: ... on/test/UCAR_clean_build_WRFV3.6.1/WRFV3/share/sint.F 8000 CONTINUE ------------------------------------------------------------------------------ NOTE Number 3057 Severity 0 (Worst 2) Count 9648 Unused label(s) detected. Please see FPL file ------------------------------------------------------------------------------

Copyright ©1995 to 2017 Software Validation Ltd. All rights reserved.