summaryrefslogtreecommitdiffstats
path: root/services/sensorservice
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-11-17 21:03:39 +0100
committerChih-Hung Hsieh <chh@google.com>2014-11-25 15:42:27 -0800
commit72952efe5ce8ee10e3c591cc6d2a3475b7b91690 (patch)
treed20a9f16fed25f44106b57ac97a5143e6d5573f5 /services/sensorservice
parent2d7ec9d7b5dfdb93930b94c134fa2dc10fd27313 (diff)
downloadframeworks_native-72952efe5ce8ee10e3c591cc6d2a3475b7b91690.zip
frameworks_native-72952efe5ce8ee10e3c591cc6d2a3475b7b91690.tar.gz
frameworks_native-72952efe5ce8ee10e3c591cc6d2a3475b7b91690.tar.bz2
Don't error out because SensorEventConnection::dump overloads BBinder::dump
clang warns about SensorEventConnection::dump overloading BBinder::dump in some conditions. Since the cause isn't fixable without changing the API, tell clang not to error out on it. Change-Id: I15659de7c5499d937019599cfefb01305039e6b5 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'services/sensorservice')
-rw-r--r--services/sensorservice/SensorService.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/sensorservice/SensorService.h b/services/sensorservice/SensorService.h
index 5e3eeb5..2e16677 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