The information in this article applies to:
SYMPTOMSA function that is defined using the INTERFACE TO statement and that includes the return type declaration but that is not called from within a program causes the compiler to generate this warning message: Or for Fortran PowerStation 4.0:
CAUSEThe compiler is correct to report that <symbol> is not being used. This problem usually occurs when using a library of functions or subroutines. The library needs to have INTERFACE TO statements and function declarations for all routines in the library. An application may not need to call every function contained in the library. Any functions that are defined but not called result in the warning. RESOLUTIONWhen declaring a function, use the EXTERN attribute as in the following code sample. Sample Code
STATUSThis behavior is by design. Additional query words: 5.00 5.10 1.00 1.00a 4.00
Keywords : kbcode kbLangFortran |
Last Reviewed: November 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |