SUBROUTINE TestInquire (NFIL)
IMPLICIT NONE
INTEGER, INTENT(IN) :: NFIL
INTEGER MXSAL, LP
!! MXSAL = 0
INQUIRE (UNIT= NFIL, RECL= MXSAL)
LP = MXSAL+1
LP = LP
RETURN
END
Why does this code provide warnig 298 Variable MXSAL has been used without being given an initial value? If I change UNIT= NFIL against e.g. FILE= 'xx.dat', I get the same warning.