diff options
author | Ian Rogers <irogers@google.com> | 2014-09-25 17:36:39 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-09-25 17:36:39 -0700 |
commit | 02875c56e80500fb0cc4671e33f57968232222ee (patch) | |
tree | 588c48b5205a6697b810a116dc906eb615436c11 /runtime/base/logging.h | |
parent | 6b604a1b0289e5e7211c2e5f8c4f395f51de7c3d (diff) | |
download | art-02875c56e80500fb0cc4671e33f57968232222ee.tar.gz art-02875c56e80500fb0cc4671e33f57968232222ee.tar.bz2 art-02875c56e80500fb0cc4671e33f57968232222ee.zip |
Fix some more pedantic compiler warnings.
Argument name shadows field name.
Lack of case statements for kMips64.
Change-Id: Ib3ca16f79a4d44ae80ef32f22cc79cbe9527f4f1
Diffstat (limited to 'runtime/base/logging.h')
-rw-r--r-- | runtime/base/logging.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/base/logging.h b/runtime/base/logging.h index caeb946ff0..cf3e763f1e 100644 --- a/runtime/base/logging.h +++ b/runtime/base/logging.h @@ -151,7 +151,7 @@ namespace art { template <typename LHS, typename RHS> struct EagerEvaluator { - EagerEvaluator(LHS lhs, RHS rhs) : lhs(lhs), rhs(rhs) { } + EagerEvaluator(LHS l, RHS r) : lhs(l), rhs(r) { } LHS lhs; RHS rhs; }; @@ -163,9 +163,9 @@ struct EagerEvaluator { // protect you against combinations not explicitly listed below. #define EAGER_PTR_EVALUATOR(T1, T2) \ template <> struct EagerEvaluator<T1, T2> { \ - EagerEvaluator(T1 lhs, T2 rhs) \ - : lhs(reinterpret_cast<const void*>(lhs)), \ - rhs(reinterpret_cast<const void*>(rhs)) { } \ + EagerEvaluator(T1 l, T2 r) \ + : lhs(reinterpret_cast<const void*>(l)), \ + rhs(reinterpret_cast<const void*>(r)) { } \ const void* lhs; \ const void* rhs; \ } |