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/Stability.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/binder/Stability.cpp') diff --git a/libs/binder/Stability.cpp b/libs/binder/Stability.cpp index 665dfea456..4fb8fa08bc 100644 --- a/libs/binder/Stability.cpp +++ b/libs/binder/Stability.cpp @@ -70,7 +70,7 @@ bool Stability::requiresVintfDeclaration(const sp& binder) { } void Stability::tryMarkCompilationUnit(IBinder* binder) { - (void)setRepr(binder, getLocalLevel(), REPR_NONE); + std::ignore = setRepr(binder, getLocalLevel(), REPR_NONE); } // after deprecation of the VNDK, these should be aliases. At some point -- cgit v1.2.3-59-g8ed1b