Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Puzzling Compiler warning

WSinc
New Contributor I
478 Views

I am trying compile this routine (RC1.f90) and it points to a WARNING on a line that apparently has no reference to a function.

The program runs OK, but I am wondering about what might trigger this.

 

I am uploading two source code files, not the whole program.

 

Would dividing the file up into its component parts make a difference? should it?

 

KOUNT_1 is a MODULE that all the routine use.

0 Kudos
2 Replies
WSinc
New Contributor I
478 Views

BTW, the error is on line 63, number #6178, namely - -

"Value of this function has not been defined."

But this line is just a comparison between two array elements.

Sometimes I see a similar bogus warning when there is a compiler error somewhere else in the

source file. The warning goes away when I fix the error somewhere else.

 

Just a minor annoyance, but should it be looked at?

 

The problem seems to be related to having several routines in the same source code file.

0 Kudos
Steven_L_Intel1
Employee
478 Views

The only problem I see is where the compiler decided to give you the warning. It really should have been put out later. It is telling you that you never assigned a result value to function rc22. Ideally it would have been associated with the "end function rc22" statement.

I'll send this on to the developers.

0 Kudos
Reply