diff --git a/services/sensorservice/SensorService.h b/services/sensorservice/SensorService.h index 8719487e2..e9ca3a59f 100644 --- a/services/sensorservice/SensorService.h +++ b/services/sensorservice/SensorService.h @@ -37,6 +37,13 @@ #include "SensorInterface.h" +#if __clang__ +// Clang warns about SensorEventConnection::dump hiding BBinder::dump +// The cause isn't fixable without changing the API, so let's tell clang +// this is indeed intentional. +#pragma clang diagnostic ignored "-Woverloaded-virtual" +#endif + // --------------------------------------------------------------------------- #define DEBUG_CONNECTIONS false