8014431: cleanup warnings indicated by the -Wunused-value compiler option on linux

Co-authored-by: Jeremy Manson <jeremymanson@google.com>
Reviewed-by: dholmes, coleenp
This commit is contained in:
Calvin Cheung 2013-06-13 22:02:40 -07:00
parent 72a51a0c44
commit 53448fdbed
17 changed files with 52 additions and 31 deletions

View file

@ -989,7 +989,7 @@ Klass* ClassHierarchyWalker::find_witness_in(KlassDepChange& changes,
assert(changes.involves_context(context_type), "irrelevant dependency");
Klass* new_type = changes.new_type();
count_find_witness_calls();
(void)count_find_witness_calls();
NOT_PRODUCT(deps_find_witness_singles++);
// Current thread must be in VM (not native mode, as in CI):