dubhater / vapoursynth-nnedi3

nnedi3 filter for VapourSynth
92 stars 6 forks source link

fix GCC's >>'dims1offset' may be used uninitialized<< warning #3

Closed darealshinji closed 9 years ago

dubhater commented 9 years ago

Are you making that a global variable? Global variables are evil. There will be no global variables.

darealshinji commented 9 years ago

Is there a way to satisfy GCC without making it a global variable?

dubhater commented 9 years ago

Yes, you initialise it when you declare it:

int dims1offset = 0;
darealshinji commented 9 years ago

dims1offset is used in 1175 too, declaring it in line 1063 won't work. Or is gcc just too nit-picky?