Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

turn off warnings about array temporaries

vivekrao4
Beginner
907 Views

Compiling a code with IVF W_FC_C_9.1.037with the options

/Od /nologo /traceback /check:all /warn:all /warn:unused /gen-interfaces /warn:interfaces /debug:all

and running it I get many run-time messages such as

forrtl: warning (402): fort: (1): In call to I/O Write routine, an array temporary was created for argument #1

In general, I want to see warning messages, but how can I turn off the warnings about array temporaries?

Vivek Rao

0 Kudos
2 Replies
Steven_L_Intel1
Employee
907 Views

Try adding /check:noarg_temp_created. Note that this is a run-time check and not a compile-time warning. I don't remember if you can selectively disable checks enabled with /check:all. You may have to replace that with a list of the /check options you want. Similarly, as you have /warn:all, explicitly enabling some specific warnings is redundant.

0 Kudos
vivekrao4
Beginner
907 Views

Inserting /check:noarg_temp_created after /check:all removed the run-time warnings. Thanks.

Vivek Rao

0 Kudos
Reply