forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTN95: Spurious warning

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
JvO



Joined: 18 Aug 2005
Posts: 15

PostPosted: Thu Sep 01, 2005 4:49 am    Post subject: FTN95: Spurious warning Reply with quote

The following program gives a non-justified compilation warning:

! [JvO] 2005-09-01 Dattim.f95
subroutine dattim(t)
implicit NONE
integer, optional, intent(OUT) :: t
integer, dimension(6) :: hms
character(len=12) :: d_v, t_v

call date_and_time(d_v, t_v)
if (present(t)) then
read(d_v, "(I4,2I2)") hms(1:3)
read(t_v, "(3I2)") hms(4:6) !
t = dot_product(hms, (/ 0, 0, 86400, 3600, 60, 1 /))
end if
d_v(5: ) = "-" // d_v(5:6) // "-" // d_v(7:Cool
t_v(3: ) = ":" // t_v(3:4) // ":" // t_v(5:9)
end subroutine dattim

! D:FortranTestSalford>ftn95 /check dattim
! [FTN95/Win32 Ver. 4.8.0 Copyright (C) Salford Software Ltd 1993-2005]
! 0005) integer, dimension(6) :: hms
! WARNING - Variable HMS has been used without being given an initial value
! NO ERRORS, 1 WARNING [<DATTIM> FTN95/Win32 v4.8.0]
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Fri Sep 02, 2005 12:42 am    Post subject: FTN95: Spurious warning Reply with quote

Thank you for the information.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Sep 07, 2005 1:11 am    Post subject: FTN95: Spurious warning Reply with quote

This bug has now been fixed.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group