Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28591 Discussions

Annoying warnings for temporary arrays when they were intended

Andrew_Smith
Valued Contributor I
269 Views
The usually useful debug check for creating temprary arrays on calling can become annoying in such as this line I have:

[bash]call setRotorDataItem(anAssembly%rotorDisks(i), dummyArray, i, '1', 'Rotor', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0])[/bash]

Here the last argument is the temprary array but since I obviously meant to create it, I dont need a warning.

0 Kudos
2 Replies
lklawrie
Beginner
269 Views
I believe you can turn off specific warnings (by number).

Linda
0 Kudos
Steven_L_Intel1
Employee
269 Views
I previously put in a request that this warning be disabled for constructors. I will add your name to the list.
0 Kudos
Reply