Here are the two lines relevant to the question:
float velNMOscale = (1.0f + (vel2nmo[0]))* (1.0f+ ( vel2nmo[0]))*vel2z[0];
assert( APPROX3( vel2xy[0], velNMOscale ) );
The warning message is:
ApplyStencilXYTTIOpt_x86.cpp:2049:15: warning: unused variable ‘velNMOscale’ [-Wunused-variable]
float velNMOscale = (1.0f + (vel2nmo[0]))* (1.0f + (vel2nmo[0]))*vel2z[0];
The variable is actually used in the call to the function "assert()".
Why the warning?