DilithiumMatrix
DilithiumMatrix

Reputation: 18637

Suppress unused variable warning in gfortran using -Wextra and -Wall fortran

I'm debugging a large code with the flags -Wall and -Wextra, but I'm getting hundreds of Unused parameter warnings which I'm not interested in. Is there a way to suppress only these warnings?

Upvotes: 0

Views: 1532

Answers (1)

Alexander Vogt
Alexander Vogt

Reputation: 18098

Simply append -Wno-unused-parameter... See here for details.

From the docs:

Each of these specific warning options also has a negative form beginning -Wno- to turn off warnings; for example, -Wno-implicit.

Upvotes: 2

Related Questions