Fix compiler warnings.
system/libhwbinder/include/hwbinder/binder_kernel.h:68:3: error: anonymous structs are a GNU extension [-Werror,-Wgnu-anonymous-struct]
struct {
^
system/libhwbinder/include/hwbinder/binder_kernel.h:72:3: error: anonymous structs are a GNU extension [-Werror,-Wgnu-anonymous-struct]
struct {
^
system/libhwbinder/include/hwbinder/binder_kernel.h:68:3: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
struct {
^
system/libhwbinder/include/hwbinder/binder_kernel.h:72:3: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
struct {
system/libhwbinder/include/hwbinder/Parcel.h:476:46: error: extra ';' after member function definition [-Werror,-Wextra-semi]
inline int fd() const { return mFd; };
system/libhwbinder/include/hwbinder/Parcel.h:580:27: error: implicit conversion changes signedness: 'size_t' (aka 'unsigned int') to 'const int32_t' (aka 'const int') [-Werror,-Wsign-conversion]
const int32_t start = dataPosition();
system/libhwbinder/include/hwbinder/Parcel.h:589:21: error: implicit conversion changes signedness: 'const int32_t' (aka 'const int') to 'size_t' (aka 'unsigned int') [-Werror,-Wsign-conversion]
setDataPosition(start);
Test: mm
Change-Id: I6d262e2443a43922828b5684bb6c9d3c6929e20a
diff --git a/IPCThreadState.cpp b/IPCThreadState.cpp
index 4b56fce..1437e5c 100644
--- a/IPCThreadState.cpp
+++ b/IPCThreadState.cpp
@@ -21,6 +21,7 @@
#include <hwbinder/Binder.h>
#include <hwbinder/BpBinder.h>
#include <hwbinder/TextOutput.h>
+#include <hwbinder/binder_kernel.h>
#include <cutils/sched_policy.h>
#include <utils/Log.h>