From e97f3a8580fb85f06386e187f8e6f64fcfb54ea9 Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Tue, 30 Apr 2024 10:37:32 -0700 Subject: Fix libbinder_sdk build warnings -Wdeprecated-declarations -Wformat -Wpessimizing-move -Wsign-compare -Wsubobject-linkage -Wunused-result -Wzero-as-null-pointer-constant (turned on in ag/4503295) Bug: 285204695 Test: m libbinder_sdk Change-Id: Id4a482c511244968e450fdeecf6b9de41bc65b04 --- libs/binder/Parcel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/binder/Parcel.cpp') diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 84ef489a6c..77b32753de 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -2768,7 +2768,7 @@ void Parcel::ipcSetDataReference(const uint8_t* data, size_t dataSize, const bin } if (type == BINDER_TYPE_FD) { // FDs from the kernel are always owned - FdTag(flat->handle, 0, this); + FdTag(flat->handle, nullptr, this); } minOffset = offset + sizeof(flat_binder_object); } -- cgit v1.2.3-59-g8ed1b