Format width recommendation (V12 warning)

Format width recommendation (V12 warning)

lklawrie's picture

Here's the warning that is generated:

remark #8293: Recommended relationship between field width 'W', the number of fractional digits 'D' and the number of exponential digits 'E' in this edit descriptor is 'W>=D+E+5'.
501 FORMAT(' Fuel Supply, ', A, ',', G12.6E2, ',' , G12.6E2, ',' , G12.6E2, ',', G12.6E2)

is this coming from a standard or just a "good" idea from the compiler authors?

Linda

Linda
12 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
lklawrie's picture

Never mind -- I see the info in the documentation.

Linda

Linda
IanH's picture

For more v12 warning fun compile with "/stand:f08". It will take your coding back about twenty years!

lklawrie's picture

Right, if this is standard 08, why's it telling me a bunch of stuff wasn't in Fortran 90?

warning #7520: A data-initialization-expr on a component-def-stmt was not in Fortran 90.

It seems to know it's standard:
error #7262: Allowing a variable name that is not an array-variable-name as an actual argument for a corresponding array dummy is not standard Fortran 2008.

and errors out even though it's not supposed to (standard as warning errors).

Linda
Steve Lionel (Intel)'s picture

Did you specify standards warnings should be errors?

/stand:f08 isn't documented and while accepted it doesn't work right.

Steve
lklawrie's picture

No, I have standards warnings should not be errors.

Thought it might be fun to follow the recommendation -- obvious there is some more work to do. Not important (that is, I'm sure there are more important issues than looking at undocumented "features").

Linda

Linda
Steve Lionel (Intel)'s picture

Linda,

The problem with /stand:f08 was fixed for Composer XE 2011 Update 6. We've tried to find all the places in the compiler where /stand:f08 should suppress the warning - if you or anyone else finds a case we didn't, please let us know.

Steve
lklawrie's picture

Not sure if there is a problem or not. The warning is still there. It's just a warning. I don't have any standards checking turned on. (still there in Update 8)

Linda
Steve Lionel (Intel)'s picture

The warning in the first post is not a standards warning, it's a "usage" warning. You can turn it off if you like. I just wanted to follow-up on the /stand:f08 issue.

Steve
ALICE Y.'s picture

Dear Steve,

Could u please tell me, how to disable the warning in user window other than DOS?

lklawrie's picture

You disable warnings (though this appears to be a "remark") by /Qdiag-disable:

Linda
Steve Lionel (Intel)'s picture

If you are using Visual Studio, you can supply any additional command line options, where a project property is not provided, on the Command Line property page.

Steve

Login to leave a comment.