This Message Is From an External Sender
This message came from outside your organization.
On Fri, 12 Jul 2024, Ivan Luthfi wrote:
> Hello, > > I have declare a variable in my petsc code like the following: > > PetscInt mg_level = 2, finest; > > but i get warning. The warning is, > > (line185) warning: 'variable 'finest' set but not used > [-Wunused-but-set-variable] PetscInt mg_level=2, finest; > > But actually it is used in line 200 as: > (line 200) finest = mg_level - 1; "finest" is "set" here - not "used". "mg_level" is used here. Satish > > Can you help me what should I do? >