From 65c86c08a141a89d29ed3c7df4f33ca9c6b7e554 Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Thu, 17 Nov 2016 15:12:18 +0100 Subject: [PATCH] Cast hidl_pointer to void*. hidl_pointer can only allow one implicit conversion operator, and native_handle_t* is the one that makes most sense. Hence, this requires an explicit cast. Bug: 32089785 Test: builds Change-Id: Ie952ee2e4f0c20fa33f793403d51f3d550257310 --- tests/bar/1.0/default/Bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bar/1.0/default/Bar.cpp b/tests/bar/1.0/default/Bar.cpp index 4ff9e6bdf2..2158cd8722 100644 --- a/tests/bar/1.0/default/Bar.cpp +++ b/tests/bar/1.0/default/Bar.cpp @@ -154,7 +154,7 @@ Return Bar::thisIsNew() { } Return Bar::expectNullHandle(const native_handle_t* h, const Abc& xyz, expectNullHandle_cb _hidl_cb) { - ALOGI("SERVER(Bar) h = %p, xyz.z = %p", h, xyz.z); + ALOGI("SERVER(Bar) h = %p, xyz.z = %p", h, static_cast(xyz.z)); _hidl_cb(h == nullptr, xyz.z == nullptr); return Void(); }