以下是与问题相关的两行:
float velNMOscale = (1.0f + (vel2nmo[0]))* (1.0f+ ( vel2nmo[0]))*vel2z[0];
assert( APPROX3( vel2xy[0], velNMOscale ) );
警告信息为:
ApplyStencilXYTTIOpt_x86.cpp:2049:15: warning: unused variable ‘velNMOscale’ [-Wunused-variable]
float velNMOscale = (1.0f + (vel2nmo[0]))* (1.0f + (vel2nmo[0]))*vel2z[0];
该变量实际上用于对函数的调用" assert()"。
为什么要警告?