aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-10-10 13:27:03 -0700
committerColin Cross <ccross@android.com>2019-09-05 14:44:01 -0700
commit38461bbb3ed757e928e3e3b9a8025fc9316b522d (patch)
treec423f0dd3a7ae31ca7ddd69c7b9384d26eaa78ea /src
parentd74bf36d04825606b70fef8e87855f3a36d15989 (diff)
downloadprotobuf-38461bbb3ed757e928e3e3b9a8025fc9316b522d.tar.gz
Revert "Fix some unused parameter warnings"
This reverts commit b245073ab81c52ff250516355d62cc494810e845. These have been fixed upstream. Bug: 117607748 Test: m checkbuild Change-Id: Ide43333d2075635b0ddcf83bf757f802b1df99c4 Merged-In: Ide43333d2075635b0ddcf83bf757f802b1df99c4
Diffstat (limited to 'src')
-rw-r--r--src/google/protobuf/arena.h6
-rw-r--r--src/google/protobuf/stubs/shared_ptr.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h
index b4344da14..c2abf9979 100644
--- a/src/google/protobuf/arena.h
+++ b/src/google/protobuf/arena.h
@@ -800,13 +800,13 @@ class LIBPROTOBUF_EXPORT Arena {
}
template <typename T>
static void CreateInArenaStorageInternal(
- T* ptr, Arena*, google::protobuf::internal::false_type) {
+ T* ptr, Arena* arena, google::protobuf::internal::false_type) {
new (ptr) T;
}
template <typename T>
static void RegisterDestructorInternal(
- T*, Arena*, google::protobuf::internal::true_type) {}
+ T* ptr, Arena* arena, google::protobuf::internal::true_type) {}
template <typename T>
static void RegisterDestructorInternal(
T* ptr, Arena* arena, google::protobuf::internal::false_type) {
@@ -841,7 +841,7 @@ class LIBPROTOBUF_EXPORT Arena {
}
template<typename T> GOOGLE_ATTRIBUTE_ALWAYS_INLINE
- static ::google::protobuf::Arena* GetArenaInternal(const T*, ...) {
+ static ::google::protobuf::Arena* GetArenaInternal(const T* value, ...) {
return NULL;
}
diff --git a/src/google/protobuf/stubs/shared_ptr.h b/src/google/protobuf/stubs/shared_ptr.h
index bca8280d4..393249ff8 100644
--- a/src/google/protobuf/stubs/shared_ptr.h
+++ b/src/google/protobuf/stubs/shared_ptr.h
@@ -438,8 +438,8 @@ class enable_shared_from_this {
protected:
enable_shared_from_this() { }
- enable_shared_from_this(const enable_shared_from_this&) { }
- enable_shared_from_this& operator=(const enable_shared_from_this&) {
+ enable_shared_from_this(const enable_shared_from_this& other) { }
+ enable_shared_from_this& operator=(const enable_shared_from_this& other) {
return *this;
}
~enable_shared_from_this() { }