Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussões

Unused variable vs Unused dummy argument

Les_Neilson
Contribuidor valorado II
648 Visualizações
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 Respostas
Steven_L_Intel1
Funcionário
648 Visualizações

I have entered a feature request (DPD200149295) for this on your behalf.
DavidWhite
Contribuidor valorado II
648 Visualizações

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.
Responder