From b334c33d65894f5ca9833fa55c3a1cf75e01c497 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Mon, 29 Aug 2016 12:31:41 +0100 Subject: [PATCH] Fix clang build breakage (-Werror -Wformat). Use %zd for size_t. Note that this will break only on (-plus-)aosp because clang is disabled on the N development branches. bug: 30963384 Change-Id: I4b5ba7caf15bc2ebf5bb3395d82170ec786ed50c --- core/jni/fd_utils-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/fd_utils-inl.h b/core/jni/fd_utils-inl.h index bd68625514c7..1f34b0275384 100644 --- a/core/jni/fd_utils-inl.h +++ b/core/jni/fd_utils-inl.h @@ -404,7 +404,7 @@ class FileDescriptorTable { // // TODO(narayan): This will be an error in a future android release. // error = true; - ALOGW("Zygote opened %d new file descriptor(s).", open_fds.size()); + ALOGW("Zygote opened %zd new file descriptor(s).", open_fds.size()); // TODO(narayan): This code will be removed in a future android release. std::set::const_iterator it; -- 2.11.0