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

Unused variable vs Unused dummy argument

Les_Neilson
Valued Contributor II
1,023 Views
I was wondering how easy it would be to have the compiler distinguish between
remark #7712: This variable has not been used. [BDEP]
and
remark #....: Thisdummy argumenthas not been used. [BDEP]

We have many "stub" routines which do nothing compared to the actual routines, so we get a lot of the #7712 messages, because of the unused dummy arguments,but it would be A Nice Thing if it were possible to supress these while retaining them for unused local variables which I could easily spot and then tidy up the code.

Just a thought.

Les
0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,023 Views

I have entered a feature request (DPD200149295) for this on your behalf.
0 Kudos
DavidWhite
Valued Contributor II
1,023 Views

I have entered a feature request (DPD200149295) for this on your behalf.

This would be really useful. I have resorted to adding lines like dummy = X in subroutines to eliminate the warnings.
0 Kudos
Reply