From 01cf378e045dafe136cda39f5559ae1c36119f5b Mon Sep 17 00:00:00 2001 From: Daichi Hirono Date: Mon, 21 Dec 2015 13:13:57 +0900 Subject: [PATCH] Fix compiler error on com_android_mtp_AppFuse.cpp. The CL adds explicit assigning for reply_size to prevent 'unused' compiler error. Change-Id: I307758debb23b5bf56ddf71d54813b8cd81d8f49 --- packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp b/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp index dbce6095af91e..9267f4cfa2517 100644 --- a/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp +++ b/packages/MtpDocumentsProvider/jni/com_android_mtp_AppFuse.cpp @@ -119,6 +119,9 @@ private: if (in->minor <= 22) { *reply_size = FUSE_COMPAT_22_INIT_OUT_SIZE; } +#else + // Don't drop this line to prevent an 'unused' compile error. + *reply_size = sizeof(fuse_init_out); #endif out->major = FUSE_KERNEL_VERSION;