Recent versions of compilers provide a great deal more warnings and errors
than older versions for "sloppy" code, such as assigning a variable but then
never using it. The compiler doesn't know if you made a mistake like
misspelling a variable name or forgetting to use a variable so it print
We cannot see your code. The warning says that you give a value to a
variable, but then never use it. We cannot tell if that is true without
looking at the code.
Thanks,
Matt
On Tue, Jul 16, 2024 at 9:54 AM Ivan Luthfi wrote:
> Hello guys, I am still trying to compile my old multigrid c
Hello guys,
I am still trying to compile my old multigrid code. But i get so many
warning, one of those warning is like this:
MsFEM_poisson2D_DMDA.c: In function ‘int main(int, char**)’:
MsFEM_poisson2D_DMDA.c:185:48: warning: variable ‘finest’ set but not used
[-Wunused-but-set-variable]
185 |