My problem is that I cant find how to disable warning 4700 (variable used without initialisation)…
My code is the next:
#pragma warning(disable :4700)
double** f;
optimumWindowSize(Mv[seed_coord.x][seed_coord.y],f,&winsize);
#pragma warning(default :4700)
Inside optimumWindowSize I call a function that initializes the variable f, so actually I am not using it without initialisation, but still the compiler gives me the warning. I only want to disable it here, not in all the code, but with my code above I don’t disable it.
What I am missing?
How can I disable it?
NOTE: F will be a winsizeXwinsize matrix after the function
I found the answer, Is is just needed to initialize the
fvariable withNULLand the warning is gone.