diff options
author | Ian Rogers <irogers@google.com> | 2014-10-31 00:33:20 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-11-03 20:01:04 -0800 |
commit | 6a3c1fcb4ba42ad4d5d142c17a3712a6ddd3866f (patch) | |
tree | 9df58b57af13240a93a6da4eefcf03f70cce9ad9 /runtime/debugger.cc | |
parent | c6e0955737e15f7c0c3575d4e13789b3411f4993 (diff) | |
download | art-6a3c1fcb4ba42ad4d5d142c17a3712a6ddd3866f.zip art-6a3c1fcb4ba42ad4d5d142c17a3712a6ddd3866f.tar.gz art-6a3c1fcb4ba42ad4d5d142c17a3712a6ddd3866f.tar.bz2 |
Remove -Wno-unused-parameter and -Wno-sign-promo from base cflags.
Fix associated errors about unused paramenters and implict sign conversions.
For sign conversion this was largely in the area of enums, so add ostream
operators for the effected enums and fix tools/generate-operator-out.py.
Tidy arena allocation code and arena allocated data types, rather than fixing
new and delete operators.
Remove dead code.
Change-Id: I5b433e722d2f75baacfacae4d32aef4a828bfe1b
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r-- | runtime/debugger.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc index 5409d54..a9663bb 100644 --- a/runtime/debugger.cc +++ b/runtime/debugger.cc @@ -231,7 +231,7 @@ class DebugInstrumentationListener FINAL : public instrumentation::Instrumentati virtual ~DebugInstrumentationListener() {} void MethodEntered(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, - uint32_t dex_pc) + uint32_t dex_pc ATTRIBUTE_UNUSED) OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { if (method->IsNative()) { // TODO: post location events is a suspension point and native method entry stubs aren't. @@ -254,6 +254,7 @@ class DebugInstrumentationListener FINAL : public instrumentation::Instrumentati uint32_t dex_pc) OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { // We're not recorded to listen to this kind of event, so complain. + UNUSED(thread, this_object, method, dex_pc); LOG(ERROR) << "Unexpected method unwind event in debugger " << PrettyMethod(method) << " " << dex_pc; } @@ -267,16 +268,18 @@ class DebugInstrumentationListener FINAL : public instrumentation::Instrumentati void FieldRead(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field) OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { + UNUSED(thread); Dbg::PostFieldAccessEvent(method, dex_pc, this_object, field); } - void FieldWritten(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, - uint32_t dex_pc, mirror::ArtField* field, const JValue& field_value) + void FieldWritten(Thread* thread ATTRIBUTE_UNUSED, mirror::Object* this_object, + mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field, + const JValue& field_value) OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { Dbg::PostFieldModificationEvent(method, dex_pc, this_object, field, &field_value); } - void ExceptionCaught(Thread* thread, const ThrowLocation& throw_location, + void ExceptionCaught(Thread* thread ATTRIBUTE_UNUSED, const ThrowLocation& throw_location, mirror::ArtMethod* catch_method, uint32_t catch_dex_pc, mirror::Throwable* exception_object) OVERRIDE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { |