I hope this is the correct list to ask. I'm porting a bunch of old
fortran code and am getting thousands of these warnings I don't
understand. Most all are doing some sort of add or subtract on integer*2
variables. This is just an example.
program test
implicit none
integer*2 val/10/
val = val - 1
write(6,10)val
10 format('val = ',I2)
stop
end
compiled with:
f77 -std=legacy -Wall test.f
test.f:6.12:
val = val - 1
1
Warning: Possible change of value in conversion from INTEGER(4) to
INTEGER(2) at (1)
Thanks
Mark