Ifort suppresses unused warning variable leave all others intact

I use ifort and gfortran to compile my Fortran program.

However, I also use a source of colleagues, and it has many unused variables. How can I suppress them for compilation because they are not an error?

However, I do not want to disable -pedanticit -stanin the compiler options, and therefore I want to receive all the other warnings.

greetings and thanks for the help

+3
source share
2 answers

Using ifort try -warn [no]unused.

, , . , ; .

+7

, High Performance Mark, - .

, gfortran, -Wunused-### gcc: . , -Wno-unused-variable , .

[...] gfortran, Intel Fortran?

.

+5

Source: https://habr.com/ru/post/1546827/


All Articles