Skip to content

Commit

Permalink
Fix "statement has no effect" with J9CLASS_DEPTH()
Browse files Browse the repository at this point in the history
This commit fixes build errors with J9CLASS_DEPTH() in
java_lang_invoke_MethodHandleNatives.cpp.

Fixes: #20170

Signed-off-by: KONNO Kazuhiro <konno@jp.ibm.com>
  • Loading branch information
knn-k committed Sep 17, 2024
1 parent 0985ff3 commit 338cb45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/jcl/common/java_lang_invoke_MethodHandleNatives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ Java_java_lang_invoke_MethodHandleNatives_getMembers(
UDATA classDepth = 0;
if (J9_ARE_ANY_BITS_SET(matchFlags, MN_SEARCH_SUPERCLASSES)) {
/* walk superclasses */
J9CLASS_DEPTH(defClass);
classDepth = J9CLASS_DEPTH(defClass);
}
J9Class *currentClass = defClass;

Expand Down Expand Up @@ -1568,7 +1568,7 @@ Java_java_lang_invoke_MethodHandleNatives_getMembers(
UDATA classDepth = 0;
if (J9_ARE_ANY_BITS_SET(matchFlags, MN_SEARCH_SUPERCLASSES)) {
/* walk superclasses */
J9CLASS_DEPTH(defClass);
classDepth = J9CLASS_DEPTH(defClass);
}
J9Class *currentClass = defClass;

Expand Down

0 comments on commit 338cb45

Please sign in to comment.