summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2017-05-10 14:27:39 -0700
committerYi Kong <yikong@google.com>2017-05-10 14:27:39 -0700
commitb5619e8c46bcb06aa42a30b7487cd36d4107432d (patch)
tree14c74003bf75efafe17d05db7eedebf64d26800f
parentfbb09a7192b7fda8810604a38548cbf4a347c70c (diff)
downloadnative-b5619e8c46bcb06aa42a30b7487cd36d4107432d.tar.gz
Add explicit default copy constructor
Definition of implicit copy constructor is deprecated if it has a user-declared destructor. This triggers -Wdeprecated compiler warning and breaks the build in latest Clang update. Test: Build Bug: 37752547 Change-Id: I467d5ff3b4cca4644c7ec8c99ae35556029ce509
-rw-r--r--include/binder/Parcelable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/binder/Parcelable.h b/include/binder/Parcelable.h
index d5b57ac587..a9166e2408 100644
--- a/include/binder/Parcelable.h
+++ b/include/binder/Parcelable.h
@@ -36,6 +36,9 @@ class Parcelable {
public:
virtual ~Parcelable() = default;
+ Parcelable() = default;
+ Parcelable(const Parcelable&) = default;
+
// Write |this| parcelable to the given |parcel|. Keep in mind that
// implementations of writeToParcel must be manually kept in sync
// with readFromParcel and the Java equivalent versions of these methods.