fix the warning in search_gesture.cpp