flush geterg and iargc question

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Nov 7 15:34:00 GMT 2005


On Mon, Nov 07, 2005 at 04:26:20PM +0100, Benjamin R?veill? wrote:
> 2005/11/7, Steve Kargl <sgk@troutmask.apl.washington.edu>:
>> On Mon, Nov 07, 2005 at 10:05:40AM +0100, Benjamin R?veill? wrote:
>>>>   call flush(6)
>>>>               1
>>>>Warning: Intrinsic 'flush' at (1) is not included in the selected standard
>>>
>>> Is it a compiler error or is there another standard in which i'll find
>>> these and get rid of the warnings?
>>>
>>> I admit this isn't a big issue. But I thought it was worth mentionning.
>>> These messages disappear if I remove either -pedantic or -Wall but
>>> personnaly I like these options...
>>
>> gfortran is doing exactly what you requested.  While you
>> develop code, use "-Wall -pedantic", but once the code is
>> written remove the options if you don't want to see the
>> warnings.
> 
> I knew these where extensions but I didn't think I'd get a warning
> when using the -std that supports them.

When it comes to the -std= option and intrinsics procedures,
the option will enable or disable the recognition of a procedure
as intrinsic.

> If I follow you correctly any non-f95 supported extension will compile
> with -std=legacy but issue such a message with -Wall -pedantic.

I have to check on what -std=legacy turns on.  I believe
your statement is correct if you say -std=gnu instead of legacy.
Note -std=gnu is the default.

-- 
Steve



More information about the Fortran mailing list