Eliminate warnings in mech.sensor.c