OSDN Git Service

Fix 2 new sets of clang compiler warnings.
authorIan Rogers <irogers@google.com>
Fri, 10 Oct 2014 18:02:11 +0000 (11:02 -0700)
committerIan Rogers <irogers@google.com>
Fri, 10 Oct 2014 19:26:02 +0000 (12:26 -0700)
commit647b1a86f518d8db0331b3d52a96392b7a62504b
tree7370f795ef3c7fbdd2695d23bc6f8171f40f43f1
parentacfbbd4df2fc1c79a7102587bebf398f95b5e5de
Fix 2 new sets of clang compiler warnings.

Fix issues that are flagged by -Wfloat-equal and -Wmissing-noreturn.
In the case of -Wfloat-equal the current cases in regular code are deliberate,
so the change is to silence the warning. For gtest code the appropriate fix is
to switch from EXPECT_EQ to EXPECT_(FLOAT|DOUBLE)_EQ.
The -Wmissing-noreturn warning isn't enabled due to a missing noreturn in
gtest. This issue has been reported to gtest.

Change-Id: Id84c70c21c542716c9ee0c41492e8ff8788c4ef8
18 files changed:
build/Android.common_build.mk
compiler/jni/jni_compiler_test.cc
dex2oat/dex2oat.cc
patchoat/patchoat.cc
runtime/base/histogram-inl.h
runtime/base/histogram_test.cc
runtime/base/macros.h
runtime/class_linker_test.cc
runtime/entrypoints/quick/quick_math_entrypoints.cc
runtime/interpreter/interpreter_goto_table_impl.cc
runtime/interpreter/interpreter_switch_impl.cc
runtime/jni_internal_test.cc
runtime/mirror/object_test.cc
runtime/native/java_lang_Runtime.cc
runtime/parsed_options_test.cc
runtime/reflection_test.cc
runtime/runtime.h
runtime/transaction_test.cc