use diagnostic pragma to silence GCC's -Wunused-but-set-variable warning...

... in removegrainvs.cpp