gfortran warning: unnecessary

15 views
Skip to first unread message

Mohammad

unread,
Feb 20, 2018, 4:18:02 PM2/20/18
to GNU Fortran
integer :: i    
.
.
 n
= count( [ (strtmp(i:i), i=1, len_trim(strtmp)) ] == delimiter_)


Compiling the above code with 
gfortran.exe -Jobj\Debug\ -Wall  -g  -std=f2008    -c

produces the following warning
D:\gfortran\Fortran\ogpf_n4\md_helperproc.f90|108|Warning: 'i' is used uninitialized in this function [-Wuninitialized]|

Which is unnecessary! Is this a bug in gfortran?
Reply all
Reply to author
Forward
0 new messages